|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: numbering empty entities
> > <xsl:template match="TABLE1/*[1]"> > <xsl:element name="TABLE1_LNR"> > <xsl:number count="TABLE1" level="single"/> > </xsl:element> > <xsl:copy> > <xsl:apply-templates select="node()"/> > </xsl:copy> > </xsl:template> > </xsl:stylesheet> > > The stylesheet doesn't add the number to the empty entity. The reason > is, that the pattern "TABLE1/*[1]" doesn't match. But how can > I resolve the task? Just do: <xsl:template match="TABLE1"> <TABLE1> <TABLE1_LNR><xsl:number/></TABLE1_LNR> <xsl:apply-templates/> </TABLE1> </xsl:template> Mike Kay Software AG XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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








