|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Set difference in xsl:number/@count, xsl:key/@matc
> I sort > of want to say > <xsl:number count="*[contains(@class, ' figure ')] > except *[contains(@class, ' flowchart ')]"/> > only set difference doesn't work in xsl:number/@count, even > in XSLT 2.0. > Besides, the base processing can't necessarily know about > flowcharts, circuitdiagrams, familytrees, or however many > specializations of "figure" > I've included. Each specialization has to have its own > processing XSLT. I think I would use <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> Michael Kay http://www.saxonica.com/
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








