Subject: RE: [xsl] Set difference in xsl:number/@count, xsl:key/@match From: "Deborah Pickett" <debbiep-list-xsl@xxxxxxxxxx> Date: Thu, 22 Mar 2007 10:24:41 +1100 (EST) |
> <xsl:number count="*[my:is-class-figure(.)]"/> > where the function my:class-figure is defined in the base stylesheet as > <xsl:function name="my:is-class-figure"> > <xsl:param name="node" as="element()"/> > <xsl:sequence select="contains($node/@class, ' figure ')"/> > </xsl:function> > and is redefined in your customization layer as: > <xsl:function name="my:is-class-figure"> > <xsl:param name="node" as="element()"/> > <xsl:sequence select="contains($node/@class, ' figure ') and > not(contains(@class, ' flowchart '))"/> > </xsl:function> Thanks, that's just the kind of trapdoor to escape from pattern to XSLT that I would never have thought of. I'll need a mild tweak to it to deal with the fact that there might be a conflict between two or more customization layers since each can define its own is-class-figure(), but that's just a Simple Matter of Programming. I'll suggest it to the toolkit team when it drops support for XSLT 1.0.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Set difference in xsl:num, Michael Kay | Thread | [xsl] Transforming a Loose Structur, Jeff Sese |
RE: [xsl] Set difference in xsl:num, Michael Kay | Date | Re: [xsl] From WordprocessingML inl, David Carlisle |
Month |