Subject: [xsl] Type error? Too many items? From: Owen Blacker <owen@xxxxxxxxxxxxx> Date: Fri, 26 Jan 2007 13:56:19 +0000 (GMT) |
<xsl:call-template name="module-bodies"> <xsl:with-param name="current-position" select="foo:index-of-node(., ../*)"/> <xsl:with-param name="future-position" select="foo:index-of-node(following-sibling::h3, ../*)"/> </xsl:call-template>
<xsl:function name="foo:index-of-node" as="xs:integer*"> <xsl:param name="srch" as="node()"/> <xsl:param name="sequence" as="node()*"/>
<xsl:for-each select="$sequence"> <xsl:if test=". is $srch"> <xsl:sequence select="position()"/> </xsl:if> </xsl:for-each> </xsl:function>
<div> <h3> ... </h3> <p> ... </p> <p> ... </p>
<h3> ... </h3> <p> ... </p> <p> ... </p>
<!-- etc ---> </div>
-- Owen Blacker, London GB Say no to ID cards: www.no2id.net Get your mitts off my bits: www.openrightsgroup.org -- Those who would give up essential liberty to purchase a little temporary safety, deserve neither liberty nor safety -- Benjamin Franklin, 1759
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] [ANN] oXygen XML Editor 8.1, George Cristian Bina | Thread | Re: [xsl] Type error? Too many item, Joe Fawcett |
[xsl] [ANN] oXygen XML Editor 8.1, George Cristian Bina | Date | Re: [xsl] XHTML templating (best me, Jonas Lundberg |
Month |