[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: FW: Alpha list(label) generarion in XSL
<xsl:template match="orderedlist[@numeration='lc-alpha']/item"> <item> <label><xsl:number format="a"/></label> <xsl:copy-of select="para"/> </item> </xsl:template> Michael Kay http://www.saxonica.com/ > -----Original Message----- > From: V.Ramkumar [mailto:V.Ramkumar@xxxxxxxxxxxxxxxxxxxxxx] > Sent: 08 July 2008 07:10 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: FW: Alpha list(label) generarion in XSL > > > Hi, > > I am doing XSL (2.0) Transform for One XML 2 Another using > saxon9. I have trouble to generate an alphabet list in XSL. > > Input XML: > > <orderedlist numeration="lc-alpha"> > <item><para>Explain the concept of I.</para></item> > <item><para>Explain the concept of II.</para></item> > <item><para>Explain the concept of II.</para></item> </orderedlist> > > Required Output XML: > > <page.list> > <item><label>a</label><para>Explain the concept of > I.</para></item> <item><label>b</label><para>Explain the > concept of II.</para></item> > <item><label>c</label><para>Explain the concept of > II.</para></item> </page.list> > > I want the xsl for the above. Please help. > > Regards, > Ramkumar.
|
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
|