|
Subject: RE: [xsl] Creating List with xsl:function From: "Philip Vallone" <philip.vallone@xxxxxxxxxxx> Date: Fri, 17 Nov 2006 20:15:42 -0500 |
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:function>
<xsl:template match="ACM:list">
<xsl:for-each select="ACM:Para">
<ol class="enum{$ACM:list-format(.)}">
<xsl:apply-templates select="."/>
</ol>
</xsl:for-each>
</xsl:template>
Now I am getting the following error message:
Invalid XPath 2.0 expression Unexpected token - "(.)"
Any ideas?
Thanks,
Phil
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] Creating List with xsl:fu, Colin Paul Adams | Thread | RE: [xsl] Creating List with xsl:fu, Michael Kay |
| RE: [xsl] XSLT override an existing, Michael Kay | Date | RE: [xsl] Creating List with xsl:fu, Michael Kay |
| Month |