[Top] [All Lists]

RE: [xsl] Creating List with xsl:function

2006-11-17 18:16:44
Thank you for the help. Here is what I have so far:

        <xsl:function name="ACM:list-format" as="xs:string">
                <xsl:param name="node" as="node()"/>
                <xsl:sequence select="('1', 'a', 'i', 'A', 'I')
count($node/ancestor::ACM:Para) mod 5 + 1] "/>
        <xsl:template match="ACM:list">
                <xsl:for-each select="ACM:Para">
                        <ol class="enum{$ACM:list-format(.)}">
                                <xsl:apply-templates select="."/>

Now I am getting the following error message:

Invalid XPath 2.0 expression Unexpected token - "(.)"

Any ideas?



XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>