Skip to content

Commit cf6050d

Browse files
committed
added xslt doc files
1 parent 03a0aa9 commit cf6050d

5 files changed

Lines changed: 334 additions & 0 deletions

File tree

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
<doc>
2+
<legacy_id></legacy_id>
3+
<name>xsltFreeStylesheet</name>
4+
<type>command</type>
5+
6+
<syntax>
7+
<example>xsltFreeStylesheet id</example>
8+
</syntax>
9+
10+
<synonyms>
11+
</synonyms>
12+
13+
<summary></summary>
14+
15+
<examples>
16+
<example><p>xsltFreeStylesheet 12345678</p><p>xsltFreeStylesheet tStylesheetID</p></example>
17+
</examples>
18+
19+
<history>
20+
<introduced version="6.2">6.2</introduced>
21+
<deprecated version=""></deprecated>
22+
<removed version=""></removed>
23+
24+
<experimental version=""></experimental>
25+
<nonexperimental version=""></nonexperimental>
26+
</history>
27+
28+
<objects>
29+
</objects>
30+
31+
<platforms>
32+
<mac/>
33+
<windows/>
34+
<linux/>
35+
<ios/>
36+
<android/>
37+
<windows_mobile/>
38+
<linux_mobile/>
39+
</platforms>
40+
41+
<classes>
42+
<desktop/>
43+
<server/>
44+
<web/>
45+
<mobile/>
46+
</classes>
47+
48+
<security>
49+
</security>
50+
51+
52+
<classification>
53+
<category>XML</category>
54+
<concept>web</concept>
55+
</classification>
56+
57+
<references>
58+
<function tag="revXMLEvaluateXpath">revXMLEvaluateXpath</function>
59+
<function tag="revCreateXMLTree">revXMLCreateTree</function>
60+
<function tag="revCreateXMLTreeFromFile">revXMLCreateTreeFromFile</function>
61+
<function tag="xsltApplyStylesheet">xsltApplyStylesheet</function>
62+
<function tag="xsltApplyStylesheetFile">xsltApplyStylesheetFile</function>
63+
<function tag="xsltLoadStylesheet">xsltLoadStylesheet</function>
64+
<function tag="xsltLoadStylesheetFromFile">xsltLoadStylesheetFromFile</function>
65+
</references>
66+
67+
<description>The xsltFreeStylesheet command frees the stylesheet id returned by the xsltLoadStylesheet() or xsltLoadStylesheetFromFile() functions after processing the xslt stylesheet. It is the responsibility of the program to free the stylesheet when it is no longer needed in order to prevent memory leaks.</description>
68+
</doc>
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
<doc>
2+
<legacy_id></legacy_id>
3+
<name>xsltApplyStylesheet</name>
4+
<type>function</type>
5+
6+
<syntax>
7+
<example>xsltApplyStylesheet xmlDocID, xsltStylesheetID</example>
8+
</syntax>
9+
10+
<synonyms>
11+
</synonyms>
12+
13+
<summary></summary>
14+
15+
<examples>
16+
<example>put xsltApplyStylesheet(tDocID, tStylesheetID) into tProcessedData</example>
17+
</examples>
18+
19+
<history>
20+
<introduced version="6.2">6.2</introduced>
21+
<deprecated version=""></deprecated>
22+
<removed version=""></removed>
23+
24+
<experimental version=""></experimental>
25+
<nonexperimental version=""></nonexperimental>
26+
</history>
27+
28+
<objects>
29+
</objects>
30+
31+
<platforms>
32+
<mac/>
33+
<windows/>
34+
<linux/>
35+
<ios/>
36+
<android/>
37+
<windows_mobile/>
38+
<linux_mobile/>
39+
</platforms>
40+
41+
<classes>
42+
<desktop/>
43+
<server/>
44+
<web/>
45+
<mobile/>
46+
</classes>
47+
48+
<security>
49+
</security>
50+
51+
52+
<classification>
53+
<category>XML</category>
54+
</classification>
55+
56+
<references>
57+
<function tag="revXMLEvaluateXpath">revXMLEvaluateXpath</function>
58+
<function tag="revCreateXMLTree">revXMLCreateTree</function>
59+
<function tag="revCreateXMLTreeFromFile">revXMLCreateTreeFromFile</function>
60+
<function tag="xsltApplyStylesheetFile">xsltApplyStylesheetFile</function>
61+
<function tag="xsltLoadStylesheet">xsltLoadStylesheet</function>
62+
<function tag="xsltLoadStylesheetFromFile">xsltLoadStylesheetFromFile</function>
63+
</references>
64+
65+
<description>The xsltApplyStylesheet function returns the data set resulting from applying the xslt document against the specified xml document. For instance, given xml data of<p></p><p>&lt;sales&gt;&#13;</p><p> &lt;division id="North"&gt;&#13;</p><p> &lt;revenue&gt;10&lt;/revenue&gt;&#13;</p><p> &lt;growth&gt;9&lt;/growth&gt;&#13;</p><p> &lt;bonus&gt;7&lt;/bonus&gt;&#13;</p><p> &lt;/division&gt;&#13;</p><p> &lt;division id="South"&gt;&#13;</p><p> &lt;revenue&gt;4&lt;/revenue&gt;&#13;</p><p> &lt;growth&gt;3&lt;/growth&gt;&#13;</p><p> &lt;bonus&gt;4&lt;/bonus&gt;&#13;</p><p> &lt;/division&gt;&#13;</p><p> &lt;division id="West"&gt;&#13;</p><p> &lt;revenue&gt;6&lt;/revenue&gt;&#13;</p><p> &lt;growth&gt;-1.5&lt;/growth&gt;&#13;</p><p> &lt;bonus&gt;2&lt;/bonus&gt;&#13;</p><p> &lt;/division&gt;&#13;</p><p>&lt;/sales&gt;</p><p></p><p>and an xslt document of</p><p></p><p>&lt;html xsl:version="1.0"&#13;</p><p> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&#13;</p><p> lang="en"&gt;&#13;</p><p> &lt;head&gt;&#13;</p><p> &lt;title&gt;Sales Results By Division&lt;/title&gt;&#13;</p><p> &lt;/head&gt;&#13;</p><p> &lt;body&gt;&#13;</p><p> &lt;table border="1"&gt;&#13;</p><p> &lt;tr&gt;&#13;</p><p> &lt;th&gt;Division&lt;/th&gt;&#13;</p><p> &lt;th&gt;Revenue&lt;/th&gt;&#13;</p><p> &lt;th&gt;Growth&lt;/th&gt;&#13;</p><p> &lt;th&gt;Bonus&lt;/th&gt;&#13;</p><p> &lt;/tr&gt;&#13;</p><p> &lt;xsl:for-each select="sales/division"&gt;&#13;</p><p> &lt;!-- order the result by revenue --&gt;&#13;</p><p> &lt;xsl:sort select="revenue"&#13;</p><p> data-type="number"&#13;</p><p> order="descending"/&gt;&#13;</p><p> &lt;tr&gt;&#13;</p><p> &lt;td&gt;&#13;</p><p> &lt;em&gt;&lt;xsl:value-of select="@id"/&gt;&lt;/em&gt;&#13;</p><p> &lt;/td&gt;&#13;</p><p> &lt;td&gt;&#13;</p><p> &lt;xsl:value-of select="revenue"/&gt;&#13;</p><p> &lt;/td&gt;&#13;</p><p> &lt;td&gt;&#13;</p><p> &lt;!-- highlight negative growth in red --&gt;&#13;</p><p> &lt;xsl:if test="growth &amp;lt; 0"&gt;&#13;</p><p> &lt;xsl:attribute name="style"&gt;&#13;</p><p> &lt;xsl:text&gt;color:red&lt;/xsl:text&gt;&#13;</p><p> &lt;/xsl:attribute&gt;&#13;</p><p> &lt;/xsl:if&gt;&#13;</p><p> &lt;xsl:value-of select="growth"/&gt;&#13;</p><p> &lt;/td&gt;&#13;</p><p> &lt;td&gt;&#13;</p><p> &lt;xsl:value-of select="bonus"/&gt;&#13;</p><p> &lt;/td&gt;&#13;</p><p> &lt;/tr&gt;&#13;</p><p> &lt;/xsl:for-each&gt;&#13;</p><p> &lt;/table&gt;&#13;</p><p> &lt;/body&gt;&#13;</p><p>&lt;/html&gt;</p><p></p><p>You would end up with</p><p></p><p>&lt;html lang="en"&gt;</p><p>&lt;head&gt;</p><p>&lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"&gt;</p><p>&lt;title&gt;Sales Results By Division&lt;/title&gt;</p><p>&lt;/head&gt;</p><p>&lt;body&gt;&lt;table border="1"&gt;</p><p>&lt;tr&gt;</p><p>&lt;th&gt;Division&lt;/th&gt;</p><p>&lt;th&gt;Revenue&lt;/th&gt;</p><p>&lt;th&gt;Growth&lt;/th&gt;</p><p>&lt;th&gt;Bonus&lt;/th&gt;</p><p>&lt;/tr&gt;</p><p>&lt;tr&gt;</p><p>&lt;td&gt;&lt;em&gt;North&lt;/em&gt;&lt;/td&gt;</p><p>&lt;td&gt;10&lt;/td&gt;</p><p>&lt;td&gt;9&lt;/td&gt;</p><p>&lt;td&gt;7&lt;/td&gt;</p><p>&lt;/tr&gt;</p><p>&lt;tr&gt;</p><p>&lt;td&gt;&lt;em&gt;West&lt;/em&gt;&lt;/td&gt;</p><p>&lt;td&gt;6&lt;/td&gt;</p><p>&lt;td style="color:red"&gt;-1.5&lt;/td&gt;</p><p>&lt;td&gt;2&lt;/td&gt;</p><p>&lt;/tr&gt;</p><p>&lt;tr&gt;</p><p>&lt;td&gt;&lt;em&gt;South&lt;/em&gt;&lt;/td&gt;</p><p>&lt;td&gt;4&lt;/td&gt;</p><p>&lt;td&gt;3&lt;/td&gt;</p><p>&lt;td&gt;4&lt;/td&gt;</p><p>&lt;/tr&gt;</p><p>&lt;/table&gt;&lt;/body&gt;</p><p>&lt;/html&gt;</p></description>
66+
</doc>
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
<doc>
2+
<legacy_id></legacy_id>
3+
<name>xsltApplyStylesheetFromFile</name>
4+
<type>function</type>
5+
6+
<syntax>
7+
<example>xsltApplyStylesheetFromFile xmlDocID, pathToXSLTFile</example>
8+
</syntax>
9+
10+
<synonyms>
11+
</synonyms>
12+
13+
<summary></summary>
14+
15+
<examples>
16+
<example><p>put xsltApplyStylesheetFromFile(tDocID, "getData.xml") into tProcessedData</p><p>put xsltApplyStylesheetFromFile(tDocID, tFilePath) into tProcessedData</p></example>
17+
</examples>
18+
19+
<history>
20+
<introduced version="6.2">6.2</introduced>
21+
<deprecated version=""></deprecated>
22+
<removed version=""></removed>
23+
24+
<experimental version=""></experimental>
25+
<nonexperimental version=""></nonexperimental>
26+
</history>
27+
28+
<objects>
29+
</objects>
30+
31+
<platforms>
32+
<mac/>
33+
<windows/>
34+
<linux/>
35+
<ios/>
36+
<android/>
37+
<windows_mobile/>
38+
<linux_mobile/>
39+
</platforms>
40+
41+
<classes>
42+
<desktop/>
43+
<server/>
44+
<web/>
45+
<mobile/>
46+
</classes>
47+
48+
<security>
49+
</security>
50+
51+
52+
<classification>
53+
<category>XML</category>
54+
</classification>
55+
56+
<references>
57+
<function tag="revXMLEvaluateXpath">revXMLEvaluateXpath</function>
58+
<function tag="revCreateXMLTree">revXMLCreateTree</function>
59+
<function tag="revCreateXMLTreeFromFile">revXMLCreateTreeFromFile</function>
60+
<function tag="xsltApplyStylesheetFile">xsltApplyStylesheetFile</function>
61+
<function tag="xsltLoadStylesheet">xsltLoadStylesheet</function>
62+
<function tag="xsltLoadStylesheetFromFile">xsltLoadStylesheetFromFile</function>
63+
</references>
64+
65+
<description>The xsltApplyStylesheetFromFile function returns the data set resulting from applying the xslt document in the specified file against the specified xml document. For instance, given xml data of<p></p><p>&lt;sales&gt;</p><p> &lt;division id="North"&gt;</p><p> &lt;revenue&gt;10&lt;/revenue&gt;</p><p> &lt;growth&gt;9&lt;/growth&gt;</p><p> &lt;bonus&gt;7&lt;/bonus&gt;</p><p> &lt;/division&gt;</p><p> &lt;division id="South"&gt;</p><p> &lt;revenue&gt;4&lt;/revenue&gt;</p><p> &lt;growth&gt;3&lt;/growth&gt;</p><p> &lt;bonus&gt;4&lt;/bonus&gt;</p><p> &lt;/division&gt;</p><p> &lt;division id="West"&gt;</p><p> &lt;revenue&gt;6&lt;/revenue&gt;</p><p> &lt;growth&gt;-1.5&lt;/growth&gt;</p><p> &lt;bonus&gt;2&lt;/bonus&gt;</p><p> &lt;/division&gt;</p><p>&lt;/sales&gt;</p><p></p><p>and a file containing xslt data of</p><p></p><p>&lt;html xsl:version="1.0"</p><p> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"</p><p> lang="en"&gt;</p><p> &lt;head&gt;</p><p> &lt;title&gt;Sales Results By Division&lt;/title&gt;</p><p> &lt;/head&gt;</p><p> &lt;body&gt;</p><p> &lt;table border="1"&gt;</p><p> &lt;tr&gt;</p><p> &lt;th&gt;Division&lt;/th&gt;</p><p> &lt;th&gt;Revenue&lt;/th&gt;</p><p> &lt;th&gt;Growth&lt;/th&gt;</p><p> &lt;th&gt;Bonus&lt;/th&gt;</p><p> &lt;/tr&gt;</p><p> &lt;xsl:for-each select="sales/division"&gt;</p><p> &lt;!-- order the result by revenue --&gt;</p><p> &lt;xsl:sort select="revenue"</p><p> data-type="number"</p><p> order="descending"/&gt;</p><p> &lt;tr&gt;</p><p> &lt;td&gt;</p><p> &lt;em&gt;&lt;xsl:value-of select="@id"/&gt;&lt;/em&gt;</p><p> &lt;/td&gt;</p><p> &lt;td&gt;</p><p> &lt;xsl:value-of select="revenue"/&gt;</p><p> &lt;/td&gt;</p><p> &lt;td&gt;</p><p> &lt;!-- highlight negative growth in red --&gt;</p><p> &lt;xsl:if test="growth &lt; 0"&gt;</p><p> &lt;xsl:attribute name="style"&gt;</p><p> &lt;xsl:text&gt;color:red&lt;/xsl:text&gt;</p><p> &lt;/xsl:attribute&gt;</p><p> &lt;/xsl:if&gt;</p><p> &lt;xsl:value-of select="growth"/&gt;</p><p> &lt;/td&gt;</p><p> &lt;td&gt;</p><p> &lt;xsl:value-of select="bonus"/&gt;</p><p> &lt;/td&gt;</p><p> &lt;/tr&gt;</p><p> &lt;/xsl:for-each&gt;</p><p> &lt;/table&gt;</p><p> &lt;/body&gt;</p><p>&lt;/html&gt;</p><p></p><p>You would end up with</p><p></p><p>&lt;html lang="en"&gt;</p><p>&lt;head&gt;</p><p>&lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"&gt;</p><p>&lt;title&gt;Sales Results By Division&lt;/title&gt;</p><p>&lt;/head&gt;</p><p>&lt;body&gt;&lt;table border="1"&gt;</p><p>&lt;tr&gt;</p><p>&lt;th&gt;Division&lt;/th&gt;</p><p>&lt;th&gt;Revenue&lt;/th&gt;</p><p>&lt;th&gt;Growth&lt;/th&gt;</p><p>&lt;th&gt;Bonus&lt;/th&gt;</p><p>&lt;/tr&gt;</p><p>&lt;tr&gt;</p><p>&lt;td&gt;&lt;em&gt;North&lt;/em&gt;&lt;/td&gt;</p><p>&lt;td&gt;10&lt;/td&gt;</p><p>&lt;td&gt;9&lt;/td&gt;</p><p>&lt;td&gt;7&lt;/td&gt;</p><p>&lt;/tr&gt;</p><p>&lt;tr&gt;</p><p>&lt;td&gt;&lt;em&gt;West&lt;/em&gt;&lt;/td&gt;</p><p>&lt;td&gt;6&lt;/td&gt;</p><p>&lt;td style="color:red"&gt;-1.5&lt;/td&gt;</p><p>&lt;td&gt;2&lt;/td&gt;</p><p>&lt;/tr&gt;</p><p>&lt;tr&gt;</p><p>&lt;td&gt;&lt;em&gt;South&lt;/em&gt;&lt;/td&gt;</p><p>&lt;td&gt;4&lt;/td&gt;</p><p>&lt;td&gt;3&lt;/td&gt;</p><p>&lt;td&gt;4&lt;/td&gt;</p><p>&lt;/tr&gt;</p><p>&lt;/table&gt;&lt;/body&gt;</p><p>&lt;/html&gt;</p></description>
66+
</doc>
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
<doc>
2+
<legacy_id></legacy_id>
3+
<name>xsltLoadStylesheet</name>
4+
<type>function</type>
5+
6+
<syntax>
7+
<example>xsltLoadStylesheet stylesheetXML</example>
8+
</syntax>
9+
10+
<synonyms>
11+
</synonyms>
12+
13+
<summary>The xsltLoadStylesheet function loads an xslt stylesheet into memory from xml data so that it can be applied to xml data using the xsltApplyStylesheet function. It returns an xslt stylesheet id.</summary>
14+
15+
<examples>
16+
<example><p>put xsltLoadStylesheet(field "fldXSLT") into tStylesheetID</p><p>put xsltApplyStylesheet(tXMLData, tStylesheetID) into tProcessedData</p><p>xsltFreeStylesheet tStylesheetID</p></example>
17+
</examples>
18+
19+
<history>
20+
<introduced version="6.2">6.2</introduced>
21+
<deprecated version=""></deprecated>
22+
<removed version=""></removed>
23+
24+
<experimental version=""></experimental>
25+
<nonexperimental version=""></nonexperimental>
26+
</history>
27+
28+
<objects>
29+
</objects>
30+
31+
<platforms>
32+
<mac/>
33+
<windows/>
34+
<linux/>
35+
<ios/>
36+
<android/>
37+
<windows_mobile/>
38+
<linux_mobile/>
39+
</platforms>
40+
41+
<classes>
42+
<desktop/>
43+
<server/>
44+
<web/>
45+
<mobile/>
46+
</classes>
47+
48+
<security>
49+
</security>
50+
51+
52+
<classification>
53+
<category>XML</category>
54+
</classification>
55+
56+
<references>
57+
<function tag="revXMLEvaluateXpath">revXMLEvaluateXpath</function>
58+
<function tag="revCreateXMLTree">revXMLCreateTree</function>
59+
<function tag="revCreateXMLTreeFromFile">revXMLCreateTreeFromFile</function>
60+
<function tag="xsltApplyStylesheet">xsltApplyStylesheet</function>
61+
<function tag="xsltApplyStylesheetFromFile">xsltApplyStylesheetFromFile</function>
62+
<function tag="xsltLoadStylesheetFromFile">xsltLoadStylesheetFromFile</function>
63+
<command tag="xsltFreeStylesheet">xsltFreeStylesheet</command>
64+
</references>
65+
66+
<description>The xsltLoadStylesheet function loads an xslt stylesheet into memory from xml data so that it can be applied to xml data using the xsltApplyStylesheet function. It returns an xslt stylesheet id. It is the responsibility of the program to free the stylesheet with the xsltFreeStylesheet command when it is no longer needed in order to prevent memory leaks.</description>
67+
</doc>
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
<doc>
2+
<legacy_id></legacy_id>
3+
<name>xsltLoadStylesheetFromFile</name>
4+
<type>function</type>
5+
6+
<syntax>
7+
<example>xsltLoadStylesheetFromFile pathToFile</example>
8+
</syntax>
9+
10+
<synonyms>
11+
</synonyms>
12+
13+
<summary>The xsltLoadStylesheetFromFile function loads an xslt stylesheet into memory from a file so that it can be applied to xml data using the xsltApplyStylesheet function. It returns an xslt stylesheet id.</summary>
14+
15+
<examples>
16+
<example><p>put xsltLoadStylesheetFromFile(tFilePath) into tStylesheetID</p><p>put xsltApplyStylesheet(tXMLData, tStylesheetID) into tProcessedData</p><p>xsltFreeStylesheet tStylesheetID</p></example>
17+
</examples>
18+
19+
<history>
20+
<introduced version="6.2">6.2</introduced>
21+
<deprecated version=""></deprecated>
22+
<removed version=""></removed>
23+
24+
<experimental version=""></experimental>
25+
<nonexperimental version=""></nonexperimental>
26+
</history>
27+
28+
<objects>
29+
</objects>
30+
31+
<platforms>
32+
<mac/>
33+
<windows/>
34+
<linux/>
35+
<ios/>
36+
<android/>
37+
<windows_mobile/>
38+
<linux_mobile/>
39+
</platforms>
40+
41+
<classes>
42+
<desktop/>
43+
<server/>
44+
<web/>
45+
<mobile/>
46+
</classes>
47+
48+
<security>
49+
</security>
50+
51+
52+
<classification>
53+
<category>XML</category>
54+
</classification>
55+
56+
<references>
57+
<function tag="revXMLEvaluateXpath">revXMLEvaluateXpath</function>
58+
<function tag="revCreateXMLTree">revXMLCreateTree</function>
59+
<function tag="revCreateXMLTreeFromFile">revXMLCreateTreeFromFile</function>
60+
<function tag="xsltApplyStylesheet">xsltApplyStylesheet</function>
61+
<function tag="xsltApplyStylesheetFromFile">xsltApplyStylesheetFromFile</function>
62+
<function tag="xsltLoadStylesheetFromFile">xsltLoadStylesheetFromFile</function>
63+
<command tag="xsltFreeStylesheet">xsltFreeStylesheet</command>
64+
</references>
65+
66+
<description>The xsltLoadStylesheetFromFile function loads an xslt stylesheet into memory from a file so that it can be applied to xml data using the xsltApplyStylesheet function. It returns an xslt stylesheet id. It is the responsibility of the program to free the stylesheet with the xsltFreeStylesheet command when it is no longer needed in order to prevent memory leaks.</description>
67+
</doc>

0 commit comments

Comments
 (0)