1
0
mirror of https://gitlab.gnome.org/GNOME/libxslt synced 2025-07-31 02:43:06 +03:00

fixed #129327 make sure parser flags get transmitted to the transformation

* xsltproc.c: fixed #129327 make sure parser flags get transmitted to
  the transformation context
* libxslt/documents.c libxslt/transform.c libxslt/xsltInternals.h
  libxslt/xsltutils.c libxslt/xsltutils.h: add a new call
  xsltSetCtxtParseOptions() to update parsing options in document()
Daniel
This commit is contained in:
Daniel Veillard
2003-12-21 12:21:17 +00:00
parent de541422eb
commit 6d8811b0de
34 changed files with 196 additions and 85 deletions

View File

@ -1,3 +1,11 @@
Sun Dec 21 13:17:05 CET 2003 Daniel Veillard <daniel@veillard.com>
* xsltproc.c: fixed #129327 make sure parser flags get transmitted to
the transformation context
* libxslt/documents.c libxslt/transform.c libxslt/xsltInternals.h
libxslt/xsltutils.c libxslt/xsltutils.h: add a new call
xsltSetCtxtParseOptions() to update parsing options in document()
Sun Dec 21 12:51:12 CET 2003 Daniel Veillard <daniel@veillard.com> Sun Dec 21 12:51:12 CET 2003 Daniel Veillard <daniel@veillard.com>
* libxslt/keys.c: fixed second problem on #122483, namespace * libxslt/keys.c: fixed second problem on #122483, namespace

View File

@ -30,6 +30,7 @@ A:link, A:visited, A:active { text-decoration: underline }
<a href="html/libxslt-transform.html#xsltRunStylesheetUser">xsltRunStylesheetUser</a><br /> <a href="html/libxslt-transform.html#xsltRunStylesheetUser">xsltRunStylesheetUser</a><br />
</dd><dt>Attribute</dt><dd><a href="html/libxslt-xsltInternals.html#_xsltStylesheet">_xsltStylesheet</a><br /> </dd><dt>Attribute</dt><dd><a href="html/libxslt-xsltInternals.html#_xsltStylesheet">_xsltStylesheet</a><br />
</dd></dl><h2>Letter C:</h2><dl><dt>CDTATA</dt><dd><a href="html/libxslt-imports.html#xsltFindElemSpaceHandling">xsltFindElemSpaceHandling</a><br /> </dd></dl><h2>Letter C:</h2><dl><dt>CDTATA</dt><dd><a href="html/libxslt-imports.html#xsltFindElemSpaceHandling">xsltFindElemSpaceHandling</a><br />
</dd><dt>Change</dt><dd><a href="html/libxslt-xsltutils.html#xsltSetCtxtParseOptions">xsltSetCtxtParseOptions</a><br />
</dd><dt>Char</dt><dd><a href="html/libxslt-xsltutils.html#xsltGetUTF8Char">xsltGetUTF8Char</a><br /> </dd><dt>Char</dt><dd><a href="html/libxslt-xsltutils.html#xsltGetUTF8Char">xsltGetUTF8Char</a><br />
</dd><dt>Characters:</dt><dd><a href="html/libxslt-xsltInternals.html#xsltFormatNumberConversion">xsltFormatNumberConversion</a><br /> </dd><dt>Characters:</dt><dd><a href="html/libxslt-xsltInternals.html#xsltFormatNumberConversion">xsltFormatNumberConversion</a><br />
</dd><dt>Check</dt><dd><a href="html/libxslt-xsltutils.html#IS_XSLT_REAL_NODE">IS_XSLT_REAL_NODE</a><br /> </dd><dt>Check</dt><dd><a href="html/libxslt-xsltutils.html#IS_XSLT_REAL_NODE">IS_XSLT_REAL_NODE</a><br />

View File

@ -164,6 +164,7 @@ A:link, A:visited, A:active { text-decoration: underline }
<a href="html/libxslt-xsltutils.html#xsltSaveResultToFile">xsltSaveResultToFile</a><br /> <a href="html/libxslt-xsltutils.html#xsltSaveResultToFile">xsltSaveResultToFile</a><br />
</dd><dt>coalescing</dt><dd><a href="html/libxslt-xsltInternals.html#_xsltTransformContext">_xsltTransformContext</a><br /> </dd><dt>coalescing</dt><dd><a href="html/libxslt-xsltInternals.html#_xsltTransformContext">_xsltTransformContext</a><br />
</dd><dt>com</dt><dd><a href="html/libxslt-xsltInternals.html#xsltFormatNumberConversion">xsltFormatNumberConversion</a><br /> </dd><dt>com</dt><dd><a href="html/libxslt-xsltInternals.html#xsltFormatNumberConversion">xsltFormatNumberConversion</a><br />
</dd><dt>combination</dt><dd><a href="html/libxslt-xsltutils.html#xsltSetCtxtParseOptions">xsltSetCtxtParseOptions</a><br />
</dd><dt>comment</dt><dd><a href="html/libxslt-transform.html#xsltComment">xsltComment</a><br /> </dd><dt>comment</dt><dd><a href="html/libxslt-transform.html#xsltComment">xsltComment</a><br />
</dd><dt>common</dt><dd><a href="html/libxslt-xsltInternals.html#_xsltElemPreComp">_xsltElemPreComp</a><br /> </dd><dt>common</dt><dd><a href="html/libxslt-xsltInternals.html#_xsltElemPreComp">_xsltElemPreComp</a><br />
</dd><dt>comp</dt><dd><a href="html/libxslt-pattern.html#xsltFreeCompMatchList">xsltFreeCompMatchList</a><br /> </dd><dt>comp</dt><dd><a href="html/libxslt-pattern.html#xsltFreeCompMatchList">xsltFreeCompMatchList</a><br />

View File

@ -71,6 +71,7 @@ A:link, A:visited, A:active { text-decoration: underline }
<a href="html/libxslt-transform.html#xsltGetXIncludeDefault">xsltGetXIncludeDefault</a><br /> <a href="html/libxslt-transform.html#xsltGetXIncludeDefault">xsltGetXIncludeDefault</a><br />
<a href="html/libxslt-transform.html#xsltRegisterAllElement">xsltRegisterAllElement</a><br /> <a href="html/libxslt-transform.html#xsltRegisterAllElement">xsltRegisterAllElement</a><br />
<a href="html/libxslt-functions.html#xsltRegisterAllFunctions">xsltRegisterAllFunctions</a><br /> <a href="html/libxslt-functions.html#xsltRegisterAllFunctions">xsltRegisterAllFunctions</a><br />
<a href="html/libxslt-xsltutils.html#xsltSetCtxtParseOptions">xsltSetCtxtParseOptions</a><br />
<a href="html/libxslt-security.html#xsltSetDefaultSecurityPrefs">xsltSetDefaultSecurityPrefs</a><br /> <a href="html/libxslt-security.html#xsltSetDefaultSecurityPrefs">xsltSetDefaultSecurityPrefs</a><br />
<a href="html/libxslt-xsltutils.html#xsltSetSortFunc">xsltSetSortFunc</a><br /> <a href="html/libxslt-xsltutils.html#xsltSetSortFunc">xsltSetSortFunc</a><br />
<a href="html/libxslt-transform.html#xsltSetXIncludeDefault">xsltSetXIncludeDefault</a><br /> <a href="html/libxslt-transform.html#xsltSetXIncludeDefault">xsltSetXIncludeDefault</a><br />
@ -146,6 +147,7 @@ A:link, A:visited, A:active { text-decoration: underline }
</dd><dt>end</dt><dd><a href="html/libxslt-xsltInternals.html#_xsltElemPreComp">_xsltElemPreComp</a><br /> </dd><dt>end</dt><dd><a href="html/libxslt-xsltInternals.html#_xsltElemPreComp">_xsltElemPreComp</a><br />
<a href="html/libxslt-xsltInternals.html#xsltRegisterPersistRVT">xsltRegisterPersistRVT</a><br /> <a href="html/libxslt-xsltInternals.html#xsltRegisterPersistRVT">xsltRegisterPersistRVT</a><br />
<a href="html/libxslt-xsltInternals.html#xsltRegisterTmpRVT">xsltRegisterTmpRVT</a><br /> <a href="html/libxslt-xsltInternals.html#xsltRegisterTmpRVT">xsltRegisterTmpRVT</a><br />
</dd><dt>engine</dt><dd><a href="html/libxslt-xsltutils.html#xsltSetCtxtParseOptions">xsltSetCtxtParseOptions</a><br />
</dd><dt>entity</dt><dd><a href="html/libxslt-xsltutils.html#xsltGetNsProp">xsltGetNsProp</a><br /> </dd><dt>entity</dt><dd><a href="html/libxslt-xsltutils.html#xsltGetNsProp">xsltGetNsProp</a><br />
</dd><dt>entry</dt><dd><a href="html/libxslt-pattern.html#xsltNormalizeCompSteps">xsltNormalizeCompSteps</a><br /> </dd><dt>entry</dt><dd><a href="html/libxslt-pattern.html#xsltNormalizeCompSteps">xsltNormalizeCompSteps</a><br />
<a href="html/libxslt-functions.html#xsltXPathFunctionLookup">xsltXPathFunctionLookup</a><br /> <a href="html/libxslt-functions.html#xsltXPathFunctionLookup">xsltXPathFunctionLookup</a><br />

View File

@ -48,6 +48,7 @@ A:link, A:visited, A:active { text-decoration: underline }
<a href="html/libxslt-xsltutils.html#xsltSetDebuggerCallbacks">xsltSetDebuggerCallbacks</a><br /> <a href="html/libxslt-xsltutils.html#xsltSetDebuggerCallbacks">xsltSetDebuggerCallbacks</a><br />
<a href="html/libxslt-extensions.html#xsltUnregisterExtModule">xsltUnregisterExtModule</a><br /> <a href="html/libxslt-extensions.html#xsltUnregisterExtModule">xsltUnregisterExtModule</a><br />
</dd><dt>libxml2</dt><dd><a href="html/libxslt-xsltutils.html#xsltGetUTF8Char">xsltGetUTF8Char</a><br /> </dd><dt>libxml2</dt><dd><a href="html/libxslt-xsltutils.html#xsltGetUTF8Char">xsltGetUTF8Char</a><br />
<a href="html/libxslt-xsltutils.html#xsltSetCtxtParseOptions">xsltSetCtxtParseOptions</a><br />
</dd><dt>libxslt</dt><dd><a href="html/libxslt-extra.html#XSLT_LIBXSLT_NAMESPACE">XSLT_LIBXSLT_NAMESPACE</a><br /> </dd><dt>libxslt</dt><dd><a href="html/libxslt-extra.html#XSLT_LIBXSLT_NAMESPACE">XSLT_LIBXSLT_NAMESPACE</a><br />
<a href="html/libxslt-extra.html#xsltFunctionNodeSet">xsltFunctionNodeSet</a><br /> <a href="html/libxslt-extra.html#xsltFunctionNodeSet">xsltFunctionNodeSet</a><br />
</dd><dt>lifespan</dt><dd><a href="html/libxslt-xsltutils.html#xsltGetQNameURI">xsltGetQNameURI</a><br /> </dd><dt>lifespan</dt><dd><a href="html/libxslt-xsltutils.html#xsltGetQNameURI">xsltGetQNameURI</a><br />
@ -69,6 +70,7 @@ A:link, A:visited, A:active { text-decoration: underline }
<a href="html/libxslt-extensions.html#xsltShutdownCtxtExts">xsltShutdownCtxtExts</a><br /> <a href="html/libxslt-extensions.html#xsltShutdownCtxtExts">xsltShutdownCtxtExts</a><br />
<a href="html/libxslt-extensions.html#xsltShutdownExts">xsltShutdownExts</a><br /> <a href="html/libxslt-extensions.html#xsltShutdownExts">xsltShutdownExts</a><br />
</dd><dt>loading</dt><dd><a href="html/libxslt-xslt.html#XSLT_PARSE_OPTIONS">XSLT_PARSE_OPTIONS</a><br /> </dd><dt>loading</dt><dd><a href="html/libxslt-xslt.html#XSLT_PARSE_OPTIONS">XSLT_PARSE_OPTIONS</a><br />
<a href="html/libxslt-xsltutils.html#xsltSetCtxtParseOptions">xsltSetCtxtParseOptions</a><br />
</dd><dt>local</dt><dd><a href="html/libxslt-xsltInternals.html#_xsltStackElem">_xsltStackElem</a><br /> </dd><dt>local</dt><dd><a href="html/libxslt-xsltInternals.html#_xsltStackElem">_xsltStackElem</a><br />
<a href="html/libxslt-xsltInternals.html#_xsltTemplate">_xsltTemplate</a><br /> <a href="html/libxslt-xsltInternals.html#_xsltTemplate">_xsltTemplate</a><br />
</dd><dt>locate</dt><dd><a href="html/libxslt-xsltInternals.html#xsltLoadStylesheetPI">xsltLoadStylesheetPI</a><br /> </dd><dt>locate</dt><dd><a href="html/libxslt-xsltInternals.html#xsltLoadStylesheetPI">xsltLoadStylesheetPI</a><br />

View File

@ -50,10 +50,13 @@ A:link, A:visited, A:active { text-decoration: underline }
<a href="html/libxslt-security.html#xsltSecurityForbid">xsltSecurityForbid</a><br /> <a href="html/libxslt-security.html#xsltSecurityForbid">xsltSecurityForbid</a><br />
</dd><dt>optimization</dt><dd><a href="html/libxslt-xsltInternals.html#_xsltTransformContext">_xsltTransformContext</a><br /> </dd><dt>optimization</dt><dd><a href="html/libxslt-xsltInternals.html#_xsltTransformContext">_xsltTransformContext</a><br />
</dd><dt>option</dt><dd><a href="html/libxslt-security.html#xsltGetSecurityPrefs">xsltGetSecurityPrefs</a><br /> </dd><dt>option</dt><dd><a href="html/libxslt-security.html#xsltGetSecurityPrefs">xsltGetSecurityPrefs</a><br />
<a href="html/libxslt-xsltutils.html#xsltSetCtxtParseOptions">xsltSetCtxtParseOptions</a><br />
<a href="html/libxslt-security.html#xsltSetSecurityPrefs">xsltSetSecurityPrefs</a><br /> <a href="html/libxslt-security.html#xsltSetSecurityPrefs">xsltSetSecurityPrefs</a><br />
</dd><dt>options</dt><dd><a href="html/libxslt-xslt.html#XSLT_PARSE_OPTIONS">XSLT_PARSE_OPTIONS</a><br /> </dd><dt>options</dt><dd><a href="html/libxslt-xslt.html#XSLT_PARSE_OPTIONS">XSLT_PARSE_OPTIONS</a><br />
<a href="html/libxslt-xsltInternals.html#_xsltTransformContext">_xsltTransformContext</a><br />
<a href="html/libxslt-security.html#xsltCheckRead">xsltCheckRead</a><br /> <a href="html/libxslt-security.html#xsltCheckRead">xsltCheckRead</a><br />
<a href="html/libxslt-security.html#xsltCheckWrite">xsltCheckWrite</a><br /> <a href="html/libxslt-security.html#xsltCheckWrite">xsltCheckWrite</a><br />
<a href="html/libxslt-xsltutils.html#xsltSetCtxtParseOptions">xsltSetCtxtParseOptions</a><br />
</dd><dt>order</dt><dd><a href="html/libxslt-imports.html#XSLT_GET_IMPORT_INT">XSLT_GET_IMPORT_INT</a><br /> </dd><dt>order</dt><dd><a href="html/libxslt-imports.html#XSLT_GET_IMPORT_INT">XSLT_GET_IMPORT_INT</a><br />
<a href="html/libxslt-imports.html#XSLT_GET_IMPORT_PTR">XSLT_GET_IMPORT_PTR</a><br /> <a href="html/libxslt-imports.html#XSLT_GET_IMPORT_PTR">XSLT_GET_IMPORT_PTR</a><br />
<a href="html/libxslt-xsltutils.html#xsltDocumentSortFunction">xsltDocumentSortFunction</a><br /> <a href="html/libxslt-xsltutils.html#xsltDocumentSortFunction">xsltDocumentSortFunction</a><br />
@ -147,7 +150,9 @@ A:link, A:visited, A:active { text-decoration: underline }
<a href="html/libxslt-variables.html#xsltQuoteUserParams">xsltQuoteUserParams</a><br /> <a href="html/libxslt-variables.html#xsltQuoteUserParams">xsltQuoteUserParams</a><br />
<a href="html/libxslt-transform.html#xsltRunStylesheet">xsltRunStylesheet</a><br /> <a href="html/libxslt-transform.html#xsltRunStylesheet">xsltRunStylesheet</a><br />
<a href="html/libxslt-transform.html#xsltRunStylesheetUser">xsltRunStylesheetUser</a><br /> <a href="html/libxslt-transform.html#xsltRunStylesheetUser">xsltRunStylesheetUser</a><br />
</dd><dt>parser</dt><dd><a href="html/libxslt-transform.html#xsltFreeTransformContext">xsltFreeTransformContext</a><br /> </dd><dt>parser</dt><dd><a href="html/libxslt-xsltInternals.html#_xsltTransformContext">_xsltTransformContext</a><br />
<a href="html/libxslt-transform.html#xsltFreeTransformContext">xsltFreeTransformContext</a><br />
<a href="html/libxslt-xsltutils.html#xsltSetCtxtParseOptions">xsltSetCtxtParseOptions</a><br />
</dd><dt>parsing</dt><dd><a href="html/libxslt-xsltutils.html#xsltSetGenericDebugFunc">xsltSetGenericDebugFunc</a><br /> </dd><dt>parsing</dt><dd><a href="html/libxslt-xsltutils.html#xsltSetGenericDebugFunc">xsltSetGenericDebugFunc</a><br />
<a href="html/libxslt-xsltutils.html#xsltSetGenericErrorFunc">xsltSetGenericErrorFunc</a><br /> <a href="html/libxslt-xsltutils.html#xsltSetGenericErrorFunc">xsltSetGenericErrorFunc</a><br />
</dd><dt>part</dt><dd><a href="html/libxslt-xsltInternals.html#_xsltElemPreComp">_xsltElemPreComp</a><br /> </dd><dt>part</dt><dd><a href="html/libxslt-xsltInternals.html#_xsltElemPreComp">_xsltElemPreComp</a><br />
@ -159,6 +164,7 @@ A:link, A:visited, A:active { text-decoration: underline }
<a href="html/libxslt-templates.html#xsltAttrTemplateValueProcessNode">xsltAttrTemplateValueProcessNode</a><br /> <a href="html/libxslt-templates.html#xsltAttrTemplateValueProcessNode">xsltAttrTemplateValueProcessNode</a><br />
<a href="html/libxslt-templates.html#xsltEvalXPathStringNs">xsltEvalXPathStringNs</a><br /> <a href="html/libxslt-templates.html#xsltEvalXPathStringNs">xsltEvalXPathStringNs</a><br />
</dd><dt>passed</dt><dd><a href="html/libxslt-transform.html#xsltApplyOneTemplate">xsltApplyOneTemplate</a><br /> </dd><dt>passed</dt><dd><a href="html/libxslt-transform.html#xsltApplyOneTemplate">xsltApplyOneTemplate</a><br />
<a href="html/libxslt-xsltutils.html#xsltSetCtxtParseOptions">xsltSetCtxtParseOptions</a><br />
<a href="html/libxslt-xsltutils.html#xsltSetGenericDebugFunc">xsltSetGenericDebugFunc</a><br /> <a href="html/libxslt-xsltutils.html#xsltSetGenericDebugFunc">xsltSetGenericDebugFunc</a><br />
<a href="html/libxslt-xsltutils.html#xsltSetGenericErrorFunc">xsltSetGenericErrorFunc</a><br /> <a href="html/libxslt-xsltutils.html#xsltSetGenericErrorFunc">xsltSetGenericErrorFunc</a><br />
</dd><dt>path</dt><dd><a href="html/libxslt-security.html#xsltSecurityCheck">xsltSecurityCheck</a><br /> </dd><dt>path</dt><dd><a href="html/libxslt-security.html#xsltSecurityCheck">xsltSecurityCheck</a><br />
@ -262,6 +268,7 @@ A:link, A:visited, A:active { text-decoration: underline }
</dd><dt>preserve</dt><dd><a href="html/libxslt-xsltInternals.html#_xsltStylesheet">_xsltStylesheet</a><br /> </dd><dt>preserve</dt><dd><a href="html/libxslt-xsltInternals.html#_xsltStylesheet">_xsltStylesheet</a><br />
</dd><dt>preserve-space</dt><dd><a href="html/libxslt-xsltInternals.html#_xsltStylesheet">_xsltStylesheet</a><br /> </dd><dt>preserve-space</dt><dd><a href="html/libxslt-xsltInternals.html#_xsltStylesheet">_xsltStylesheet</a><br />
<a href="html/libxslt-imports.html#xsltFindElemSpaceHandling">xsltFindElemSpaceHandling</a><br /> <a href="html/libxslt-imports.html#xsltFindElemSpaceHandling">xsltFindElemSpaceHandling</a><br />
</dd><dt>previous</dt><dd><a href="html/libxslt-xsltutils.html#xsltSetCtxtParseOptions">xsltSetCtxtParseOptions</a><br />
</dd><dt>printed</dt><dd><a href="html/libxslt-xsltutils.html#xslAddCall">xslAddCall</a><br /> </dd><dt>printed</dt><dd><a href="html/libxslt-xsltutils.html#xslAddCall">xslAddCall</a><br />
</dd><dt>priority</dt><dd><a href="html/libxslt-xsltInternals.html#XSLT_PAT_NO_PRIORITY">XSLT_PAT_NO_PRIORITY</a><br /> </dd><dt>priority</dt><dd><a href="html/libxslt-xsltInternals.html#XSLT_PAT_NO_PRIORITY">XSLT_PAT_NO_PRIORITY</a><br />
<a href="html/libxslt-xsltInternals.html#_xsltTemplate">_xsltTemplate</a><br /> <a href="html/libxslt-xsltInternals.html#_xsltTemplate">_xsltTemplate</a><br />

View File

@ -220,6 +220,7 @@ A:link, A:visited, A:active { text-decoration: underline }
<a href="html/libxslt-templates.html#xsltEvalXPathStringNs">xsltEvalXPathStringNs</a><br /> <a href="html/libxslt-templates.html#xsltEvalXPathStringNs">xsltEvalXPathStringNs</a><br />
<a href="html/libxslt-transform.html#xsltRunStylesheet">xsltRunStylesheet</a><br /> <a href="html/libxslt-transform.html#xsltRunStylesheet">xsltRunStylesheet</a><br />
<a href="html/libxslt-transform.html#xsltRunStylesheetUser">xsltRunStylesheetUser</a><br /> <a href="html/libxslt-transform.html#xsltRunStylesheetUser">xsltRunStylesheetUser</a><br />
<a href="html/libxslt-xsltutils.html#xsltSetCtxtParseOptions">xsltSetCtxtParseOptions</a><br />
</dd></dl><h2 align="center"><a href="APIchunk0.html">A-P</a> </dd></dl><h2 align="center"><a href="APIchunk0.html">A-P</a>
<a href="APIchunk1.html">Q-a</a> <a href="APIchunk1.html">Q-a</a>
<a href="APIchunk2.html">b-c</a> <a href="APIchunk2.html">b-c</a>

View File

@ -65,6 +65,7 @@ A:link, A:visited, A:active { text-decoration: underline }
</dd><dt>when</dt><dd><a href="html/libxslt-xslt.html#XSLT_PARSE_OPTIONS">XSLT_PARSE_OPTIONS</a><br /> </dd><dt>when</dt><dd><a href="html/libxslt-xslt.html#XSLT_PARSE_OPTIONS">XSLT_PARSE_OPTIONS</a><br />
<a href="html/libxslt-xsltInternals.html#_xsltTransformContext">_xsltTransformContext</a><br /> <a href="html/libxslt-xsltInternals.html#_xsltTransformContext">_xsltTransformContext</a><br />
<a href="html/libxslt-extensions.html#xsltInitElemPreComp">xsltInitElemPreComp</a><br /> <a href="html/libxslt-extensions.html#xsltInitElemPreComp">xsltInitElemPreComp</a><br />
<a href="html/libxslt-xsltutils.html#xsltSetCtxtParseOptions">xsltSetCtxtParseOptions</a><br />
<a href="html/libxslt-functions.html#xsltXPathFunctionLookup">xsltXPathFunctionLookup</a><br /> <a href="html/libxslt-functions.html#xsltXPathFunctionLookup">xsltXPathFunctionLookup</a><br />
<a href="html/libxslt-extensions.html#xsltXPathGetTransformContext">xsltXPathGetTransformContext</a><br /> <a href="html/libxslt-extensions.html#xsltXPathGetTransformContext">xsltXPathGetTransformContext</a><br />
<a href="html/libxslt-variables.html#xsltXPathVariableLookup">xsltXPathVariableLookup</a><br /> <a href="html/libxslt-variables.html#xsltXPathVariableLookup">xsltXPathVariableLookup</a><br />
@ -144,6 +145,8 @@ A:link, A:visited, A:active { text-decoration: underline }
<a href="html/libxslt-transform.html#xsltCopyTextString">xsltCopyTextString</a><br /> <a href="html/libxslt-transform.html#xsltCopyTextString">xsltCopyTextString</a><br />
</dd><dt>xmlNsPtr</dt><dd><a href="html/libxslt-namespaces.html#xsltCopyNamespace">xsltCopyNamespace</a><br /> </dd><dt>xmlNsPtr</dt><dd><a href="html/libxslt-namespaces.html#xsltCopyNamespace">xsltCopyNamespace</a><br />
<a href="html/libxslt-namespaces.html#xsltCopyNamespaceList">xsltCopyNamespaceList</a><br /> <a href="html/libxslt-namespaces.html#xsltCopyNamespaceList">xsltCopyNamespaceList</a><br />
</dd><dt>xmlParserOption</dt><dd><a href="html/libxslt-xsltInternals.html#_xsltTransformContext">_xsltTransformContext</a><br />
<a href="html/libxslt-xsltutils.html#xsltSetCtxtParseOptions">xsltSetCtxtParseOptions</a><br />
</dd><dt>xmlReadxxx</dt><dd><a href="html/libxslt-xslt.html#XSLT_PARSE_OPTIONS">XSLT_PARSE_OPTIONS</a><br /> </dd><dt>xmlReadxxx</dt><dd><a href="html/libxslt-xslt.html#XSLT_PARSE_OPTIONS">XSLT_PARSE_OPTIONS</a><br />
</dd><dt>xsl</dt><dd><a href="html/libxslt-xsltutils.html#XSLT_TRACE">XSLT_TRACE</a><br /> </dd><dt>xsl</dt><dd><a href="html/libxslt-xsltutils.html#XSLT_TRACE">XSLT_TRACE</a><br />
</dd><dt>xsl:apply-templates</dt><dd><a href="html/libxslt-xsltInternals.html#xsltTransformFunction">xsltTransformFunction</a><br /> </dd><dt>xsl:apply-templates</dt><dd><a href="html/libxslt-xsltInternals.html#xsltTransformFunction">xsltTransformFunction</a><br />

View File

@ -13,33 +13,33 @@ A:link, A:visited, A:active { text-decoration: underline }
<a href="html/libxslt-extensions.html#xsltStyleGetExtData">xsltStyleGetExtData</a><br /> <a href="html/libxslt-extensions.html#xsltStyleGetExtData">xsltStyleGetExtData</a><br />
<a href="html/libxslt-extensions.html#xsltGetExtData">xsltGetExtData</a><br /> <a href="html/libxslt-extensions.html#xsltGetExtData">xsltGetExtData</a><br />
<a href="html/libxslt-extensions.html#xsltStyleExtInitFunction">xsltStyleExtInitFunction</a><br /> <a href="html/libxslt-extensions.html#xsltStyleExtInitFunction">xsltStyleExtInitFunction</a><br />
</p><h2>Type xmlAttrPtr:</h2><p><a href="html/libxslt-templates.html#xsltAttrTemplateProcess">xsltAttrTemplateProcess</a><br /> </p><h2>Type xmlAttrPtr:</h2><p><a href="html/libxslt-templates.html#xsltAttrListTemplateProcess">xsltAttrListTemplateProcess</a><br />
<a href="html/libxslt-templates.html#xsltAttrListTemplateProcess">xsltAttrListTemplateProcess</a><br /> <a href="html/libxslt-templates.html#xsltAttrTemplateProcess">xsltAttrTemplateProcess</a><br />
</p><h2>Type xmlChar *:</h2><p><a href="html/libxslt-templates.html#xsltAttrTemplateValueProcess">xsltAttrTemplateValueProcess</a><br /> </p><h2>Type xmlChar *:</h2><p><a href="html/libxslt-templates.html#xsltAttrTemplateValueProcess">xsltAttrTemplateValueProcess</a><br />
<a href="html/libxslt-templates.html#xsltEvalAttrValueTemplate">xsltEvalAttrValueTemplate</a><br /> <a href="html/libxslt-templates.html#xsltEvalAttrValueTemplate">xsltEvalAttrValueTemplate</a><br />
<a href="html/libxslt-templates.html#xsltEvalTemplateString">xsltEvalTemplateString</a><br /> <a href="html/libxslt-templates.html#xsltEvalTemplateString">xsltEvalTemplateString</a><br />
<a href="html/libxslt-xsltutils.html#xsltGetNsProp">xsltGetNsProp</a><br />
<a href="html/libxslt-templates.html#xsltAttrTemplateValueProcessNode">xsltAttrTemplateValueProcessNode</a><br /> <a href="html/libxslt-templates.html#xsltAttrTemplateValueProcessNode">xsltAttrTemplateValueProcessNode</a><br />
<a href="html/libxslt-templates.html#xsltEvalXPathString">xsltEvalXPathString</a><br /> <a href="html/libxslt-templates.html#xsltEvalXPathString">xsltEvalXPathString</a><br />
<a href="html/libxslt-templates.html#xsltEvalXPathStringNs">xsltEvalXPathStringNs</a><br /> <a href="html/libxslt-templates.html#xsltEvalXPathStringNs">xsltEvalXPathStringNs</a><br />
<a href="html/libxslt-xsltutils.html#xsltGetNsProp">xsltGetNsProp</a><br />
<a href="html/libxslt-templates.html#xsltEvalStaticAttrValueTemplate">xsltEvalStaticAttrValueTemplate</a><br /> <a href="html/libxslt-templates.html#xsltEvalStaticAttrValueTemplate">xsltEvalStaticAttrValueTemplate</a><br />
</p><h2>Type xmlDocPtr:</h2><p><a href="html/libxslt-xsltInternals.html#xsltCreateRVT">xsltCreateRVT</a><br /> </p><h2>Type xmlDocPtr:</h2><p><a href="html/libxslt-xsltInternals.html#xsltCreateRVT">xsltCreateRVT</a><br />
<a href="html/libxslt-transform.html#xsltApplyStylesheet">xsltApplyStylesheet</a><br />
<a href="html/libxslt-transform.html#xsltProfileStylesheet">xsltProfileStylesheet</a><br /> <a href="html/libxslt-transform.html#xsltProfileStylesheet">xsltProfileStylesheet</a><br />
<a href="html/libxslt-transform.html#xsltApplyStylesheetUser">xsltApplyStylesheetUser</a><br /> <a href="html/libxslt-transform.html#xsltApplyStylesheetUser">xsltApplyStylesheetUser</a><br />
<a href="html/libxslt-transform.html#xsltApplyStylesheet">xsltApplyStylesheet</a><br />
<a href="html/libxslt-xsltutils.html#xsltGetProfileInformation">xsltGetProfileInformation</a><br /> <a href="html/libxslt-xsltutils.html#xsltGetProfileInformation">xsltGetProfileInformation</a><br />
</p><h2>Type xmlHashTablePtr:</h2><p><a href="html/libxslt-extensions.html#xsltGetExtInfo">xsltGetExtInfo</a><br /> </p><h2>Type xmlHashTablePtr:</h2><p><a href="html/libxslt-extensions.html#xsltGetExtInfo">xsltGetExtInfo</a><br />
</p><h2>Type xmlNodePtr:</h2><p><a href="html/libxslt-transform.html#xsltCopyTextString">xsltCopyTextString</a><br /> </p><h2>Type xmlNodePtr:</h2><p><a href="html/libxslt-transform.html#xsltCopyTextString">xsltCopyTextString</a><br />
</p><h2>Type xmlNodePtr *:</h2><p><a href="html/libxslt-templates.html#xsltTemplateProcess">xsltTemplateProcess</a><br /> </p><h2>Type xmlNodePtr *:</h2><p><a href="html/libxslt-templates.html#xsltTemplateProcess">xsltTemplateProcess</a><br />
</p><h2>Type xmlNodeSetPtr:</h2><p><a href="html/libxslt-keys.html#xsltGetKey">xsltGetKey</a><br /> </p><h2>Type xmlNodeSetPtr:</h2><p><a href="html/libxslt-keys.html#xsltGetKey">xsltGetKey</a><br />
</p><h2>Type xmlNsPtr:</h2><p><a href="html/libxslt-namespaces.html#xsltCopyNamespace">xsltCopyNamespace</a><br /> </p><h2>Type xmlNsPtr:</h2><p><a href="html/libxslt-namespaces.html#xsltCopyNamespace">xsltCopyNamespace</a><br />
<a href="html/libxslt-namespaces.html#xsltGetSpecialNamespace">xsltGetSpecialNamespace</a><br />
<a href="html/libxslt-namespaces.html#xsltGetNamespace">xsltGetNamespace</a><br /> <a href="html/libxslt-namespaces.html#xsltGetNamespace">xsltGetNamespace</a><br />
<a href="html/libxslt-namespaces.html#xsltCopyNamespaceList">xsltCopyNamespaceList</a><br /> <a href="html/libxslt-namespaces.html#xsltCopyNamespaceList">xsltCopyNamespaceList</a><br />
<a href="html/libxslt-namespaces.html#xsltGetSpecialNamespace">xsltGetSpecialNamespace</a><br />
</p><h2>Type xmlXPathError:</h2><p><a href="html/libxslt-xsltInternals.html#xsltFormatNumberConversion">xsltFormatNumberConversion</a><br /> </p><h2>Type xmlXPathError:</h2><p><a href="html/libxslt-xsltInternals.html#xsltFormatNumberConversion">xsltFormatNumberConversion</a><br />
</p><h2>Type xmlXPathFunction:</h2><p><a href="html/libxslt-extensions.html#xsltExtFunctionLookup">xsltExtFunctionLookup</a><br /> </p><h2>Type xmlXPathFunction:</h2><p><a href="html/libxslt-extensions.html#xsltExtFunctionLookup">xsltExtFunctionLookup</a><br />
<a href="html/libxslt-extensions.html#xsltExtModuleFunctionLookup">xsltExtModuleFunctionLookup</a><br />
<a href="html/libxslt-functions.html#xsltXPathFunctionLookup">xsltXPathFunctionLookup</a><br /> <a href="html/libxslt-functions.html#xsltXPathFunctionLookup">xsltXPathFunctionLookup</a><br />
<a href="html/libxslt-extensions.html#xsltExtModuleFunctionLookup">xsltExtModuleFunctionLookup</a><br />
</p><h2>Type xmlXPathObjectPtr:</h2><p><a href="html/libxslt-variables.html#xsltXPathVariableLookup">xsltXPathVariableLookup</a><br /> </p><h2>Type xmlXPathObjectPtr:</h2><p><a href="html/libxslt-variables.html#xsltXPathVariableLookup">xsltXPathVariableLookup</a><br />
<a href="html/libxslt-variables.html#xsltVariableLookup">xsltVariableLookup</a><br /> <a href="html/libxslt-variables.html#xsltVariableLookup">xsltVariableLookup</a><br />
</p><h2>Type xmlXPathObjectPtr *:</h2><p><a href="html/libxslt-xsltutils.html#xsltComputeSortResult">xsltComputeSortResult</a><br /> </p><h2>Type xmlXPathObjectPtr *:</h2><p><a href="html/libxslt-xsltutils.html#xsltComputeSortResult">xsltComputeSortResult</a><br />
@ -57,8 +57,8 @@ A:link, A:visited, A:active { text-decoration: underline }
<a href="html/libxslt-preproc.html#xsltDocumentComp">xsltDocumentComp</a><br /> <a href="html/libxslt-preproc.html#xsltDocumentComp">xsltDocumentComp</a><br />
</p><h2>Type xsltPreComputeFunction:</h2><p><a href="html/libxslt-extensions.html#xsltExtModuleElementPreComputeLookup">xsltExtModuleElementPreComputeLookup</a><br /> </p><h2>Type xsltPreComputeFunction:</h2><p><a href="html/libxslt-extensions.html#xsltExtModuleElementPreComputeLookup">xsltExtModuleElementPreComputeLookup</a><br />
</p><h2>Type xsltSecurityCheck:</h2><p><a href="html/libxslt-security.html#xsltGetSecurityPrefs">xsltGetSecurityPrefs</a><br /> </p><h2>Type xsltSecurityCheck:</h2><p><a href="html/libxslt-security.html#xsltGetSecurityPrefs">xsltGetSecurityPrefs</a><br />
</p><h2>Type xsltSecurityPrefsPtr:</h2><p><a href="html/libxslt-security.html#xsltNewSecurityPrefs">xsltNewSecurityPrefs</a><br /> </p><h2>Type xsltSecurityPrefsPtr:</h2><p><a href="html/libxslt-security.html#xsltGetDefaultSecurityPrefs">xsltGetDefaultSecurityPrefs</a><br />
<a href="html/libxslt-security.html#xsltGetDefaultSecurityPrefs">xsltGetDefaultSecurityPrefs</a><br /> <a href="html/libxslt-security.html#xsltNewSecurityPrefs">xsltNewSecurityPrefs</a><br />
</p><h2>Type xsltStackElemPtr:</h2><p><a href="html/libxslt-variables.html#xsltParseStylesheetCallerParam">xsltParseStylesheetCallerParam</a><br /> </p><h2>Type xsltStackElemPtr:</h2><p><a href="html/libxslt-variables.html#xsltParseStylesheetCallerParam">xsltParseStylesheetCallerParam</a><br />
</p><h2>Type xsltStylesheetPtr:</h2><p><a href="html/libxslt-xsltInternals.html#xsltParseStylesheetImportedDoc">xsltParseStylesheetImportedDoc</a><br /> </p><h2>Type xsltStylesheetPtr:</h2><p><a href="html/libxslt-xsltInternals.html#xsltParseStylesheetImportedDoc">xsltParseStylesheetImportedDoc</a><br />
<a href="html/libxslt-xsltInternals.html#xsltParseStylesheetProcess">xsltParseStylesheetProcess</a><br /> <a href="html/libxslt-xsltInternals.html#xsltParseStylesheetProcess">xsltParseStylesheetProcess</a><br />

View File

@ -364,6 +364,7 @@ A:link, A:visited, A:active { text-decoration: underline }
<a href="html/libxslt-xsltutils.html#xsltGetProfileInformation">xsltGetProfileInformation</a><br /> <a href="html/libxslt-xsltutils.html#xsltGetProfileInformation">xsltGetProfileInformation</a><br />
<a href="html/libxslt-xsltutils.html#XSLT_TRACE_IF">XSLT_TRACE_IF</a><br /> <a href="html/libxslt-xsltutils.html#XSLT_TRACE_IF">XSLT_TRACE_IF</a><br />
<a href="html/libxslt-xsltutils.html#XSLT_TRACE_NONE">XSLT_TRACE_NONE</a><br /> <a href="html/libxslt-xsltutils.html#XSLT_TRACE_NONE">XSLT_TRACE_NONE</a><br />
<a href="html/libxslt-xsltutils.html#xsltSetCtxtParseOptions">xsltSetCtxtParseOptions</a><br />
<a href="html/libxslt-xsltutils.html#xsltSetDebuggerStatus">xsltSetDebuggerStatus</a><br /> <a href="html/libxslt-xsltutils.html#xsltSetDebuggerStatus">xsltSetDebuggerStatus</a><br />
<a href="html/libxslt-xsltutils.html#XSLT_TRACE_TEMPLATES">XSLT_TRACE_TEMPLATES</a><br /> <a href="html/libxslt-xsltutils.html#XSLT_TRACE_TEMPLATES">XSLT_TRACE_TEMPLATES</a><br />
<a href="html/libxslt-xsltutils.html#xsltSetSortFunc">xsltSetSortFunc</a><br /> <a href="html/libxslt-xsltutils.html#xsltSetSortFunc">xsltSetSortFunc</a><br />

View File

@ -485,6 +485,7 @@ A:link, A:visited, A:active { text-decoration: underline }
<a href="html/libxslt-security.html#xsltSecurityAllow">xsltSecurityAllow</a><br /> <a href="html/libxslt-security.html#xsltSecurityAllow">xsltSecurityAllow</a><br />
<a href="html/libxslt-security.html#xsltSecurityCheck">xsltSecurityCheck</a><br /> <a href="html/libxslt-security.html#xsltSecurityCheck">xsltSecurityCheck</a><br />
<a href="html/libxslt-security.html#xsltSecurityForbid">xsltSecurityForbid</a><br /> <a href="html/libxslt-security.html#xsltSecurityForbid">xsltSecurityForbid</a><br />
<a href="html/libxslt-xsltutils.html#xsltSetCtxtParseOptions">xsltSetCtxtParseOptions</a><br />
<a href="html/libxslt-security.html#xsltSetCtxtSecurityPrefs">xsltSetCtxtSecurityPrefs</a><br /> <a href="html/libxslt-security.html#xsltSetCtxtSecurityPrefs">xsltSetCtxtSecurityPrefs</a><br />
<a href="html/libxslt-xsltutils.html#xsltSetCtxtSortFunc">xsltSetCtxtSortFunc</a><br /> <a href="html/libxslt-xsltutils.html#xsltSetCtxtSortFunc">xsltSetCtxtSortFunc</a><br />
<a href="html/libxslt-xsltutils.html#xsltSetTransformErrorFunc">xsltSetTransformErrorFunc</a><br /> <a href="html/libxslt-xsltutils.html#xsltSetTransformErrorFunc">xsltSetTransformErrorFunc</a><br />

View File

@ -326,6 +326,7 @@ A:link, A:visited, A:active { text-decoration: underline }
<a href="html/libxslt-security.html#xsltSecurityOption">xsltSecurityOption</a><br /> <a href="html/libxslt-security.html#xsltSecurityOption">xsltSecurityOption</a><br />
<a href="html/libxslt-security.html#xsltSecurityPrefs">xsltSecurityPrefs</a><br /> <a href="html/libxslt-security.html#xsltSecurityPrefs">xsltSecurityPrefs</a><br />
<a href="html/libxslt-security.html#xsltSecurityPrefsPtr">xsltSecurityPrefsPtr</a><br /> <a href="html/libxslt-security.html#xsltSecurityPrefsPtr">xsltSecurityPrefsPtr</a><br />
<a href="html/libxslt-xsltutils.html#xsltSetCtxtParseOptions">xsltSetCtxtParseOptions</a><br />
<a href="html/libxslt-security.html#xsltSetCtxtSecurityPrefs">xsltSetCtxtSecurityPrefs</a><br /> <a href="html/libxslt-security.html#xsltSetCtxtSecurityPrefs">xsltSetCtxtSecurityPrefs</a><br />
<a href="html/libxslt-xsltutils.html#xsltSetCtxtSortFunc">xsltSetCtxtSortFunc</a><br /> <a href="html/libxslt-xsltutils.html#xsltSetCtxtSortFunc">xsltSetCtxtSortFunc</a><br />
<a href="html/libxslt-xsltutils.html#xsltSetDebuggerCallbacks">xsltSetDebuggerCallbacks</a><br /> <a href="html/libxslt-xsltutils.html#xsltSetDebuggerCallbacks">xsltSetDebuggerCallbacks</a><br />

View File

@ -24,15 +24,15 @@ A:link, A:visited, A:active { text-decoration: underline }
</li> </li>
<li><em>passing parameters on the xsltproc command line doesn't work</em> <li><em>passing parameters on the xsltproc command line doesn't work</em>
<p><em>xsltproc --param test alpha foo.xsl foo.xml</em></p> <p><em>xsltproc --param test alpha foo.xsl foo.xml</em></p>
<p><em>the param does not get passed and ends up as &quot;&quot;</em></p> <p><em>the param does not get passed and ends up as ""</em></p>
<p>In a nutshell do a double escaping at the shell prompt:</p> <p>In a nutshell do a double escaping at the shell prompt:</p>
<p>xsltproc --param test &quot;'alpha'&quot; foo.xsl foo.xml</p> <p>xsltproc --param test "'alpha'" foo.xsl foo.xml</p>
<p>i.e. the string value is surrounded by &quot; and ' then terminated by ' <p>i.e. the string value is surrounded by " and ' then terminated by '
and &quot;. Libxslt interpret the parameter values as XPath expressions, so and ". Libxslt interpret the parameter values as XPath expressions, so
the string -&gt;<code>alpha</code>&lt;- is intepreted as the node set the string -&gt;<code>alpha</code>&lt;- is intepreted as the node set
matching this string. You really want -&gt;<code>'alpha'</code>&lt;- to matching this string. You really want -&gt;<code>'alpha'</code>&lt;- to
be passed to the processor. And to allow this you need to escape the be passed to the processor. And to allow this you need to escape the
quotes at the shell level using -&gt;<code>&quot;'alpha'&quot;</code>&lt;- .</p> quotes at the shell level using -&gt;<code>"'alpha'"</code>&lt;- .</p>
<p>or use</p> <p>or use</p>
<p>xsltproc --stringparam test alpha foo.xsl foo.xml</p> <p>xsltproc --stringparam test alpha foo.xsl foo.xml</p>
</li> </li>

View File

@ -20,13 +20,13 @@ useful resources:</p><ul><li>I strongly suggest to subscribe to <a href="http://
XSLT</a> pages provide links to a lot of answers</li> XSLT</a> pages provide links to a lot of answers</li>
<li>the <a href="http://incrementaldevelopment.com/xsltrick/">Gallery of <li>the <a href="http://incrementaldevelopment.com/xsltrick/">Gallery of
XSLT Tricks</a> provides non-standard use case of XSLT</li> XSLT Tricks</a> provides non-standard use case of XSLT</li>
<li>And I suggest to buy Michael Kay &quot;XSLT Programmer's Reference&quot; book <li>And I suggest to buy Michael Kay "XSLT Programmer's Reference" book
published by <a href="http://www.wrox.com/">Wrox</a> if you plan to work published by <a href="http://www.wrox.com/">Wrox</a> if you plan to work
seriously with XSLT in the future.</li> seriously with XSLT in the future.</li>
</ul><p>Well, bugs or missing features are always possible, and I will make a </ul><p>Well, bugs or missing features are always possible, and I will make a
point of fixing them in a timely fashion. The best way to report a bug is to point of fixing them in a timely fashion. The best way to report a bug is to
use the <a href="http://bugzilla.gnome.org/buglist.cgi?product=libxslt">Gnome use the <a href="http://bugzilla.gnome.org/buglist.cgi?product=libxslt">Gnome
bug tracking database</a> (make sure to use the &quot;libxslt&quot; module name). I bug tracking database</a> (make sure to use the "libxslt" module name). I
look at reports there regularly and it's good to have a reminder when a bug look at reports there regularly and it's good to have a reminder when a bug
is still open. Be sure to specify that the bug is for the package libxslt.</p><p>For small problems you can try to get help on IRC, the #xml channel on is still open. Be sure to specify that the bug is for the package libxslt.</p><p>For small problems you can try to get help on IRC, the #xml channel on
irc.gnome.org (port 6667) usually have a few person subscribed which may help irc.gnome.org (port 6667) usually have a few person subscribed which may help
@ -59,16 +59,16 @@ things really hard to track and in some cases I am not the best person to
answer a given question, ask on the list.</p><p>To <span style="color: #E50000">be really clear about support</span>:</p><ul><li>Support or help <span style="color: #E50000">request MUST be sent to answer a given question, ask on the list.</p><p>To <span style="color: #E50000">be really clear about support</span>:</p><ul><li>Support or help <span style="color: #E50000">request MUST be sent to
the list or on bugzilla</span> in case of problems, so that the Question the list or on bugzilla</span> in case of problems, so that the Question
and Answers can be shared publicly. Failing to do so carries the implicit and Answers can be shared publicly. Failing to do so carries the implicit
message &quot;I want free support but I don't want to share the benefits with message "I want free support but I don't want to share the benefits with
others&quot; and is not welcome. I will automatically Carbon-Copy the others" and is not welcome. I will automatically Carbon-Copy the
xslt@gnome.org mailing list for any technical reply made about libxml2 or xslt@gnome.org mailing list for any technical reply made about libxml2 or
libxslt.</li> libxslt.</li>
<li>There is <span style="color: #E50000">no garantee for support</span>, <li>There is <span style="color: #E50000">no garantee for support</span>,
if your question remains unanswered after a week, repost it, making sure if your question remains unanswered after a week, repost it, making sure
you gave all the detail needed and the informations requested.</li> you gave all the detail needed and the informations requested.</li>
<li>Failing to provide informations as requested or double checking first <li>Failing to provide informations as requested or double checking first
for prior feedback also carries the implicit message &quot;the time of the for prior feedback also carries the implicit message "the time of the
library maintainers is less valuable than my time&quot; and might not be library maintainers is less valuable than my time" and might not be
welcome.</li> welcome.</li>
</ul><p>Of course, bugs reports with a suggested patch for fixing them will </ul><p>Of course, bugs reports with a suggested patch for fixing them will
probably be processed faster.</p><p>If you're looking for help, a quick look at <a href="http://mail.gnome.org/archives/xslt/">the list archive</a> may actually probably be processed faster.</p><p>If you're looking for help, a quick look at <a href="http://mail.gnome.org/archives/xslt/">the list archive</a> may actually

View File

@ -37,11 +37,11 @@ two <a href="http://www.w3.org/TR/xslt">ways to extend an XSLT engine</a>:</p><u
</ul><p>In both cases the extensions need to be associated to a new namespace, </ul><p>In both cases the extensions need to be associated to a new namespace,
i.e. an URI used as the name for the extension's namespace (there is no need i.e. an URI used as the name for the extension's namespace (there is no need
to have a resource there for this to work).</p><p>libxslt provides a few extensions itself, either in libxslt namespace to have a resource there for this to work).</p><p>libxslt provides a few extensions itself, either in libxslt namespace
&quot;http://xmlsoft.org/XSLT/&quot; or in other namespace for well known extensions "http://xmlsoft.org/XSLT/" or in other namespace for well known extensions
provided by other XSLT processors like Saxon, Xalan or XT.</p><h3><a name="Keep" id="Keep">Extension modules</a></h3><p>Since extensions are bound to a namespace name, usually sets of extensions provided by other XSLT processors like Saxon, Xalan or XT.</p><h3><a name="Keep" id="Keep">Extension modules</a></h3><p>Since extensions are bound to a namespace name, usually sets of extensions
coming from a given source are using the same namespace name defining in coming from a given source are using the same namespace name defining in
practice a group of extensions providing elements, functions or both. From practice a group of extensions providing elements, functions or both. From
libxslt point of view those are considered as an &quot;extension module&quot;, and most libxslt point of view those are considered as an "extension module", and most
of the APIs work at a module point of view.</p><p>Registration of new functions or elements are bound to the activation of of the APIs work at a module point of view.</p><p>Registration of new functions or elements are bound to the activation of
the module, this is currently done by declaring the namespace as an extension the module, this is currently done by declaring the namespace as an extension
by using the attribute <code>extension-element-prefixes</code> on the by using the attribute <code>extension-element-prefixes</code> on the
@ -156,18 +156,18 @@ xsltExtFunctionTest(xmlXPathParserContextPtr ctxt, int nargs)
tctxt = xsltXPathGetTransformContext(ctxt); tctxt = xsltXPathGetTransformContext(ctxt);
if (tctxt == NULL) { if (tctxt == NULL) {
xsltGenericError(xsltGenericErrorContext, xsltGenericError(xsltGenericErrorContext,
&quot;xsltExtFunctionTest: failed to get the transformation context\n&quot;); "xsltExtFunctionTest: failed to get the transformation context\n");
return; return;
} }
data = xsltGetExtData(tctxt, (const xmlChar *) XSLT_DEFAULT_URL); data = xsltGetExtData(tctxt, (const xmlChar *) XSLT_DEFAULT_URL);
if (data == NULL) { if (data == NULL) {
xsltGenericError(xsltGenericErrorContext, xsltGenericError(xsltGenericErrorContext,
&quot;xsltExtFunctionTest: failed to get module data\n&quot;); "xsltExtFunctionTest: failed to get module data\n");
return; return;
} }
#ifdef WITH_XSLT_DEBUG_FUNCTION #ifdef WITH_XSLT_DEBUG_FUNCTION
xsltGenericDebug(xsltGenericDebugContext, xsltGenericDebug(xsltGenericDebugContext,
&quot;libxslt:test() called with %d args\n&quot;, nargs); "libxslt:test() called with %d args\n", nargs);
#endif #endif
}</pre><h3><a name="Registerin2" id="Registerin2">Registering an extension element</a></h3><p>There is a single call to do this registration:</p><pre>int xsltRegisterExtElement(xsltTransformContextPtr ctxt, }</pre><h3><a name="Registerin2" id="Registerin2">Registering an extension element</a></h3><p>There is a single call to do this registration:</p><pre>int xsltRegisterExtElement(xsltTransformContextPtr ctxt,
const xmlChar *name, const xmlChar *name,
@ -230,27 +230,27 @@ xsltExtElementTest(xsltTransformContextPtr ctxt, xmlNodePtr node,
if (ctxt == NULL) { if (ctxt == NULL) {
xsltGenericError(xsltGenericErrorContext, xsltGenericError(xsltGenericErrorContext,
&quot;xsltExtElementTest: no transformation context\n&quot;); "xsltExtElementTest: no transformation context\n");
return; return;
} }
if (node == NULL) { if (node == NULL) {
xsltGenericError(xsltGenericErrorContext, xsltGenericError(xsltGenericErrorContext,
&quot;xsltExtElementTest: no current node\n&quot;); "xsltExtElementTest: no current node\n");
return; return;
} }
if (inst == NULL) { if (inst == NULL) {
xsltGenericError(xsltGenericErrorContext, xsltGenericError(xsltGenericErrorContext,
&quot;xsltExtElementTest: no instruction\n&quot;); "xsltExtElementTest: no instruction\n");
return; return;
} }
if (ctxt-&gt;insert == NULL) { if (ctxt-&gt;insert == NULL) {
xsltGenericError(xsltGenericErrorContext, xsltGenericError(xsltGenericErrorContext,
&quot;xsltExtElementTest: no insertion point\n&quot;); "xsltExtElementTest: no insertion point\n");
return; return;
} }
comment = comment =
xmlNewComment((const xmlChar *) xmlNewComment((const xmlChar *)
&quot;libxslt:test element test worked&quot;); "libxslt:test element test worked");
xmlAddChild(ctxt-&gt;insert, comment); xmlAddChild(ctxt-&gt;insert, comment);
}</pre><h3><a name="shutdown" id="shutdown">The shutdown of a module</a></h3><p>When the XSLT processor ends a transformation, the shutdown function (if }</pre><h3><a name="shutdown" id="shutdown">The shutdown of a module</a></h3><p>When the XSLT processor ends a transformation, the shutdown function (if
it exists) of all the modules initialized are called.The it exists) of all the modules initialized are called.The

View File

@ -21,6 +21,6 @@ A:link, A:visited, A:active { text-decoration: underline }
</pre><p>Free up the memory used by attribute sets</p> </pre><p>Free up the memory used by attribute sets</p>
<div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>style</tt></i>:</span></td><td>an XSLT stylesheet</td></tr></tbody></table></div><h3><a name="xsltParseStylesheetAttributeSet" id="xsltParseStylesheetAttributeSet"></a>Function: xsltParseStylesheetAttributeSet</h3><pre class="programlisting">void xsltParseStylesheetAttributeSet (<a href="libxslt-xsltInternals.html#xsltStylesheetPtr">xsltStylesheetPtr</a> style, <br /> xmlNodePtr cur)<br /> <div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>style</tt></i>:</span></td><td>an XSLT stylesheet</td></tr></tbody></table></div><h3><a name="xsltParseStylesheetAttributeSet" id="xsltParseStylesheetAttributeSet"></a>Function: xsltParseStylesheetAttributeSet</h3><pre class="programlisting">void xsltParseStylesheetAttributeSet (<a href="libxslt-xsltInternals.html#xsltStylesheetPtr">xsltStylesheetPtr</a> style, <br /> xmlNodePtr cur)<br />
</pre><p>parse an XSLT stylesheet attribute-set element</p> </pre><p>parse an XSLT stylesheet attribute-set element</p>
<div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>style</tt></i>:</span></td><td>the XSLT stylesheet</td></tr><tr><td><span class="term"><i><tt>cur</tt></i>:</span></td><td>the &quot;attribute-set&quot; element</td></tr></tbody></table></div><h3><a name="xsltResolveStylesheetAttributeSet" id="xsltResolveStylesheetAttributeSet"></a>Function: xsltResolveStylesheetAttributeSet</h3><pre class="programlisting">void xsltResolveStylesheetAttributeSet (<a href="libxslt-xsltInternals.html#xsltStylesheetPtr">xsltStylesheetPtr</a> style)<br /> <div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>style</tt></i>:</span></td><td>the XSLT stylesheet</td></tr><tr><td><span class="term"><i><tt>cur</tt></i>:</span></td><td>the "attribute-set" element</td></tr></tbody></table></div><h3><a name="xsltResolveStylesheetAttributeSet" id="xsltResolveStylesheetAttributeSet"></a>Function: xsltResolveStylesheetAttributeSet</h3><pre class="programlisting">void xsltResolveStylesheetAttributeSet (<a href="libxslt-xsltInternals.html#xsltStylesheetPtr">xsltStylesheetPtr</a> style)<br />
</pre><p>resolve the references between attribute sets.</p> </pre><p>resolve the references between attribute sets.</p>
<div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>style</tt></i>:</span></td><td>the XSLT stylesheet</td></tr></tbody></table></div><p><a href="../bugs.html">Daniel Veillard</a></p></td></tr></table></td></tr></table></td></tr></table></td></tr></table></td></tr></table></body></html> <div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>style</tt></i>:</span></td><td>the XSLT stylesheet</td></tr></tbody></table></div><p><a href="../bugs.html">Daniel Veillard</a></p></td></tr></table></td></tr></table></td></tr></table></td></tr></table></td></tr></table></body></html>

File diff suppressed because one or more lines are too long

View File

@ -38,15 +38,15 @@ A:link, A:visited, A:active { text-decoration: underline }
</pre><p>Free up the data associated to the global variables its value.</p> </pre><p>Free up the data associated to the global variables its value.</p>
<div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i>:</span></td><td>the XSLT transformation context</td></tr></tbody></table></div><h3><a name="xsltParseGlobalParam" id="xsltParseGlobalParam"></a>Function: xsltParseGlobalParam</h3><pre class="programlisting">void xsltParseGlobalParam (<a href="libxslt-xsltInternals.html#xsltStylesheetPtr">xsltStylesheetPtr</a> style, <br /> xmlNodePtr cur)<br /> <div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i>:</span></td><td>the XSLT transformation context</td></tr></tbody></table></div><h3><a name="xsltParseGlobalParam" id="xsltParseGlobalParam"></a>Function: xsltParseGlobalParam</h3><pre class="programlisting">void xsltParseGlobalParam (<a href="libxslt-xsltInternals.html#xsltStylesheetPtr">xsltStylesheetPtr</a> style, <br /> xmlNodePtr cur)<br />
</pre><p>parse an XSLT transformation param declaration and record its value.</p> </pre><p>parse an XSLT transformation param declaration and record its value.</p>
<div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>style</tt></i>:</span></td><td>the XSLT stylesheet</td></tr><tr><td><span class="term"><i><tt>cur</tt></i>:</span></td><td>the &quot;param&quot; element</td></tr></tbody></table></div><h3><a name="xsltParseGlobalVariable" id="xsltParseGlobalVariable"></a>Function: xsltParseGlobalVariable</h3><pre class="programlisting">void xsltParseGlobalVariable (<a href="libxslt-xsltInternals.html#xsltStylesheetPtr">xsltStylesheetPtr</a> style, <br /> xmlNodePtr cur)<br /> <div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>style</tt></i>:</span></td><td>the XSLT stylesheet</td></tr><tr><td><span class="term"><i><tt>cur</tt></i>:</span></td><td>the "param" element</td></tr></tbody></table></div><h3><a name="xsltParseGlobalVariable" id="xsltParseGlobalVariable"></a>Function: xsltParseGlobalVariable</h3><pre class="programlisting">void xsltParseGlobalVariable (<a href="libxslt-xsltInternals.html#xsltStylesheetPtr">xsltStylesheetPtr</a> style, <br /> xmlNodePtr cur)<br />
</pre><p>parse an XSLT transformation variable declaration and record its value.</p> </pre><p>parse an XSLT transformation variable declaration and record its value.</p>
<div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>style</tt></i>:</span></td><td>the XSLT stylesheet</td></tr><tr><td><span class="term"><i><tt>cur</tt></i>:</span></td><td>the &quot;variable&quot; element</td></tr></tbody></table></div><h3><a name="xsltParseStylesheetCallerParam" id="xsltParseStylesheetCallerParam"></a>Function: xsltParseStylesheetCallerParam</h3><pre class="programlisting"><a href="libxslt-xsltInternals.html#xsltStackElemPtr">xsltStackElemPtr</a> xsltParseStylesheetCallerParam (<a href="libxslt-xsltInternals.html#xsltTransformContextPtr">xsltTransformContextPtr</a> ctxt, <br /> xmlNodePtr cur)<br /> <div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>style</tt></i>:</span></td><td>the XSLT stylesheet</td></tr><tr><td><span class="term"><i><tt>cur</tt></i>:</span></td><td>the "variable" element</td></tr></tbody></table></div><h3><a name="xsltParseStylesheetCallerParam" id="xsltParseStylesheetCallerParam"></a>Function: xsltParseStylesheetCallerParam</h3><pre class="programlisting"><a href="libxslt-xsltInternals.html#xsltStackElemPtr">xsltStackElemPtr</a> xsltParseStylesheetCallerParam (<a href="libxslt-xsltInternals.html#xsltTransformContextPtr">xsltTransformContextPtr</a> ctxt, <br /> xmlNodePtr cur)<br />
</pre><p>parse an XSLT transformation param declaration, compute its value but doesn't record it.</p> </pre><p>parse an XSLT transformation param declaration, compute its value but doesn't record it.</p>
<div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i>:</span></td><td>the XSLT transformation context</td></tr><tr><td><span class="term"><i><tt>cur</tt></i>:</span></td><td>the &quot;param&quot; element</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the new <a href="libxslt-xsltInternals.html#xsltStackElemPtr">xsltStackElemPtr</a> or NULL</td></tr></tbody></table></div><h3><a name="xsltParseStylesheetParam" id="xsltParseStylesheetParam"></a>Function: xsltParseStylesheetParam</h3><pre class="programlisting">void xsltParseStylesheetParam (<a href="libxslt-xsltInternals.html#xsltTransformContextPtr">xsltTransformContextPtr</a> ctxt, <br /> xmlNodePtr cur)<br /> <div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i>:</span></td><td>the XSLT transformation context</td></tr><tr><td><span class="term"><i><tt>cur</tt></i>:</span></td><td>the "param" element</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the new <a href="libxslt-xsltInternals.html#xsltStackElemPtr">xsltStackElemPtr</a> or NULL</td></tr></tbody></table></div><h3><a name="xsltParseStylesheetParam" id="xsltParseStylesheetParam"></a>Function: xsltParseStylesheetParam</h3><pre class="programlisting">void xsltParseStylesheetParam (<a href="libxslt-xsltInternals.html#xsltTransformContextPtr">xsltTransformContextPtr</a> ctxt, <br /> xmlNodePtr cur)<br />
</pre><p>parse an XSLT transformation param declaration and record its value.</p> </pre><p>parse an XSLT transformation param declaration and record its value.</p>
<div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i>:</span></td><td>the XSLT transformation context</td></tr><tr><td><span class="term"><i><tt>cur</tt></i>:</span></td><td>the &quot;param&quot; element</td></tr></tbody></table></div><h3><a name="xsltParseStylesheetVariable" id="xsltParseStylesheetVariable"></a>Function: xsltParseStylesheetVariable</h3><pre class="programlisting">void xsltParseStylesheetVariable (<a href="libxslt-xsltInternals.html#xsltTransformContextPtr">xsltTransformContextPtr</a> ctxt, <br /> xmlNodePtr cur)<br /> <div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i>:</span></td><td>the XSLT transformation context</td></tr><tr><td><span class="term"><i><tt>cur</tt></i>:</span></td><td>the "param" element</td></tr></tbody></table></div><h3><a name="xsltParseStylesheetVariable" id="xsltParseStylesheetVariable"></a>Function: xsltParseStylesheetVariable</h3><pre class="programlisting">void xsltParseStylesheetVariable (<a href="libxslt-xsltInternals.html#xsltTransformContextPtr">xsltTransformContextPtr</a> ctxt, <br /> xmlNodePtr cur)<br />
</pre><p>parse an XSLT transformation variable declaration and record its value.</p> </pre><p>parse an XSLT transformation variable declaration and record its value.</p>
<div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i>:</span></td><td>the XSLT transformation context</td></tr><tr><td><span class="term"><i><tt>cur</tt></i>:</span></td><td>the &quot;variable&quot; element</td></tr></tbody></table></div><h3><a name="xsltQuoteOneUserParam" id="xsltQuoteOneUserParam"></a>Function: xsltQuoteOneUserParam</h3><pre class="programlisting">int xsltQuoteOneUserParam (<a href="libxslt-xsltInternals.html#xsltTransformContextPtr">xsltTransformContextPtr</a> ctxt, <br /> const xmlChar * name, <br /> const xmlChar * value)<br /> <div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i>:</span></td><td>the XSLT transformation context</td></tr><tr><td><span class="term"><i><tt>cur</tt></i>:</span></td><td>the "variable" element</td></tr></tbody></table></div><h3><a name="xsltQuoteOneUserParam" id="xsltQuoteOneUserParam"></a>Function: xsltQuoteOneUserParam</h3><pre class="programlisting">int xsltQuoteOneUserParam (<a href="libxslt-xsltInternals.html#xsltTransformContextPtr">xsltTransformContextPtr</a> ctxt, <br /> const xmlChar * name, <br /> const xmlChar * value)<br />
</pre><p>This is normally called from <a href="libxslt-variables.html#xsltQuoteUserParams">xsltQuoteUserParams</a> to process a single parameter from a list of parameters. The @value is stored in the context's global variable/parameter hash table.</p> </pre><p>This is normally called from <a href="libxslt-variables.html#xsltQuoteUserParams">xsltQuoteUserParams</a> to process a single parameter from a list of parameters. The @value is stored in the context's global variable/parameter hash table.</p>
<div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i>:</span></td><td>the XSLT transformation context</td></tr><tr><td><span class="term"><i><tt>name</tt></i>:</span></td><td>a null terminated string giving the name of the parameter</td></tr><tr><td><span class="term"><i><tt>value</tt></i>:</span></td><td>a null terminated string giving the parameter value</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>0 in case of success, -1 in case of error.</td></tr></tbody></table></div><h3><a name="xsltQuoteUserParams" id="xsltQuoteUserParams"></a>Function: xsltQuoteUserParams</h3><pre class="programlisting">int xsltQuoteUserParams (<a href="libxslt-xsltInternals.html#xsltTransformContextPtr">xsltTransformContextPtr</a> ctxt, <br /> const char ** params)<br /> <div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i>:</span></td><td>the XSLT transformation context</td></tr><tr><td><span class="term"><i><tt>name</tt></i>:</span></td><td>a null terminated string giving the name of the parameter</td></tr><tr><td><span class="term"><i><tt>value</tt></i>:</span></td><td>a null terminated string giving the parameter value</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>0 in case of success, -1 in case of error.</td></tr></tbody></table></div><h3><a name="xsltQuoteUserParams" id="xsltQuoteUserParams"></a>Function: xsltQuoteUserParams</h3><pre class="programlisting">int xsltQuoteUserParams (<a href="libxslt-xsltInternals.html#xsltTransformContextPtr">xsltTransformContextPtr</a> ctxt, <br /> const char ** params)<br />
</pre><p>Similar to xsltEvalUserParams, but the values are treated literally and are * *not* evaluated as XPath expressions. This should be done on parsed stylesheets before starting to apply transformations.</p> </pre><p>Similar to xsltEvalUserParams, but the values are treated literally and are * *not* evaluated as XPath expressions. This should be done on parsed stylesheets before starting to apply transformations.</p>

File diff suppressed because one or more lines are too long

View File

@ -201,7 +201,7 @@ void <a href="#xsltTransformFunction">xsltTransformFunction</a> (<a href="libxs
xmlChar * encoding : encoding string xmlChar * encoding : encoding string
int omitXmlDeclaration : * Number formatting. * int omitXmlDeclaration : * Number formatting. *
<a href="libxslt-xsltInternals.html#xsltDecimalFormatPtr">xsltDecimalFormatPtr</a> decimalFormat <a href="libxslt-xsltInternals.html#xsltDecimalFormatPtr">xsltDecimalFormatPtr</a> decimalFormat
int standalone : standalone = &quot;yes&quot; | &quot;no&quot; int standalone : standalone = "yes" | "no"
xmlChar * doctypePublic : doctype-public string xmlChar * doctypePublic : doctype-public string
xmlChar * doctypeSystem : doctype-system string xmlChar * doctypeSystem : doctype-system string
int indent : should output being indented int indent : should output being indented
@ -283,6 +283,7 @@ void <a href="#xsltTransformFunction">xsltTransformFunction</a> (<a href="libxs
unsigned int lasttuse : * Per Context Debugging * unsigned int lasttuse : * Per Context Debugging *
int debugStatus : the context level debug status int debugStatus : the context level debug status
unsigned long * traceCode : pointer to the variable holding the mas unsigned long * traceCode : pointer to the variable holding the mas
int parserOptions : parser options xmlParserOption
}</pre><h3>Enum <a name="xsltTransformState" id="xsltTransformState">xsltTransformState</a></h3><pre class="programlisting">Enum xsltTransformState { }</pre><h3>Enum <a name="xsltTransformState" id="xsltTransformState">xsltTransformState</a></h3><pre class="programlisting">Enum xsltTransformState {
<a name="XSLT_STATE_OK" id="XSLT_STATE_OK">XSLT_STATE_OK</a> = 0 <a name="XSLT_STATE_OK" id="XSLT_STATE_OK">XSLT_STATE_OK</a> = 0
<a name="XSLT_STATE_ERROR" id="XSLT_STATE_ERROR">XSLT_STATE_ERROR</a> = 1 <a name="XSLT_STATE_ERROR" id="XSLT_STATE_ERROR">XSLT_STATE_ERROR</a> = 1
@ -323,7 +324,7 @@ void xsltElemPreCompDeallocator (<a href="libxslt-xsltInternals.html#xsltElemPre
</pre><p>parse an XSLT stylesheet building the associated structures except the processing not needed for imported documents.</p> </pre><p>parse an XSLT stylesheet building the associated structures except the processing not needed for imported documents.</p>
<div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>doc</tt></i>:</span></td><td>an xmlDoc parsed XML</td></tr><tr><td><span class="term"><i><tt>style</tt></i>:</span></td><td>pointer to parent stylesheet</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>a new XSLT stylesheet structure.</td></tr></tbody></table></div><h3><a name="xsltParseStylesheetOutput" id="xsltParseStylesheetOutput"></a>Function: xsltParseStylesheetOutput</h3><pre class="programlisting">void xsltParseStylesheetOutput (<a href="libxslt-xsltInternals.html#xsltStylesheetPtr">xsltStylesheetPtr</a> style, <br /> xmlNodePtr cur)<br /> <div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>doc</tt></i>:</span></td><td>an xmlDoc parsed XML</td></tr><tr><td><span class="term"><i><tt>style</tt></i>:</span></td><td>pointer to parent stylesheet</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>a new XSLT stylesheet structure.</td></tr></tbody></table></div><h3><a name="xsltParseStylesheetOutput" id="xsltParseStylesheetOutput"></a>Function: xsltParseStylesheetOutput</h3><pre class="programlisting">void xsltParseStylesheetOutput (<a href="libxslt-xsltInternals.html#xsltStylesheetPtr">xsltStylesheetPtr</a> style, <br /> xmlNodePtr cur)<br />
</pre><p>parse an XSLT stylesheet output element and record information related to the stylesheet output</p> </pre><p>parse an XSLT stylesheet output element and record information related to the stylesheet output</p>
<div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>style</tt></i>:</span></td><td>the XSLT stylesheet</td></tr><tr><td><span class="term"><i><tt>cur</tt></i>:</span></td><td>the &quot;output&quot; element</td></tr></tbody></table></div><h3><a name="xsltParseStylesheetProcess" id="xsltParseStylesheetProcess"></a>Function: xsltParseStylesheetProcess</h3><pre class="programlisting"><a href="libxslt-xsltInternals.html#xsltStylesheetPtr">xsltStylesheetPtr</a> xsltParseStylesheetProcess (<a href="libxslt-xsltInternals.html#xsltStylesheetPtr">xsltStylesheetPtr</a> ret, <br /> xmlDocPtr doc)<br /> <div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>style</tt></i>:</span></td><td>the XSLT stylesheet</td></tr><tr><td><span class="term"><i><tt>cur</tt></i>:</span></td><td>the "output" element</td></tr></tbody></table></div><h3><a name="xsltParseStylesheetProcess" id="xsltParseStylesheetProcess"></a>Function: xsltParseStylesheetProcess</h3><pre class="programlisting"><a href="libxslt-xsltInternals.html#xsltStylesheetPtr">xsltStylesheetPtr</a> xsltParseStylesheetProcess (<a href="libxslt-xsltInternals.html#xsltStylesheetPtr">xsltStylesheetPtr</a> ret, <br /> xmlDocPtr doc)<br />
</pre><p>parse an XSLT stylesheet adding the associated structures</p> </pre><p>parse an XSLT stylesheet adding the associated structures</p>
<div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>ret</tt></i>:</span></td><td>the XSLT stylesheet</td></tr><tr><td><span class="term"><i><tt>doc</tt></i>:</span></td><td>and xmlDoc parsed XML</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the value of the 'ret' parameter if everything went right, NULL if something went amiss.</td></tr></tbody></table></div><h3><a name="xsltParseTemplateContent" id="xsltParseTemplateContent"></a>Function: xsltParseTemplateContent</h3><pre class="programlisting">void xsltParseTemplateContent (<a href="libxslt-xsltInternals.html#xsltStylesheetPtr">xsltStylesheetPtr</a> style, <br /> xmlNodePtr templ)<br /> <div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>ret</tt></i>:</span></td><td>the XSLT stylesheet</td></tr><tr><td><span class="term"><i><tt>doc</tt></i>:</span></td><td>and xmlDoc parsed XML</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the value of the 'ret' parameter if everything went right, NULL if something went amiss.</td></tr></tbody></table></div><h3><a name="xsltParseTemplateContent" id="xsltParseTemplateContent"></a>Function: xsltParseTemplateContent</h3><pre class="programlisting">void xsltParseTemplateContent (<a href="libxslt-xsltInternals.html#xsltStylesheetPtr">xsltStylesheetPtr</a> style, <br /> xmlNodePtr templ)<br />
</pre><p>parse a template content-model Clean-up the template content from unwanted ignorable blank nodes and process xslt:text</p> </pre><p>parse a template content-model Clean-up the template content from unwanted ignorable blank nodes and process xslt:text</p>

View File

@ -43,6 +43,7 @@ void <a href="#xsltHandleDebuggerCallback">xsltHandleDebuggerCallback</a> (xmlNo
<pre class="programlisting">int <a href="#xsltSaveResultToFile">xsltSaveResultToFile</a> (FILE * file, <br /> xmlDocPtr result, <br /> <a href="libxslt-xsltInternals.html#xsltStylesheetPtr">xsltStylesheetPtr</a> style)</pre> <pre class="programlisting">int <a href="#xsltSaveResultToFile">xsltSaveResultToFile</a> (FILE * file, <br /> xmlDocPtr result, <br /> <a href="libxslt-xsltInternals.html#xsltStylesheetPtr">xsltStylesheetPtr</a> style)</pre>
<pre class="programlisting">int <a href="#xsltSaveResultToFilename">xsltSaveResultToFilename</a> (const char * URL, <br /> xmlDocPtr result, <br /> <a href="libxslt-xsltInternals.html#xsltStylesheetPtr">xsltStylesheetPtr</a> style, <br /> int compression)</pre> <pre class="programlisting">int <a href="#xsltSaveResultToFilename">xsltSaveResultToFilename</a> (const char * URL, <br /> xmlDocPtr result, <br /> <a href="libxslt-xsltInternals.html#xsltStylesheetPtr">xsltStylesheetPtr</a> style, <br /> int compression)</pre>
<pre class="programlisting">int <a href="#xsltSaveResultToString">xsltSaveResultToString</a> (xmlChar ** doc_txt_ptr, <br /> int * doc_txt_len, <br /> xmlDocPtr result, <br /> <a href="libxslt-xsltInternals.html#xsltStylesheetPtr">xsltStylesheetPtr</a> style)</pre> <pre class="programlisting">int <a href="#xsltSaveResultToString">xsltSaveResultToString</a> (xmlChar ** doc_txt_ptr, <br /> int * doc_txt_len, <br /> xmlDocPtr result, <br /> <a href="libxslt-xsltInternals.html#xsltStylesheetPtr">xsltStylesheetPtr</a> style)</pre>
<pre class="programlisting">int <a href="#xsltSetCtxtParseOptions">xsltSetCtxtParseOptions</a> (<a href="libxslt-xsltInternals.html#xsltTransformContextPtr">xsltTransformContextPtr</a> ctxt, <br /> int options)</pre>
<pre class="programlisting">void <a href="#xsltSetCtxtSortFunc">xsltSetCtxtSortFunc</a> (<a href="libxslt-xsltInternals.html#xsltTransformContextPtr">xsltTransformContextPtr</a> ctxt, <br /> <a href="libxslt-xsltInternals.html#xsltSortFunc">xsltSortFunc</a> handler)</pre> <pre class="programlisting">void <a href="#xsltSetCtxtSortFunc">xsltSetCtxtSortFunc</a> (<a href="libxslt-xsltInternals.html#xsltTransformContextPtr">xsltTransformContextPtr</a> ctxt, <br /> <a href="libxslt-xsltInternals.html#xsltSortFunc">xsltSortFunc</a> handler)</pre>
<pre class="programlisting">int <a href="#xsltSetDebuggerCallbacks">xsltSetDebuggerCallbacks</a> (int no, <br /> void * block)</pre> <pre class="programlisting">int <a href="#xsltSetDebuggerCallbacks">xsltSetDebuggerCallbacks</a> (int no, <br /> void * block)</pre>
<pre class="programlisting">void <a href="#xsltSetDebuggerStatus">xsltSetDebuggerStatus</a> (int value)</pre> <pre class="programlisting">void <a href="#xsltSetDebuggerStatus">xsltSetDebuggerStatus</a> (int value)</pre>
@ -94,7 +95,7 @@ void <a href="#xsltHandleDebuggerCallback">xsltHandleDebuggerCallback</a> (xmlNo
<a name="XSLT_TRACE_VARIABLES" id="XSLT_TRACE_VARIABLES">XSLT_TRACE_VARIABLES</a> = 65536 <a name="XSLT_TRACE_VARIABLES" id="XSLT_TRACE_VARIABLES">XSLT_TRACE_VARIABLES</a> = 65536
} }
</pre><h3><a name="xslAddCall" id="xslAddCall"></a>Function: xslAddCall</h3><pre class="programlisting">int xslAddCall (<a href="libxslt-xsltInternals.html#xsltTemplatePtr">xsltTemplatePtr</a> templ, <br /> xmlNodePtr source)<br /> </pre><h3><a name="xslAddCall" id="xslAddCall"></a>Function: xslAddCall</h3><pre class="programlisting">int xslAddCall (<a href="libxslt-xsltInternals.html#xsltTemplatePtr">xsltTemplatePtr</a> templ, <br /> xmlNodePtr source)<br />
</pre><p>Add template &quot;call&quot; to call stack</p> </pre><p>Add template "call" to call stack</p>
<div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>templ</tt></i>:</span></td><td>current template being applied</td></tr><tr><td><span class="term"><i><tt>source</tt></i>:</span></td><td>the source node being processed</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>: 1 on sucess 0 otherwise an error may be printed if WITH_XSLT_DEBUG_BREAKPOINTS is defined</td></tr></tbody></table></div><h3><a name="xslDropCall" id="xslDropCall"></a>Function: xslDropCall</h3><pre class="programlisting">void xslDropCall (void)<br /> <div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>templ</tt></i>:</span></td><td>current template being applied</td></tr><tr><td><span class="term"><i><tt>source</tt></i>:</span></td><td>the source node being processed</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>: 1 on sucess 0 otherwise an error may be printed if WITH_XSLT_DEBUG_BREAKPOINTS is defined</td></tr></tbody></table></div><h3><a name="xslDropCall" id="xslDropCall"></a>Function: xslDropCall</h3><pre class="programlisting">void xslDropCall (void)<br />
</pre><p>Drop the topmost item off the call stack</p> </pre><p>Drop the topmost item off the call stack</p>
<h3><a name="xsltAddCallCallback" id="xsltAddCallCallback"></a>Function type: xsltAddCallCallback</h3><pre class="programlisting">Function type: xsltAddCallCallback <h3><a name="xsltAddCallCallback" id="xsltAddCallCallback"></a>Function type: xsltAddCallCallback</h3><pre class="programlisting">Function type: xsltAddCallCallback
@ -122,7 +123,7 @@ void xsltDropCallCallback (void)
<div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the value of xslDebugStatus.</td></tr></tbody></table></div><h3><a name="xsltGetNsProp" id="xsltGetNsProp"></a>Function: xsltGetNsProp</h3><pre class="programlisting">xmlChar * xsltGetNsProp (xmlNodePtr node, <br /> const xmlChar * name, <br /> const xmlChar * nameSpace)<br /> <div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the value of xslDebugStatus.</td></tr></tbody></table></div><h3><a name="xsltGetNsProp" id="xsltGetNsProp"></a>Function: xsltGetNsProp</h3><pre class="programlisting">xmlChar * xsltGetNsProp (xmlNodePtr node, <br /> const xmlChar * name, <br /> const xmlChar * nameSpace)<br />
</pre><p>Similar to xmlGetNsProp() but with a slightly different semantic Search and get the value of an attribute associated to a node This attribute has to be anchored in the namespace specified, or has no namespace and the element is in that namespace. This does the entity substitution. This function looks in DTD attribute declaration for #FIXED or default declaration values unless DTD use has been turned off.</p> </pre><p>Similar to xmlGetNsProp() but with a slightly different semantic Search and get the value of an attribute associated to a node This attribute has to be anchored in the namespace specified, or has no namespace and the element is in that namespace. This does the entity substitution. This function looks in DTD attribute declaration for #FIXED or default declaration values unless DTD use has been turned off.</p>
<div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>node</tt></i>:</span></td><td>the node</td></tr><tr><td><span class="term"><i><tt>name</tt></i>:</span></td><td>the attribute name</td></tr><tr><td><span class="term"><i><tt>nameSpace</tt></i>:</span></td><td>the URI of the namespace</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the attribute value or NULL if not found. It's up to the caller to free the memory.</td></tr></tbody></table></div><h3><a name="xsltGetProfileInformation" id="xsltGetProfileInformation"></a>Function: xsltGetProfileInformation</h3><pre class="programlisting">xmlDocPtr xsltGetProfileInformation (<a href="libxslt-xsltInternals.html#xsltTransformContextPtr">xsltTransformContextPtr</a> ctxt)<br /> <div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>node</tt></i>:</span></td><td>the node</td></tr><tr><td><span class="term"><i><tt>name</tt></i>:</span></td><td>the attribute name</td></tr><tr><td><span class="term"><i><tt>nameSpace</tt></i>:</span></td><td>the URI of the namespace</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the attribute value or NULL if not found. It's up to the caller to free the memory.</td></tr></tbody></table></div><h3><a name="xsltGetProfileInformation" id="xsltGetProfileInformation"></a>Function: xsltGetProfileInformation</h3><pre class="programlisting">xmlDocPtr xsltGetProfileInformation (<a href="libxslt-xsltInternals.html#xsltTransformContextPtr">xsltTransformContextPtr</a> ctxt)<br />
</pre><p>This function should be called after the transformation completed to extract template processing profiling informations if availble. The informations are returned as an XML document tree like &lt;?xml version=&quot;1.0&quot;?&gt; &lt;profile&gt; &lt;template rank=&quot;1&quot; match=&quot;*&quot; name=&quot;&quot; mode=&quot;&quot; calls=&quot;6&quot; time=&quot;48&quot; average=&quot;8&quot;/&gt; &lt;template rank=&quot;2&quot; match=&quot;item2|item3&quot; name=&quot;&quot; mode=&quot;&quot; calls=&quot;10&quot; time=&quot;30&quot; average=&quot;3&quot;/&gt; &lt;template rank=&quot;3&quot; match=&quot;item1&quot; name=&quot;&quot; mode=&quot;&quot; calls=&quot;5&quot; time=&quot;17&quot; average=&quot;3&quot;/&gt; &lt;/profile&gt; The caller will need to free up the returned tree with xmlFreeDoc()</p> </pre><p>This function should be called after the transformation completed to extract template processing profiling informations if availble. The informations are returned as an XML document tree like &lt;?xml version="1.0"?&gt; &lt;profile&gt; &lt;template rank="1" match="*" name="" mode="" calls="6" time="48" average="8"/&gt; &lt;template rank="2" match="item2|item3" name="" mode="" calls="10" time="30" average="3"/&gt; &lt;template rank="3" match="item1" name="" mode="" calls="5" time="17" average="3"/&gt; &lt;/profile&gt; The caller will need to free up the returned tree with xmlFreeDoc()</p>
<div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i>:</span></td><td>a transformation context</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the xmlDocPtr corresponding to the result or NULL if not available.</td></tr></tbody></table></div><h3><a name="xsltGetQNameURI" id="xsltGetQNameURI"></a>Function: xsltGetQNameURI</h3><pre class="programlisting">const xmlChar * xsltGetQNameURI (xmlNodePtr node, <br /> xmlChar ** name)<br /> <div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i>:</span></td><td>a transformation context</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the xmlDocPtr corresponding to the result or NULL if not available.</td></tr></tbody></table></div><h3><a name="xsltGetQNameURI" id="xsltGetQNameURI"></a>Function: xsltGetQNameURI</h3><pre class="programlisting">const xmlChar * xsltGetQNameURI (xmlNodePtr node, <br /> xmlChar ** name)<br />
</pre><p>This function analyzes @name, if the name contains a prefix, the function seaches the associated namespace in scope for it. It will also replace @name value with the NCName, the old value being freed. Errors in the prefix lookup are signalled by setting @name to NULL. NOTE: the namespace returned is a pointer to the place where it is defined and hence has the same lifespan as the document holding it.</p> </pre><p>This function analyzes @name, if the name contains a prefix, the function seaches the associated namespace in scope for it. It will also replace @name value with the NCName, the old value being freed. Errors in the prefix lookup are signalled by setting @name to NULL. NOTE: the namespace returned is a pointer to the place where it is defined and hence has the same lifespan as the document holding it.</p>
<div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>node</tt></i>:</span></td><td>the node holding the QName</td></tr><tr><td><span class="term"><i><tt>name</tt></i>:</span></td><td>pointer to the initial QName value</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the namespace URI if there is a prefix, or NULL if @name is not prefixed.</td></tr></tbody></table></div><h3><a name="xsltGetUTF8Char" id="xsltGetUTF8Char"></a>Function: xsltGetUTF8Char</h3><pre class="programlisting">int xsltGetUTF8Char (const unsigned char * utf, <br /> int * len)<br /> <div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>node</tt></i>:</span></td><td>the node holding the QName</td></tr><tr><td><span class="term"><i><tt>name</tt></i>:</span></td><td>pointer to the initial QName value</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the namespace URI if there is a prefix, or NULL if @name is not prefixed.</td></tr></tbody></table></div><h3><a name="xsltGetUTF8Char" id="xsltGetUTF8Char"></a>Function: xsltGetUTF8Char</h3><pre class="programlisting">int xsltGetUTF8Char (const unsigned char * utf, <br /> int * len)<br />
@ -146,7 +147,9 @@ void xsltHandleDebuggerCallback (xmlNodePtr cur, <br /> xmlNodePtr node, <b
</pre><p>Save the result @result obtained by applying the @style stylesheet to a file or @URL</p> </pre><p>Save the result @result obtained by applying the @style stylesheet to a file or @URL</p>
<div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>URL</tt></i>:</span></td><td>a filename or URL</td></tr><tr><td><span class="term"><i><tt>result</tt></i>:</span></td><td>the result xmlDocPtr</td></tr><tr><td><span class="term"><i><tt>style</tt></i>:</span></td><td>the stylesheet</td></tr><tr><td><span class="term"><i><tt>compression</tt></i>:</span></td><td>the compression factor (0 - 9 included)</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the number of byte written or -1 in case of failure.</td></tr></tbody></table></div><h3><a name="xsltSaveResultToString" id="xsltSaveResultToString"></a>Function: xsltSaveResultToString</h3><pre class="programlisting">int xsltSaveResultToString (xmlChar ** doc_txt_ptr, <br /> int * doc_txt_len, <br /> xmlDocPtr result, <br /> <a href="libxslt-xsltInternals.html#xsltStylesheetPtr">xsltStylesheetPtr</a> style)<br /> <div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>URL</tt></i>:</span></td><td>a filename or URL</td></tr><tr><td><span class="term"><i><tt>result</tt></i>:</span></td><td>the result xmlDocPtr</td></tr><tr><td><span class="term"><i><tt>style</tt></i>:</span></td><td>the stylesheet</td></tr><tr><td><span class="term"><i><tt>compression</tt></i>:</span></td><td>the compression factor (0 - 9 included)</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the number of byte written or -1 in case of failure.</td></tr></tbody></table></div><h3><a name="xsltSaveResultToString" id="xsltSaveResultToString"></a>Function: xsltSaveResultToString</h3><pre class="programlisting">int xsltSaveResultToString (xmlChar ** doc_txt_ptr, <br /> int * doc_txt_len, <br /> xmlDocPtr result, <br /> <a href="libxslt-xsltInternals.html#xsltStylesheetPtr">xsltStylesheetPtr</a> style)<br />
</pre><p>Save the result @result obtained by applying the @style stylesheet to a file or @URL</p> </pre><p>Save the result @result obtained by applying the @style stylesheet to a file or @URL</p>
<div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>doc_txt_ptr</tt></i>:</span></td><td>Memory pointer for allocated XML text</td></tr><tr><td><span class="term"><i><tt>doc_txt_len</tt></i>:</span></td><td>Length of the generated XML text</td></tr><tr><td><span class="term"><i><tt>result</tt></i>:</span></td><td>the result xmlDocPtr</td></tr><tr><td><span class="term"><i><tt>style</tt></i>:</span></td><td>the stylesheet</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the number of byte written or -1 in case of failure.</td></tr></tbody></table></div><h3><a name="xsltSetCtxtSortFunc" id="xsltSetCtxtSortFunc"></a>Function: xsltSetCtxtSortFunc</h3><pre class="programlisting">void xsltSetCtxtSortFunc (<a href="libxslt-xsltInternals.html#xsltTransformContextPtr">xsltTransformContextPtr</a> ctxt, <br /> <a href="libxslt-xsltInternals.html#xsltSortFunc">xsltSortFunc</a> handler)<br /> <div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>doc_txt_ptr</tt></i>:</span></td><td>Memory pointer for allocated XML text</td></tr><tr><td><span class="term"><i><tt>doc_txt_len</tt></i>:</span></td><td>Length of the generated XML text</td></tr><tr><td><span class="term"><i><tt>result</tt></i>:</span></td><td>the result xmlDocPtr</td></tr><tr><td><span class="term"><i><tt>style</tt></i>:</span></td><td>the stylesheet</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the number of byte written or -1 in case of failure.</td></tr></tbody></table></div><h3><a name="xsltSetCtxtParseOptions" id="xsltSetCtxtParseOptions"></a>Function: xsltSetCtxtParseOptions</h3><pre class="programlisting">int xsltSetCtxtParseOptions (<a href="libxslt-xsltInternals.html#xsltTransformContextPtr">xsltTransformContextPtr</a> ctxt, <br /> int options)<br />
</pre><p>Change the default parser option passed by the XSLT engine to the parser when using document() loading.</p>
<div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i>:</span></td><td>a XSLT process context</td></tr><tr><td><span class="term"><i><tt>options</tt></i>:</span></td><td>a combination of libxml2 xmlParserOption</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the previous options or -1 in case of error</td></tr></tbody></table></div><h3><a name="xsltSetCtxtSortFunc" id="xsltSetCtxtSortFunc"></a>Function: xsltSetCtxtSortFunc</h3><pre class="programlisting">void xsltSetCtxtSortFunc (<a href="libxslt-xsltInternals.html#xsltTransformContextPtr">xsltTransformContextPtr</a> ctxt, <br /> <a href="libxslt-xsltInternals.html#xsltSortFunc">xsltSortFunc</a> handler)<br />
</pre><p>Function to set the handler for XSLT sorting for the specified context. If the handler is NULL, then the global sort function will be called</p> </pre><p>Function to set the handler for XSLT sorting for the specified context. If the handler is NULL, then the global sort function will be called</p>
<div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i>:</span></td><td>a XSLT process context</td></tr><tr><td><span class="term"><i><tt>handler</tt></i>:</span></td><td>the new handler function</td></tr></tbody></table></div><h3><a name="xsltSetDebuggerCallbacks" id="xsltSetDebuggerCallbacks"></a>Function: xsltSetDebuggerCallbacks</h3><pre class="programlisting">int xsltSetDebuggerCallbacks (int no, <br /> void * block)<br /> <div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i>:</span></td><td>a XSLT process context</td></tr><tr><td><span class="term"><i><tt>handler</tt></i>:</span></td><td>the new handler function</td></tr></tbody></table></div><h3><a name="xsltSetDebuggerCallbacks" id="xsltSetDebuggerCallbacks"></a>Function: xsltSetDebuggerCallbacks</h3><pre class="programlisting">int xsltSetDebuggerCallbacks (int no, <br /> void * block)<br />
</pre><p>This function allow to plug a debugger into the XSLT library @block points to a block of memory containing the address of @no callback routines.</p> </pre><p>This function allow to plug a debugger into the XSLT library @block points to a block of memory containing the address of @no callback routines.</p>

View File

@ -61,7 +61,7 @@ indicates the kind of node it represents, the most common ones are:</p><ul><li>d
<li>text nodes</li> <li>text nodes</li>
</ul><p>For the XSLT processing, entity nodes should not be generated (i.e. they </ul><p>For the XSLT processing, entity nodes should not be generated (i.e. they
should be replaced by their content). Most nodes also contains the following should be replaced by their content). Most nodes also contains the following
&quot;navigation&quot; informations:</p><ul><li>the containing <strong>doc</strong>ument</li> "navigation" informations:</p><ul><li>the containing <strong>doc</strong>ument</li>
<li>the <strong>parent</strong> node</li> <li>the <strong>parent</strong> node</li>
<li>the first <strong>children</strong> node</li> <li>the first <strong>children</strong> node</li>
<li>the <strong>last</strong> children node</li> <li>the <strong>last</strong> children node</li>
@ -89,7 +89,7 @@ level:</p><ol><li>parse the stylesheet and generate a DOM tree</li>
<li>the input tree 4/ is not modified except the _private field which may <li>the input tree 4/ is not modified except the _private field which may
be used for labelling keys if used by the stylesheet</li> be used for labelling keys if used by the stylesheet</li>
</ul><h3><a name="XSLT1" id="XSLT1">The XSLT stylesheet compilation</a></h3><p>This is the second step described. It takes a stylesheet tree, and </ul><h3><a name="XSLT1" id="XSLT1">The XSLT stylesheet compilation</a></h3><p>This is the second step described. It takes a stylesheet tree, and
&quot;compiles&quot; it. This associates to each node a structure stored in the "compiles" it. This associates to each node a structure stored in the
_private field and containing information computed in the stylesheet:</p><p align="center"><img src="stylesheet.gif" alt="a compiled XSLT stylesheet" /></p><p>One xsltStylesheet structure is generated per document parsed for the _private field and containing information computed in the stylesheet:</p><p align="center"><img src="stylesheet.gif" alt="a compiled XSLT stylesheet" /></p><p>One xsltStylesheet structure is generated per document parsed for the
stylesheet. XSLT documents allow includes and imports of other documents, stylesheet. XSLT documents allow includes and imports of other documents,
imports are stored in the <strong>imports</strong> list (hence keeping the imports are stored in the <strong>imports</strong> list (hence keeping the
@ -119,7 +119,7 @@ the match. As a result libxslt builds a relatively more complex set of
structures for the templates:</p><p align="center"><img src="templates.gif" alt="The templates related structure" /></p><p>Let's describe a bit more closely what is built. First the xsltStylesheet structures for the templates:</p><p align="center"><img src="templates.gif" alt="The templates related structure" /></p><p>Let's describe a bit more closely what is built. First the xsltStylesheet
structure holds a pointer to the template hash table. All the XSLT patterns structure holds a pointer to the template hash table. All the XSLT patterns
compiled in this stylesheet are indexed by the value of the the target compiled in this stylesheet are indexed by the value of the the target
element (or attribute, pi ...) name, so when a element or an attribute &quot;foo&quot; element (or attribute, pi ...) name, so when a element or an attribute "foo"
needs to be processed the lookup is done using the name as a key.</p><p>Each of the patterns is compiled into an xsltCompMatch structure. It holds needs to be processed the lookup is done using the name as a key.</p><p>Each of the patterns is compiled into an xsltCompMatch structure. It holds
the set of rules based on the tokenization of the pattern stored in reverse the set of rules based on the tokenization of the pattern stored in reverse
order (matching is easier this way). It also holds some information about the order (matching is easier this way). It also holds some information about the
@ -129,7 +129,7 @@ threaded computation, it's unclear that this is a big deal in practice.)
Predicate expressions are not compiled at this stage, they may be at run-time Predicate expressions are not compiled at this stage, they may be at run-time
if needed, but in this case they are compiled as full XPath expressions (the if needed, but in this case they are compiled as full XPath expressions (the
use of some fixed predicate can probably be optimized, they are not yet).</p><p>The xsltCompMatch are then stored in the hash table, the clash list is use of some fixed predicate can probably be optimized, they are not yet).</p><p>The xsltCompMatch are then stored in the hash table, the clash list is
itself sorted by priority of the template to implement &quot;naturally&quot; the XSLT itself sorted by priority of the template to implement "naturally" the XSLT
priority rules.</p><p>Associated to the compiled pattern is the xsltTemplate itself containing priority rules.</p><p>Associated to the compiled pattern is the xsltTemplate itself containing
the information required for the processing of the pattern including, of the information required for the processing of the pattern including, of
course, a pointer to the list of elements used for building the pattern course, a pointer to the list of elements used for building the pattern

View File

@ -435,9 +435,10 @@
<exports symbol='xsltSetGenericErrorFunc' type='function'/> <exports symbol='xsltSetGenericErrorFunc' type='function'/>
<exports symbol='xsltSetDebuggerCallbacks' type='function'/> <exports symbol='xsltSetDebuggerCallbacks' type='function'/>
<exports symbol='xsltCalibrateAdjust' type='function'/> <exports symbol='xsltCalibrateAdjust' type='function'/>
<exports symbol='xsltSetGenericDebugFunc' type='function'/>
<exports symbol='xsltDebugSetDefaultTrace' type='function'/> <exports symbol='xsltDebugSetDefaultTrace' type='function'/>
<exports symbol='xsltDropCallCallback' type='function'/> <exports symbol='xsltDropCallCallback' type='function'/>
<exports symbol='xsltSetGenericDebugFunc' type='function'/> <exports symbol='xsltSetCtxtParseOptions' type='function'/>
<exports symbol='xsltComputeSortResult' type='function'/> <exports symbol='xsltComputeSortResult' type='function'/>
<exports symbol='xsltSetSortFunc' type='function'/> <exports symbol='xsltSetSortFunc' type='function'/>
<exports symbol='xsltDocumentSortFunction' type='function'/> <exports symbol='xsltDocumentSortFunction' type='function'/>
@ -888,6 +889,7 @@ informations are stored'/>
*'/> *'/>
<field name='debugStatus' type='int' info=' the context level debug status'/> <field name='debugStatus' type='int' info=' the context level debug status'/>
<field name='traceCode' type='unsigned long *' info=' pointer to the variable holding the mask'/> <field name='traceCode' type='unsigned long *' info=' pointer to the variable holding the mask'/>
<field name='parserOptions' type='int' info=' parser options xmlParserOption'/>
</struct> </struct>
<typedef name='xsltTransformContextPtr' file='xsltInternals' type='xsltTransformContext *'/> <typedef name='xsltTransformContextPtr' file='xsltInternals' type='xsltTransformContext *'/>
<typedef name='xsltTransformState' file='xsltInternals' type='enum'/> <typedef name='xsltTransformState' file='xsltInternals' type='enum'/>
@ -2071,6 +2073,12 @@ informations are stored'/>
<arg name='ctxt' type='xsltTransformContextPtr' info='an XSLT transformation context'/> <arg name='ctxt' type='xsltTransformContextPtr' info='an XSLT transformation context'/>
<arg name='value' type='const char *' info='unused'/> <arg name='value' type='const char *' info='unused'/>
</function> </function>
<function name='xsltSetCtxtParseOptions' file='xsltutils'>
<info>Change the default parser option passed by the XSLT engine to the parser when using document() loading.</info>
<return type='int' info='the previous options or -1 in case of error'/>
<arg name='ctxt' type='xsltTransformContextPtr' info='a XSLT process context'/>
<arg name='options' type='int' info='a combination of libxml2 xmlParserOption'/>
</function>
<function name='xsltSetCtxtSecurityPrefs' file='security'> <function name='xsltSetCtxtSecurityPrefs' file='security'>
<info>Set the security preference for a specific transformation</info> <info>Set the security preference for a specific transformation</info>
<return type='int' info='-1 in case of error, 0 otherwise'/> <return type='int' info='-1 in case of error, 0 otherwise'/>

View File

@ -320,6 +320,7 @@
<reference name='xsltSecurityOption' href='html/libxslt-security.html#xsltSecurityOption'/> <reference name='xsltSecurityOption' href='html/libxslt-security.html#xsltSecurityOption'/>
<reference name='xsltSecurityPrefs' href='html/libxslt-security.html#xsltSecurityPrefs'/> <reference name='xsltSecurityPrefs' href='html/libxslt-security.html#xsltSecurityPrefs'/>
<reference name='xsltSecurityPrefsPtr' href='html/libxslt-security.html#xsltSecurityPrefsPtr'/> <reference name='xsltSecurityPrefsPtr' href='html/libxslt-security.html#xsltSecurityPrefsPtr'/>
<reference name='xsltSetCtxtParseOptions' href='html/libxslt-xsltutils.html#xsltSetCtxtParseOptions'/>
<reference name='xsltSetCtxtSecurityPrefs' href='html/libxslt-security.html#xsltSetCtxtSecurityPrefs'/> <reference name='xsltSetCtxtSecurityPrefs' href='html/libxslt-security.html#xsltSetCtxtSecurityPrefs'/>
<reference name='xsltSetCtxtSortFunc' href='html/libxslt-xsltutils.html#xsltSetCtxtSortFunc'/> <reference name='xsltSetCtxtSortFunc' href='html/libxslt-xsltutils.html#xsltSetCtxtSortFunc'/>
<reference name='xsltSetDebuggerCallbacks' href='html/libxslt-xsltutils.html#xsltSetDebuggerCallbacks'/> <reference name='xsltSetDebuggerCallbacks' href='html/libxslt-xsltutils.html#xsltSetDebuggerCallbacks'/>
@ -701,6 +702,7 @@
<ref name='xsltSecurityOption'/> <ref name='xsltSecurityOption'/>
<ref name='xsltSecurityPrefs'/> <ref name='xsltSecurityPrefs'/>
<ref name='xsltSecurityPrefsPtr'/> <ref name='xsltSecurityPrefsPtr'/>
<ref name='xsltSetCtxtParseOptions'/>
<ref name='xsltSetCtxtSecurityPrefs'/> <ref name='xsltSetCtxtSecurityPrefs'/>
<ref name='xsltSetCtxtSortFunc'/> <ref name='xsltSetCtxtSortFunc'/>
<ref name='xsltSetDebuggerCallbacks'/> <ref name='xsltSetDebuggerCallbacks'/>
@ -766,24 +768,24 @@
<ref name='xsltStyleExtInitFunction'/> <ref name='xsltStyleExtInitFunction'/>
</type> </type>
<type name='xmlAttrPtr'> <type name='xmlAttrPtr'>
<ref name='xsltAttrTemplateProcess'/>
<ref name='xsltAttrListTemplateProcess'/> <ref name='xsltAttrListTemplateProcess'/>
<ref name='xsltAttrTemplateProcess'/>
</type> </type>
<type name='xmlChar *'> <type name='xmlChar *'>
<ref name='xsltAttrTemplateValueProcess'/> <ref name='xsltAttrTemplateValueProcess'/>
<ref name='xsltEvalAttrValueTemplate'/> <ref name='xsltEvalAttrValueTemplate'/>
<ref name='xsltEvalTemplateString'/> <ref name='xsltEvalTemplateString'/>
<ref name='xsltGetNsProp'/>
<ref name='xsltAttrTemplateValueProcessNode'/> <ref name='xsltAttrTemplateValueProcessNode'/>
<ref name='xsltEvalXPathString'/> <ref name='xsltEvalXPathString'/>
<ref name='xsltEvalXPathStringNs'/> <ref name='xsltEvalXPathStringNs'/>
<ref name='xsltGetNsProp'/>
<ref name='xsltEvalStaticAttrValueTemplate'/> <ref name='xsltEvalStaticAttrValueTemplate'/>
</type> </type>
<type name='xmlDocPtr'> <type name='xmlDocPtr'>
<ref name='xsltCreateRVT'/> <ref name='xsltCreateRVT'/>
<ref name='xsltApplyStylesheet'/>
<ref name='xsltProfileStylesheet'/> <ref name='xsltProfileStylesheet'/>
<ref name='xsltApplyStylesheetUser'/> <ref name='xsltApplyStylesheetUser'/>
<ref name='xsltApplyStylesheet'/>
<ref name='xsltGetProfileInformation'/> <ref name='xsltGetProfileInformation'/>
</type> </type>
<type name='xmlHashTablePtr'> <type name='xmlHashTablePtr'>
@ -800,17 +802,17 @@
</type> </type>
<type name='xmlNsPtr'> <type name='xmlNsPtr'>
<ref name='xsltCopyNamespace'/> <ref name='xsltCopyNamespace'/>
<ref name='xsltGetSpecialNamespace'/>
<ref name='xsltGetNamespace'/> <ref name='xsltGetNamespace'/>
<ref name='xsltCopyNamespaceList'/> <ref name='xsltCopyNamespaceList'/>
<ref name='xsltGetSpecialNamespace'/>
</type> </type>
<type name='xmlXPathError'> <type name='xmlXPathError'>
<ref name='xsltFormatNumberConversion'/> <ref name='xsltFormatNumberConversion'/>
</type> </type>
<type name='xmlXPathFunction'> <type name='xmlXPathFunction'>
<ref name='xsltExtFunctionLookup'/> <ref name='xsltExtFunctionLookup'/>
<ref name='xsltExtModuleFunctionLookup'/>
<ref name='xsltXPathFunctionLookup'/> <ref name='xsltXPathFunctionLookup'/>
<ref name='xsltExtModuleFunctionLookup'/>
</type> </type>
<type name='xmlXPathObjectPtr'> <type name='xmlXPathObjectPtr'>
<ref name='xsltXPathVariableLookup'/> <ref name='xsltXPathVariableLookup'/>
@ -848,8 +850,8 @@
<ref name='xsltGetSecurityPrefs'/> <ref name='xsltGetSecurityPrefs'/>
</type> </type>
<type name='xsltSecurityPrefsPtr'> <type name='xsltSecurityPrefsPtr'>
<ref name='xsltNewSecurityPrefs'/>
<ref name='xsltGetDefaultSecurityPrefs'/> <ref name='xsltGetDefaultSecurityPrefs'/>
<ref name='xsltNewSecurityPrefs'/>
</type> </type>
<type name='xsltStackElemPtr'> <type name='xsltStackElemPtr'>
<ref name='xsltParseStylesheetCallerParam'/> <ref name='xsltParseStylesheetCallerParam'/>
@ -1451,6 +1453,7 @@
<ref name='xsltSecurityAllow'/> <ref name='xsltSecurityAllow'/>
<ref name='xsltSecurityCheck'/> <ref name='xsltSecurityCheck'/>
<ref name='xsltSecurityForbid'/> <ref name='xsltSecurityForbid'/>
<ref name='xsltSetCtxtParseOptions'/>
<ref name='xsltSetCtxtSecurityPrefs'/> <ref name='xsltSetCtxtSecurityPrefs'/>
<ref name='xsltSetCtxtSortFunc'/> <ref name='xsltSetCtxtSortFunc'/>
<ref name='xsltSetTransformErrorFunc'/> <ref name='xsltSetTransformErrorFunc'/>
@ -1869,6 +1872,7 @@
<ref name='xsltGetProfileInformation'/> <ref name='xsltGetProfileInformation'/>
<ref name='XSLT_TRACE_IF'/> <ref name='XSLT_TRACE_IF'/>
<ref name='XSLT_TRACE_NONE'/> <ref name='XSLT_TRACE_NONE'/>
<ref name='xsltSetCtxtParseOptions'/>
<ref name='xsltSetDebuggerStatus'/> <ref name='xsltSetDebuggerStatus'/>
<ref name='XSLT_TRACE_TEMPLATES'/> <ref name='XSLT_TRACE_TEMPLATES'/>
<ref name='xsltSetSortFunc'/> <ref name='xsltSetSortFunc'/>
@ -1914,6 +1918,9 @@
<word name='CDTATA'> <word name='CDTATA'>
<ref name='xsltFindElemSpaceHandling'/> <ref name='xsltFindElemSpaceHandling'/>
</word> </word>
<word name='Change'>
<ref name='xsltSetCtxtParseOptions'/>
</word>
<word name='Char'> <word name='Char'>
<ref name='xsltGetUTF8Char'/> <ref name='xsltGetUTF8Char'/>
</word> </word>
@ -3051,6 +3058,9 @@
<word name='com'> <word name='com'>
<ref name='xsltFormatNumberConversion'/> <ref name='xsltFormatNumberConversion'/>
</word> </word>
<word name='combination'>
<ref name='xsltSetCtxtParseOptions'/>
</word>
<word name='comment'> <word name='comment'>
<ref name='xsltComment'/> <ref name='xsltComment'/>
</word> </word>
@ -3282,6 +3292,7 @@
<ref name='xsltGetXIncludeDefault'/> <ref name='xsltGetXIncludeDefault'/>
<ref name='xsltRegisterAllElement'/> <ref name='xsltRegisterAllElement'/>
<ref name='xsltRegisterAllFunctions'/> <ref name='xsltRegisterAllFunctions'/>
<ref name='xsltSetCtxtParseOptions'/>
<ref name='xsltSetDefaultSecurityPrefs'/> <ref name='xsltSetDefaultSecurityPrefs'/>
<ref name='xsltSetSortFunc'/> <ref name='xsltSetSortFunc'/>
<ref name='xsltSetXIncludeDefault'/> <ref name='xsltSetXIncludeDefault'/>
@ -3436,6 +3447,9 @@
<ref name='xsltRegisterPersistRVT'/> <ref name='xsltRegisterPersistRVT'/>
<ref name='xsltRegisterTmpRVT'/> <ref name='xsltRegisterTmpRVT'/>
</word> </word>
<word name='engine'>
<ref name='xsltSetCtxtParseOptions'/>
</word>
<word name='entity'> <word name='entity'>
<ref name='xsltGetNsProp'/> <ref name='xsltGetNsProp'/>
</word> </word>
@ -4115,6 +4129,7 @@
</word> </word>
<word name='libxml2'> <word name='libxml2'>
<ref name='xsltGetUTF8Char'/> <ref name='xsltGetUTF8Char'/>
<ref name='xsltSetCtxtParseOptions'/>
</word> </word>
<word name='libxslt'> <word name='libxslt'>
<ref name='XSLT_LIBXSLT_NAMESPACE'/> <ref name='XSLT_LIBXSLT_NAMESPACE'/>
@ -4154,6 +4169,7 @@
</word> </word>
<word name='loading'> <word name='loading'>
<ref name='XSLT_PARSE_OPTIONS'/> <ref name='XSLT_PARSE_OPTIONS'/>
<ref name='xsltSetCtxtParseOptions'/>
</word> </word>
<word name='local'> <word name='local'>
<ref name='_xsltStackElem'/> <ref name='_xsltStackElem'/>
@ -4503,12 +4519,15 @@
</word> </word>
<word name='option'> <word name='option'>
<ref name='xsltGetSecurityPrefs'/> <ref name='xsltGetSecurityPrefs'/>
<ref name='xsltSetCtxtParseOptions'/>
<ref name='xsltSetSecurityPrefs'/> <ref name='xsltSetSecurityPrefs'/>
</word> </word>
<word name='options'> <word name='options'>
<ref name='XSLT_PARSE_OPTIONS'/> <ref name='XSLT_PARSE_OPTIONS'/>
<ref name='_xsltTransformContext'/>
<ref name='xsltCheckRead'/> <ref name='xsltCheckRead'/>
<ref name='xsltCheckWrite'/> <ref name='xsltCheckWrite'/>
<ref name='xsltSetCtxtParseOptions'/>
</word> </word>
<word name='order'> <word name='order'>
<ref name='XSLT_GET_IMPORT_INT'/> <ref name='XSLT_GET_IMPORT_INT'/>
@ -4638,7 +4657,9 @@
<ref name='xsltRunStylesheetUser'/> <ref name='xsltRunStylesheetUser'/>
</word> </word>
<word name='parser'> <word name='parser'>
<ref name='_xsltTransformContext'/>
<ref name='xsltFreeTransformContext'/> <ref name='xsltFreeTransformContext'/>
<ref name='xsltSetCtxtParseOptions'/>
</word> </word>
<word name='parsing'> <word name='parsing'>
<ref name='xsltSetGenericDebugFunc'/> <ref name='xsltSetGenericDebugFunc'/>
@ -4658,6 +4679,7 @@
</word> </word>
<word name='passed'> <word name='passed'>
<ref name='xsltApplyOneTemplate'/> <ref name='xsltApplyOneTemplate'/>
<ref name='xsltSetCtxtParseOptions'/>
<ref name='xsltSetGenericDebugFunc'/> <ref name='xsltSetGenericDebugFunc'/>
<ref name='xsltSetGenericErrorFunc'/> <ref name='xsltSetGenericErrorFunc'/>
</word> </word>
@ -4836,6 +4858,9 @@
<ref name='_xsltStylesheet'/> <ref name='_xsltStylesheet'/>
<ref name='xsltFindElemSpaceHandling'/> <ref name='xsltFindElemSpaceHandling'/>
</word> </word>
<word name='previous'>
<ref name='xsltSetCtxtParseOptions'/>
</word>
<word name='printed'> <word name='printed'>
<ref name='xslAddCall'/> <ref name='xslAddCall'/>
</word> </word>
@ -5818,6 +5843,7 @@
<ref name='xsltEvalXPathStringNs'/> <ref name='xsltEvalXPathStringNs'/>
<ref name='xsltRunStylesheet'/> <ref name='xsltRunStylesheet'/>
<ref name='xsltRunStylesheetUser'/> <ref name='xsltRunStylesheetUser'/>
<ref name='xsltSetCtxtParseOptions'/>
</word> </word>
</letter> </letter>
</chunk> </chunk>
@ -5908,6 +5934,7 @@
<ref name='XSLT_PARSE_OPTIONS'/> <ref name='XSLT_PARSE_OPTIONS'/>
<ref name='_xsltTransformContext'/> <ref name='_xsltTransformContext'/>
<ref name='xsltInitElemPreComp'/> <ref name='xsltInitElemPreComp'/>
<ref name='xsltSetCtxtParseOptions'/>
<ref name='xsltXPathFunctionLookup'/> <ref name='xsltXPathFunctionLookup'/>
<ref name='xsltXPathGetTransformContext'/> <ref name='xsltXPathGetTransformContext'/>
<ref name='xsltXPathVariableLookup'/> <ref name='xsltXPathVariableLookup'/>
@ -6040,6 +6067,10 @@
<ref name='xsltCopyNamespace'/> <ref name='xsltCopyNamespace'/>
<ref name='xsltCopyNamespaceList'/> <ref name='xsltCopyNamespaceList'/>
</word> </word>
<word name='xmlParserOption'>
<ref name='_xsltTransformContext'/>
<ref name='xsltSetCtxtParseOptions'/>
</word>
<word name='xmlReadxxx'> <word name='xmlReadxxx'>
<ref name='XSLT_PARSE_OPTIONS'/> <ref name='XSLT_PARSE_OPTIONS'/>
</word> </word>

View File

@ -92,7 +92,7 @@ for a really accurate description</h3><h3>1.1.1: Dec 10 2003</h3><ul><li>code cl
<li>fixed stack overflow in recursive global variable or params</li> <li>fixed stack overflow in recursive global variable or params</li>
<li>cleaned up Result Value Tree handling, and fixed a couple of old bugs <li>cleaned up Result Value Tree handling, and fixed a couple of old bugs
in the process</li> in the process</li>
</ul><h3>1.0.27: Feb 24 2003</h3><ul><li>bug fixes: spurious xmlns:nsX=&quot;&quot; generation, serialization bug (in </ul><h3>1.0.27: Feb 24 2003</h3><ul><li>bug fixes: spurious xmlns:nsX="" generation, serialization bug (in
libxml2), a namespace copy problem, errors in the RPM spec prereqs</li> libxml2), a namespace copy problem, errors in the RPM spec prereqs</li>
<li>Windows path canonicalization and document cache fix (Igor)</li> <li>Windows path canonicalization and document cache fix (Igor)</li>
</ul><h3>1.0.26: Feb 10 2003</h3><ul><li>Fixed 3 serious bugs in document() and stylesheet compilation which </ul><h3>1.0.26: Feb 10 2003</h3><ul><li>Fixed 3 serious bugs in document() and stylesheet compilation which
@ -132,7 +132,7 @@ for a really accurate description</h3><h3>1.1.1: Dec 10 2003</h3><ul><li>code cl
<li>Allowed per transformation error handler.</li> <li>Allowed per transformation error handler.</li>
<li>Fixed a few bugs: node() semantic, URI escaping, media-type, attribute <li>Fixed a few bugs: node() semantic, URI escaping, media-type, attribute
lists</li> lists</li>
</ul><h3>1.0.21: Sep 26 2002</h3><ul><li>Bug fixes: match=&quot;node()&quot;, date:difference() (Igor and Charlie </ul><h3>1.0.21: Sep 26 2002</h3><ul><li>Bug fixes: match="node()", date:difference() (Igor and Charlie
Bozeman), disable-output-escaping</li> Bozeman), disable-output-escaping</li>
<li>Python bindings: style.saveResultToString() from Ralf Mattes</li> <li>Python bindings: style.saveResultToString() from Ralf Mattes</li>
<li>Logos from Marc Liyanage</li> <li>Logos from Marc Liyanage</li>
@ -151,7 +151,7 @@ for a really accurate description</h3><h3>1.1.1: Dec 10 2003</h3><ul><li>code cl
<li>xsl:number fix: Richard Jinks</li> <li>xsl:number fix: Richard Jinks</li>
<li>xsl:format-numbers fix: Ken Neighbors</li> <li>xsl:format-numbers fix: Ken Neighbors</li>
<li>document('') fix: bug pointed by Eric van der Vlist</li> <li>document('') fix: bug pointed by Eric van der Vlist</li>
<li>xsl:message with terminate=&quot;yes&quot; fixes: William Brack</li> <li>xsl:message with terminate="yes" fixes: William Brack</li>
<li>xsl:sort order support added: Ken Neighbors</li> <li>xsl:sort order support added: Ken Neighbors</li>
<li>a few other bug fixes, some of them requiring the latest version of <li>a few other bug fixes, some of them requiring the latest version of
libxml2</li> libxml2</li>
@ -182,7 +182,7 @@ for a really accurate description</h3><h3>1.1.1: Dec 10 2003</h3><ul><li>code cl
<li>Nasty bug fix related to exslt:node-set</li> <li>Nasty bug fix related to exslt:node-set</li>
<li>Fixed the python Makefiles, cleanup of doc comments, Windows <li>Fixed the python Makefiles, cleanup of doc comments, Windows
portability fixes</li> portability fixes</li>
</ul><h3>1.0.13: Mar 8 2002</h3><ul><li>a number of bug fixes including &quot;namespace node have no parents&quot;</li> </ul><h3>1.0.13: Mar 8 2002</h3><ul><li>a number of bug fixes including "namespace node have no parents"</li>
<li>Improvement of the Python bindings</li> <li>Improvement of the Python bindings</li>
<li>Charles Bozeman provided fixes and regression tests for exslt date <li>Charles Bozeman provided fixes and regression tests for exslt date
functions.</li> functions.</li>
@ -219,7 +219,7 @@ for a really accurate description</h3><h3>1.1.1: Dec 10 2003</h3><ul><li>code cl
informations</li> informations</li>
</ul><h3>1.0.7: Nov 10 2001</h3><ul><li>remove a compilation problem with LIBXSLT_PUBLIC</li> </ul><h3>1.0.7: Nov 10 2001</h3><ul><li>remove a compilation problem with LIBXSLT_PUBLIC</li>
<li>Finishing the integration steps for Keith Isdale debugger</li> <li>Finishing the integration steps for Keith Isdale debugger</li>
<li>fixes the handling of indent=&quot;no&quot; on HTML output</li> <li>fixes the handling of indent="no" on HTML output</li>
<li>fixes on the configure script and RPM spec file</li> <li>fixes on the configure script and RPM spec file</li>
</ul><h3>1.0.6: Oct 30 2001</h3><ul><li>bug fixes on number formatting (Thomas), date/time functions (Bruce </ul><h3>1.0.6: Oct 30 2001</h3><ul><li>bug fixes on number formatting (Thomas), date/time functions (Bruce
Miller)</li> Miller)</li>
@ -364,7 +364,7 @@ for a really accurate description</h3><h3>1.1.1: Dec 10 2003</h3><ul><li>code cl
<li>Still misses extension element/function/prefixes support. Support of <li>Still misses extension element/function/prefixes support. Support of
key() and document() is not complete</li> key() and document() is not complete</li>
</ul><h3>0.1.0: Feb 8 2001</h3><ul><li>first beta version, released at the same time as libxml2-2.3.0</li> </ul><h3>0.1.0: Feb 8 2001</h3><ul><li>first beta version, released at the same time as libxml2-2.3.0</li>
<li>lots of bug fixes, first &quot;testing&quot; version, but incomplete</li> <li>lots of bug fixes, first "testing" version, but incomplete</li>
</ul><h3>0.0.1: Jan 25 2001</h3><ul><li>first alpha version released at the same time as libxml2-2.2.12</li> </ul><h3>0.0.1: Jan 25 2001</h3><ul><li>first alpha version released at the same time as libxml2-2.2.12</li>
<li>Framework in place, should work on simple examples, but far from being <li>Framework in place, should work on simple examples, but far from being
feature complete</li> feature complete</li>

View File

@ -18,7 +18,7 @@ or libxslt wrappers or bindings:</p><ul><li><a href="http://mail.gnome.org/archi
earlier version of the libxml/libxslt <a href="http://www.rexx.com/~dkuhlman">wrappers for Python</a></li> earlier version of the libxml/libxslt <a href="http://www.rexx.com/~dkuhlman">wrappers for Python</a></li>
<li>Petr Kozelka provides <a href="http://sourceforge.net/projects/libxml2-pas">Pascal units to glue <li>Petr Kozelka provides <a href="http://sourceforge.net/projects/libxml2-pas">Pascal units to glue
libxml2</a> with Kylix, Delphi and other Pascal compilers</li> libxml2</a> with Kylix, Delphi and other Pascal compilers</li>
<li>Wai-Sun &quot;Squidster&quot; Chia provides <a href="http://www.rubycolor.org/arc/redist/">bindings for Ruby</a> and <li>Wai-Sun "Squidster" Chia provides <a href="http://www.rubycolor.org/arc/redist/">bindings for Ruby</a> and
libxml2 bindings are also available in Ruby through the <a href="http://libgdome-ruby.berlios.de/">libgdome-ruby</a> module libxml2 bindings are also available in Ruby through the <a href="http://libgdome-ruby.berlios.de/">libgdome-ruby</a> module
maintained by Tobias Peters.</li> maintained by Tobias Peters.</li>
<li>Steve Ball and contributors maintains <a href="http://tclxml.sourceforge.net/">libxml2 and libxslt bindings for <li>Steve Ball and contributors maintains <a href="http://tclxml.sourceforge.net/">libxml2 and libxslt bindings for
@ -47,7 +47,7 @@ build the bindings is python/generator.py in the source distribution.</p><p>To i
<li>Otherwise use the <a href="ftp://xmlsoft.org/python/">libxml2-python <li>Otherwise use the <a href="ftp://xmlsoft.org/python/">libxml2-python
module distribution</a> corresponding to your installed version of module distribution</a> corresponding to your installed version of
libxml2 and libxslt. Note that to install it you will need both libxml2 libxml2 and libxslt. Note that to install it you will need both libxml2
and libxslt installed and run &quot;python setup.py build install&quot; in the and libxslt installed and run "python setup.py build install" in the
module tree.</li> module tree.</li>
</ul><p>The distribution includes a set of examples and regression tests for the </ul><p>The distribution includes a set of examples and regression tests for the
python bindings in the <code>python/tests</code> directory. Here are some python bindings in the <code>python/tests</code> directory. Here are some
@ -55,17 +55,17 @@ excepts from those tests:</p><h3>basic.py:</h3><p>This is a basic test of XSLT i
document, transforming the document and saving the result.</p><pre>import libxml2 document, transforming the document and saving the result.</p><pre>import libxml2
import libxslt import libxslt
styledoc = libxml2.parseFile(&quot;test.xsl&quot;) styledoc = libxml2.parseFile("test.xsl")
style = libxslt.parseStylesheetDoc(styledoc) style = libxslt.parseStylesheetDoc(styledoc)
doc = libxml2.parseFile(&quot;test.xml&quot;) doc = libxml2.parseFile("test.xml")
result = style.applyStylesheet(doc, None) result = style.applyStylesheet(doc, None)
style.saveResultToFilename(&quot;foo&quot;, result, 0) style.saveResultToFilename("foo", result, 0)
style.freeStylesheet() style.freeStylesheet()
doc.freeDoc() doc.freeDoc()
result.freeDoc()</pre><p>The Python module is called libxslt, you will also need the libxml2 module result.freeDoc()</pre><p>The Python module is called libxslt, you will also need the libxml2 module
for the operations on XML trees. Let's have a look at the objects manipulated for the operations on XML trees. Let's have a look at the objects manipulated
in that example and how is the processing done:</p><ul><li><code>styledoc</code> : is a libxml2 document tree. It is obtained by in that example and how is the processing done:</p><ul><li><code>styledoc</code> : is a libxml2 document tree. It is obtained by
parsing the XML file &quot;test.xsl&quot; containing the stylesheet.</li> parsing the XML file "test.xsl" containing the stylesheet.</li>
<li><code>style</code> : this is a precompiled stylesheet ready to be used <li><code>style</code> : this is a precompiled stylesheet ready to be used
by the following transformations (note the plural form, multiple by the following transformations (note the plural form, multiple
transformations can resuse the same stylesheet).</li> transformations can resuse the same stylesheet).</li>
@ -78,7 +78,7 @@ in that example and how is the processing done:</p><ul><li><code>styledoc</code>
stylesheet to the document. Note that some of the stylesheet informations stylesheet to the document. Note that some of the stylesheet informations
may be related to the serialization of that document and as in this may be related to the serialization of that document and as in this
example a specific saveResultToFilename() method of the stylesheet should example a specific saveResultToFilename() method of the stylesheet should
be used to save it to a file (in that case to &quot;foo&quot;).</li> be used to save it to a file (in that case to "foo").</li>
</ul><p>Also note the need to explicitely deallocate documents with freeDoc() </ul><p>Also note the need to explicitely deallocate documents with freeDoc()
except for the stylesheet document which is freed when its compiled form is except for the stylesheet document which is freed when its compiled form is
garbage collected.</p><h3>extfunc.py:</h3><p>This one is a far more complex test. It shows how to modify the behaviour garbage collected.</p><h3>extfunc.py:</h3><p>This one is a far more complex test. It shows how to modify the behaviour
@ -104,9 +104,9 @@ def f(ctx, str):
return string.upper(str) return string.upper(str)
libxslt.registerExtModuleFunction(&quot;foo&quot;, &quot;http://example.com/foo&quot;, f)</pre><p>This code defines and register an extension function. Note that the libxslt.registerExtModuleFunction("foo", "http://example.com/foo", f)</pre><p>This code defines and register an extension function. Note that the
function can be bound to any name (foo) and how the binding is also function can be bound to any name (foo) and how the binding is also
associated to a namespace name &quot;http://example.com/foo&quot;. From an XSLT point associated to a namespace name "http://example.com/foo". From an XSLT point
of view the function just returns an upper case version of the string passed of view the function just returns an upper case version of the string passed
as a parameter. But the first part of the function also read some contextual as a parameter. But the first part of the function also read some contextual
information from the current XSLT processing environement, in that case it information from the current XSLT processing environement, in that case it
@ -117,7 +117,7 @@ objects check the <a href="internals.html">libray internals description</a>.
The pctxt is actually an object from a class derived from the The pctxt is actually an object from a class derived from the
libxml2.xpathParserContext() with just a couple more properties including the libxml2.xpathParserContext() with just a couple more properties including the
possibility to look up the XSLT transformation context from the XPath possibility to look up the XSLT transformation context from the XPath
context.</p><pre>styledoc = libxml2.parseDoc(&quot;&quot;&quot; context.</p><pre>styledoc = libxml2.parseDoc("""
&lt;xsl:stylesheet version='1.0' &lt;xsl:stylesheet version='1.0'
xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:xsl='http://www.w3.org/1999/XSL/Transform'
xmlns:foo='http://example.com/foo' xmlns:foo='http://example.com/foo'
@ -128,29 +128,29 @@ context.</p><pre>styledoc = libxml2.parseDoc(&quot;&quot;&quot;
&lt;article&gt;&lt;xsl:value-of select='foo:foo($bar)'/&gt;&lt;/article&gt; &lt;article&gt;&lt;xsl:value-of select='foo:foo($bar)'/&gt;&lt;/article&gt;
&lt;/xsl:template&gt; &lt;/xsl:template&gt;
&lt;/xsl:stylesheet&gt; &lt;/xsl:stylesheet&gt;
&quot;&quot;&quot;)</pre><p>Here is a simple example of how to read an XML document from a python """)</pre><p>Here is a simple example of how to read an XML document from a python
string with libxml2. Note how this stylesheet:</p><ul><li>Uses a global parameter <code>bar</code></li> string with libxml2. Note how this stylesheet:</p><ul><li>Uses a global parameter <code>bar</code></li>
<li>Reference the extension function f</li> <li>Reference the extension function f</li>
<li>how the Namespace name &quot;http://example.com/foo&quot; has to be bound to a <li>how the Namespace name "http://example.com/foo" has to be bound to a
prefix</li> prefix</li>
<li>how that prefix is excluded from the output</li> <li>how that prefix is excluded from the output</li>
<li>how the function is called from the select</li> <li>how the function is called from the select</li>
</ul><pre>style = libxslt.parseStylesheetDoc(styledoc) </ul><pre>style = libxslt.parseStylesheetDoc(styledoc)
doc = libxml2.parseDoc(&quot;&lt;doc/&gt;&quot;) doc = libxml2.parseDoc("&lt;doc/&gt;")
result = style.applyStylesheet(doc, { &quot;bar&quot;: &quot;'success'&quot; }) result = style.applyStylesheet(doc, { "bar": "'success'" })
style.freeStylesheet() style.freeStylesheet()
doc.freeDoc()</pre><p>that part is identical, to the basic example except that the doc.freeDoc()</pre><p>that part is identical, to the basic example except that the
transformation is passed a dictionnary of parameters. Note that the string transformation is passed a dictionnary of parameters. Note that the string
passed &quot;success&quot; had to be quoted, otherwise it is interpreted as an XPath passed "success" had to be quoted, otherwise it is interpreted as an XPath
query for the childs of root named &quot;success&quot;.</p><pre>root = result.children query for the childs of root named "success".</p><pre>root = result.children
if root.name != &quot;article&quot;: if root.name != "article":
print &quot;Unexpected root node name&quot; print "Unexpected root node name"
sys.exit(1) sys.exit(1)
if root.content != &quot;SUCCESS&quot;: if root.content != "SUCCESS":
print &quot;Unexpected root node content, extension function failed&quot; print "Unexpected root node content, extension function failed"
sys.exit(1) sys.exit(1)
if nodeName != 'article': if nodeName != 'article':
print &quot;The function callback failed to access its context&quot; print "The function callback failed to access its context"
sys.exit(1) sys.exit(1)
result.freeDoc()</pre><p>That part just verifies that the transformation worked, that the parameter result.freeDoc()</pre><p>That part just verifies that the transformation worked, that the parameter

View File

@ -193,7 +193,7 @@ xsltLoadDocument(xsltTransformContextPtr ctxt, const xmlChar *URI) {
} }
#ifdef XSLT_PARSE_OPTIONS #ifdef XSLT_PARSE_OPTIONS
doc = xmlReadFile((const char *) URI, NULL, XSLT_PARSE_OPTIONS); doc = xmlReadFile((const char *) URI, NULL, ctxt->parserOptions);
#else #else
doc = xmlParseFile((const char *) URI); doc = xmlParseFile((const char *) URI);
#endif #endif
@ -203,7 +203,7 @@ xsltLoadDocument(xsltTransformContextPtr ctxt, const xmlChar *URI) {
if (ctxt->xinclude != 0) { if (ctxt->xinclude != 0) {
#ifdef LIBXML_XINCLUDE_ENABLED #ifdef LIBXML_XINCLUDE_ENABLED
#if LIBXML_VERSION >= 20603 #if LIBXML_VERSION >= 20603
xmlXIncludeProcessFlags(doc, XSLT_PARSE_OPTIONS); xmlXIncludeProcessFlags(doc, ctxt->parserOptions);
#else #else
xmlXIncludeProcess(doc); xmlXIncludeProcess(doc);
#endif #endif

View File

@ -445,6 +445,7 @@ xsltNewTransformContext(xsltStylesheetPtr style, xmlDocPtr doc) {
cur->sec = xsltGetDefaultSecurityPrefs(); cur->sec = xsltGetDefaultSecurityPrefs();
cur->debugStatus = xslDebugStatus; cur->debugStatus = xslDebugStatus;
cur->traceCode = (unsigned long*) &xsltDefaultTrace; cur->traceCode = (unsigned long*) &xsltDefaultTrace;
cur->parserOptions = XSLT_PARSE_OPTIONS;
return(cur); return(cur);
} }

View File

@ -523,8 +523,10 @@ struct _xsltTransformContext {
/* /*
* Per Context Debugging * Per Context Debugging
*/ */
int debugStatus; /* the context level debug status */ int debugStatus; /* the context level debug status */
unsigned long* traceCode; /* pointer to the variable holding the mask */ unsigned long* traceCode; /* pointer to the variable holding the mask */
int parserOptions; /* parser options xmlParserOption */
}; };
/** /**

View File

@ -1029,6 +1029,34 @@ xsltSetCtxtSortFunc(xsltTransformContextPtr ctxt, xsltSortFunc handler) {
ctxt->sortfunc = handler; ctxt->sortfunc = handler;
} }
/************************************************************************
* *
* Parsing options *
* *
************************************************************************/
/**
* xsltSetCtxtParseOptions:
* @ctxt: a XSLT process context
* @options: a combination of libxml2 xmlParserOption
*
* Change the default parser option passed by the XSLT engine to the
* parser when using document() loading.
*
* Returns the previous options or -1 in case of error
*/
int
xsltSetCtxtParseOptions(xsltTransformContextPtr ctxt, int options)
{
int oldopts;
if (ctxt == NULL)
return(-1);
oldopts = ctxt->parserOptions;
ctxt->parserOptions = options;
return(oldopts);
}
/************************************************************************ /************************************************************************
* * * *
* Output * * Output *

View File

@ -161,6 +161,9 @@ XSLTPUBFUN void XSLTCALL
const char *msg, const char *msg,
...); ...);
XSLTPUBFUN int XSLTCALL
xsltSetCtxtParseOptions (xsltTransformContextPtr ctxt,
int options);
/* /*
* Sorting. * Sorting.
*/ */

View File

@ -138,6 +138,7 @@ Class transformCtxt()
printErrorContext() printErrorContext()
profileInformation() profileInformation()
saveProfiling() saveProfiling()
setCtxtParseOptions()
Class stylesheet() Class stylesheet()
# accessors # accessors
doc() doc()

View File

@ -184,6 +184,7 @@ xsltSaveResultToFilename
xsltSaveResultToString xsltSaveResultToString
xsltSecurityAllow xsltSecurityAllow
xsltSecurityForbid xsltSecurityForbid
xsltSetCtxtParseOptions
xsltSetCtxtSecurityPrefs xsltSetCtxtSecurityPrefs
xsltSetCtxtSortFunc xsltSetCtxtSortFunc
xsltSetDebuggerCallbacks xsltSetDebuggerCallbacks

View File

@ -414,6 +414,7 @@ xsltProcess(xmlDocPtr doc, xsltStylesheetPtr cur, const char *filename) {
ctxt = xsltNewTransformContext(cur, doc); ctxt = xsltNewTransformContext(cur, doc);
if (ctxt == NULL) if (ctxt == NULL)
return; return;
xsltSetCtxtParseOptions(ctxt, options);
if (profile) { if (profile) {
res = xsltApplyStylesheetUser(cur, doc, params, NULL, res = xsltApplyStylesheetUser(cur, doc, params, NULL,
stderr, ctxt); stderr, ctxt);
@ -749,6 +750,9 @@ main(int argc, char **argv)
xmlLoadExtDtdDefaultValue = 0; xmlLoadExtDtdDefaultValue = 0;
xmlSubstituteEntitiesDefault(1); xmlSubstituteEntitiesDefault(1);
xmlLineNumbersDefault(1); xmlLineNumbersDefault(1);
#else
if (novalid != 0)
options = XML_PARSE_NOENT | XML_PARSE_NOCDATA;
#endif #endif
/* /*