Le 26/09/2018 à 02:18, Christophe JAILLET a écrit :
Le 05/05/2017 à 00:53, jchamp...@apache.org a écrit :
Author: jchampion
Date: Thu May  4 22:53:58 2017
New Revision: 1793922

URL: http://svn.apache.org/viewvc?rev=1793922&view=rev
Log:
Add an Override Class Index

This page pulls in directives that declare an <override> element and
groups them by class. The documentation for each class comes from
overrides.xml. Any undocumented classes are flagged with a boilerplate
fallback text (this situation is only likely to occur with a misspelling
or otherwise invalid <override> somewhere else in the documentation).

Added:
httpd/httpd/branches/trunk-override-index/docs/manual/mod/overrides.xml (with props) httpd/httpd/branches/trunk-override-index/docs/manual/style/xsl/overrideindex.xsl (with props)
Modified:
httpd/httpd/branches/trunk-override-index/docs/manual/index.xml
httpd/httpd/branches/trunk-override-index/docs/manual/mod/core.xml
httpd/httpd/branches/trunk-override-index/docs/manual/sitemap.xml
httpd/httpd/branches/trunk-override-index/docs/manual/style/css/manual.css
httpd/httpd/branches/trunk-override-index/docs/manual/style/modulesynopsis.dtd
httpd/httpd/branches/trunk-override-index/docs/manual/style/xsl/common.xsl


[...]

Added: httpd/httpd/branches/trunk-override-index/docs/manual/style/xsl/overrideindex.xsl URL: http://svn.apache.org/viewvc/httpd/httpd/branches/trunk-override-index/docs/manual/style/xsl/overrideindex.xsl?rev=1793922&view=auto ============================================================================== --- httpd/httpd/branches/trunk-override-index/docs/manual/style/xsl/overrideindex.xsl (added) +++ httpd/httpd/branches/trunk-override-index/docs/manual/style/xsl/overrideindex.xsl Thu May  4 22:53:58 2017

[...]

+
+<!--
+    Returns the set of distinct Override classes reported by the passed set of
+    directives.
+-->
+<func:function name="httpd:override-classes">
+    <xsl:param name="directives" />
+
+    <xsl:variable name="overrideValues">
+        <xsl:for-each select="$directives/override">
+            <xsl:for-each select="str:split(., ',')">
+                <value><xsl:value-of select="normalize-space(.)" /></value>
+            </xsl:for-each>
+        </xsl:for-each>
+    </xsl:variable>
+
+    <func:result select="set:distinct(exslt:node-set($overrideValues)/*)" />
+</func:function>
+
+</xsl:stylesheet>



Shouldn't this be <xsl:function ...> instead of <func:function ...> ?

Saxon complains about it, but apparently Xalan is just fine with it.
Does it work as expected with the current doc build framework?

CJ

Well, after some tests, Xalan needs <fun:function, but Saxon needs <xsl:function !


---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscr...@httpd.apache.org
For additional commands, e-mail: docs-h...@httpd.apache.org

Reply via email to