aboutsummaryrefslogtreecommitdiff
path: root/files/pl/web/xslt/transforming_xml_with_xslt/index.html
blob: 29899cce1908688df5f9651e80451f8c408d7eda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
---
title: Transformacje XML z XSLT
slug: Web/XSLT/Transforming_XML_with_XSLT
tags:
  - Strony_wymagające_dopracowania
  - Transformacje_XML_z_XSLT
  - Wszystkie_kategorie
  - XML
  - XSLT
translation_of: Web/XSLT/Transforming_XML_with_XSLT
original_slug: Web/XSLT/Transformacje_XML_z_XSLT
---
<h3 id="Og.C3.B3lny_przegl.C4.85d" name="Og.C3.B3lny_przegl.C4.85d"><a href="pl/Transformacje_XML_z_XSLT/Og%c3%b3lny_przegl%c4%85d">Ogólny przegląd</a></h3>

<p>The separation of content and presentation is a key design feature of <a href="pl/XML">XML</a>. The structure of an XML document is designed to reflect and clarify important relationships among the individual aspects of the content itself, unhindered by a need to provide any indication about how this data should eventually be presented. This intelligent structuring is particularly important as more and more data transfers are automated and take place between highly heterogeneous machines linked by a network.</p>

<p>Yet eventually much of the content stored in XML documents will need to be presented to human readers. Because a browser provides a familiar and highly flexible interface, it is an ideal mechanism for delivering such presentation versions of XML content. Built from the ground up utilizing a wide variety of XML technologies, Mozilla incorporates within itself all of the mechanisms needed to process both original XML documents and the specialized stylesheets used to style and lay them out for HTML display, reducing server load with client-side processing.</p>

<p>At present, Gecko (the layout engine behind Mozilla and Firefox) supports two forms of XML stylesheets. For basic control of appearance - fonts, colors, position, and so forth, Gecko uses <a href="pl/CSS">CSS</a>, familiar from <a href="pl/DHTML">DHTML</a>. All of CSS1 and most of CSS2 are supported. Support for the emerging CSS3 standard is under development. For further information about CSS, see <a class="external" href="http://www.meyerweb.com/eric/css/">Eric Meyer's CSS pages</a>. For an overview of CSS1 and Netscape, see this <a class="external" href="http://home.netscape.com/browsers/future/standards.html#1">Browser Central page</a>.</p>

<p>Our focus here is on the second type of stylesheet that Gecko supports: the XSLT stylesheet. XSLT stands for eXtensible Stylesheet Language/Transform and the name is apt. XSLT allows a stylesheet author to transform a primary XML document in two significant ways: manipulating and sorting the content, including a wholesale reordering of it if so desired, and transforming the content into a different format (and in the case of Netscape, the focus is on converting it on the fly into HTML which can then be displayed by the browser).</p>

<h3 id="Dokumentacja_XSLT.2FXPath" name="Dokumentacja_XSLT.2FXPath">Dokumentacja XSLT/XPath</h3>

<h4 id="Elementy" name="Elementy"><a href="pl/XSLT/Elementy">Elementy</a></h4>

<ul>
 <li><a href="pl/XSLT/apply-imports">xsl:apply-imports</a><em>(obsługiwany)</em></li>
 <li><a href="pl/XSLT/apply-templates">xsl:apply-templates</a><em>(obsługiwany)</em></li>
 <li><a href="pl/XSLT/attribute">xsl:attribute</a><em>(obsługiwany)</em></li>
 <li><a href="pl/XSLT/attribute-set">xsl:attribute-set</a><em>(obsługiwany)</em></li>
 <li><a href="pl/XSLT/call-template">xsl:call-template</a><em>(obsługiwany)</em></li>
 <li><a href="pl/XSLT/choose">xsl:choose</a><em>(obsługiwany)</em></li>
 <li><a href="pl/XSLT/comment">xsl:comment</a><em>(obsługiwany)</em></li>
 <li><a href="pl/XSLT/copy">xsl:copy</a><em>(obsługiwany)</em></li>
 <li><a href="pl/XSLT/copy-of">xsl:copy-of</a><em>(obsługiwany)</em></li>
 <li><a href="pl/XSLT/decimal-format">xsl:decimal-format</a><em>(obsługiwany)</em></li>
 <li><a href="pl/XSLT/element">xsl:element</a><em>(obsługiwany)</em></li>
 <li><a href="pl/XSLT/fallback">xsl:fallback</a><em>(nie obsługiwany)</em></li>
 <li><a href="pl/XSLT/for-each">xsl:for-each</a><em>(obsługiwany)</em></li>
 <li><a href="pl/XSLT/if">xsl:if</a><em>(obsługiwany)</em></li>
 <li><a href="pl/XSLT/import">xsl:import</a><em>(przeważnie obsługiwany)</em></li>
 <li><a href="pl/XSLT/include">xsl:include</a><em>(obsługiwany)</em></li>
 <li><a href="pl/XSLT/key">xsl:key</a><em>(obsługiwany)</em></li>
 <li><a href="pl/XSLT/message">xsl:message</a><em>(obsługiwany)</em></li>
 <li><a href="pl/XSLT/namespace-alias">xsl:namespace-alias</a><em>(nie obsługiwany)</em></li>
 <li><a href="pl/XSLT/number">xsl:number</a><em>(częściowo obsługiwany)</em></li>
 <li><a href="pl/XSLT/otherwise">xsl:otherwise</a><em>(obsługiwany)</em></li>
 <li><a href="pl/XSLT/output">xsl:output</a><em>(częściowo obsługiwany)</em></li>
 <li><a href="pl/XSLT/param">xsl:param</a><em>(obsługiwany)</em></li>
 <li><a href="pl/XSLT/preserve-space">xsl:preserve-space</a><em>(obsługiwany)</em></li>
 <li><a href="pl/XSLT/processing-instruction">xsl:processing-instruction</a></li>
 <li><a href="pl/XSLT/sort">xsl:sort</a><em>(obsługiwany)</em></li>
 <li><a href="pl/XSLT/strip-space">xsl:strip-space</a><em>(obsługiwany)</em></li>
 <li><a href="pl/XSLT/stylesheet">xsl:stylesheet</a><em>(częściowo obsługiwany)</em></li>
 <li><a href="pl/XSLT/template">xsl:template</a><em>(obsługiwany)</em></li>
 <li><a href="pl/XSLT/text">xsl:text</a><em>(częściowo obsługiwany)</em></li>
 <li><a href="pl/XSLT/transform">xsl:transform</a><em>(obsługiwany)</em></li>
 <li><a href="pl/XSLT/value-of">xsl:value-of</a><em>(częściowo obsługiwany)</em></li>
 <li><a href="pl/XSLT/variable">xsl:variable</a><em>(obsługiwany)</em></li>
 <li><a href="pl/XSLT/when">xsl:when</a><em>(obsługiwany)</em></li>
 <li><a href="pl/XSLT/with-param">xsl:with-param</a><em>(obsługiwany)</em></li>
</ul>

<h4 id="Osie_wierzcho.C5.82k.C3.B3w" name="Osie_wierzcho.C5.82k.C3.B3w"><a href="pl/XPath/Osie">Osie wierzchołków</a></h4>

<ul>
 <li><a href="pl/XPath/Osie/ancestor">ancestor</a></li>
 <li><a href="pl/XPath/Osie/ancestor-or-self">ancestor-or-self</a></li>
 <li><a href="pl/XPath/Osie/attribute">attribute</a></li>
 <li><a href="pl/XPath/Osie/child">child</a></li>
 <li><a href="pl/XPath/Osie/descendant">descendant</a></li>
 <li><a href="pl/XPath/Osie/descendant-or-self">descendant-or-self</a></li>
 <li><a href="pl/XPath/Osie/following">following</a></li>
 <li><a href="pl/XPath/Osie/following-sibling">following-sibling</a></li>
 <li><a href="pl/XPath/Osie/namespace">namespace</a><em>(nie obsługiwana)</em></li>
 <li><a href="pl/XPath/Osie/parent">parent</a></li>
 <li><a href="pl/XPath/Osie/preceding">preceding</a></li>
 <li><a href="pl/XPath/Osie/preceding-sibling">preceding-sibling</a></li>
 <li><a href="pl/XPath/Osie/self">self</a></li>
</ul>

<h4 id="Funkcje" name="Funkcje"><a href="pl/XPath/Funkcje">Funkcje</a></h4>

<ul>
 <li><a href="pl/XPath/Funkcje/boolean">boolean()</a><em>(obsługiwana)</em></li>
 <li><a href="pl/XPath/Funkcje/ceiling">ceiling()</a><em>(obsługiwana)</em></li>
 <li><a href="pl/XPath/Funkcje/concat">concat()</a><em>(obsługiwana)</em></li>
 <li><a href="pl/XPath/Funkcje/contains">contains()</a><em>(obsługiwana)</em></li>
 <li><a href="pl/XPath/Funkcje/count">count()</a><em>(obsługiwana)</em></li>
 <li><a href="pl/XPath/Funkcje/current">current()</a><em>(obsługiwana)</em></li>
 <li><a href="pl/XPath/Funkcje/document">document()</a><em>(obsługiwana)</em></li>
 <li><a href="pl/XPath/Funkcje/element-available">element-available()</a><em>(obsługiwana)</em></li>
 <li><a href="pl/XPath/Funkcje/false">false()</a><em>(obsługiwana)</em></li>
 <li><a href="pl/XPath/Funkcje/floor">floor()</a><em>(obsługiwana)</em></li>
 <li><a href="pl/XPath/Funkcje/format-number">format-number()</a><em>(obsługiwana)</em></li>
 <li><a href="pl/XPath/Funkcje/function-available">function-available()</a><em>(obsługiwana)</em></li>
 <li><a href="pl/XPath/Funkcje/generate-id">generate-id()</a><em>(obsługiwana)</em></li>
 <li><a href="pl/XPath/Funkcje/id">id()</a><em>(częściowo obsługiwana)</em></li>
 <li><a href="pl/XPath/Funkcje/key">key()</a><em>(obsługiwana)</em></li>
 <li><a href="pl/XPath/Funkcje/lang">lang()</a><em>(obsługiwana)</em></li>
 <li><a href="pl/XPath/Funkcje/last">last()</a><em>(obsługiwana)</em></li>
 <li><a href="pl/XPath/Funkcje/local-name">local-name()</a><em>(obsługiwana)</em></li>
 <li><a href="pl/XPath/Funkcje/name">name()</a><em>(obsługiwana)</em></li>
 <li><a href="pl/XPath/Funkcje/namespace-uri">namespace-uri()</a><em>(obsługiwana)</em></li>
 <li><a href="pl/XPath/Funkcje/normalize-space">normalize-space()</a><em>(obsługiwana)</em></li>
 <li><a href="pl/XPath/Funkcje/not">not()</a><em>(obsługiwana)</em></li>
 <li><a href="pl/XPath/Funkcje/number">number()</a><em>(obsługiwana)</em></li>
 <li><a href="pl/XPath/Funkcje/position">position()</a><em>(obsługiwana)</em></li>
 <li><a href="pl/XPath/Funkcje/round">round()</a><em>(obsługiwana)</em></li>
 <li><a href="pl/XPath/Funkcje/starts-with">starts-with()</a><em>(obsługiwana)</em></li>
 <li><a href="pl/XPath/Funkcje/string">string()</a><em>(obsługiwana)</em></li>
 <li><a href="pl/XPath/Funkcje/string-length">string-lenght()</a><em>(obsługiwana)</em></li>
 <li><a href="pl/XPath/Funkcje/substring">substring()</a><em>(obsługiwana)</em></li>
 <li><a href="pl/XPath/Funkcje/substring-after">substring-after()</a><em>(obsługiwana)</em></li>
 <li><a href="pl/XPath/Funkcje/substring-before">substring-before()</a><em>(obsługiwana)</em></li>
 <li><a href="pl/XPath/Funkcje/sum">sum()</a><em>(obsługiwana)</em></li>
 <li><a href="pl/XPath/Funkcje/system-property">system-property()</a><em>(obsługiwana)</em></li>
 <li><a href="pl/XPath/Funkcje/translate">translate()</a><em>(obsługiwana)</em></li>
 <li><a href="pl/XPath/Funkcje/true">true()</a><em>(obsługiwana)</em></li>
 <li><a href="pl/XPath/Funkcje/unparsed-entity-url">unparsed-entity-url()</a><em>(nie obsługiwana)</em></li>
</ul>

<h3 id="Przeczytaj_wi.C4.99cej" name="Przeczytaj_wi.C4.99cej"><a href="pl/Transformacje_XML_z_XSLT/Przeczytaj_wi%c4%99cej">Przeczytaj więcej</a></h3>

<ul>
 <li><a href="pl/Transformacje_XML_z_XSLT/Przeczytaj_wi%c4%99cej#Ksi.C4.85.C5.BCki">Książki</a></li>
 <li><a href="pl/Transformacje_XML_z_XSLT/Przeczytaj_wi%c4%99cej#Online">Online</a>
  <ul>
   <li><a href="pl/Transformacje_XML_z_XSLT/Przeczytaj_wi%c4%99cej#Konsorcjum_World_Wide_Web">Konsorcjum World Wide Web</a></li>
   <li><a href="pl/Transformacje_XML_z_XSLT/Przeczytaj_wi%c4%99cej#Portale">Portale</a></li>
   <li><a href="pl/Transformacje_XML_z_XSLT/Przeczytaj_wi%c4%99cej#Artyku.C5.82y">Artykuły</a></li>
   <li><a href="pl/Transformacje_XML_z_XSLT/Przeczytaj_wi%c4%99cej#Przewodniki.2FPrzyk.C5.82ady">Przewodniki/Przykłady</a></li>
   <li><a href="pl/Transformacje_XML_z_XSLT/Przeczytaj_wi%c4%99cej#Listy_dyskusyjne.2FGrupy_newsowe">Listy dyskusyjne/Grupy newsowe</a></li>
  </ul>
 </li>
</ul>

<h3 id="Index" name="Index"><a href="pl/Transformacje_XML_z_XSLT/Index">Index</a></h3>

<div class="originaldocinfo">
<h3 id="Original_Document_Information" name="Original_Document_Information">Original Document Information</h3>

<ul>
 <li>Copyright Information: Copyright © 2001-2003 Netscape. All rights reserved.</li>
 <li>Note: This reprinted article was originally part of the DevEdge site.</li>
</ul>
</div>