Subject: RE: [xsl] FW: Alpha list(label) generarion in XSL From: "Michael Kay" <mike@xxxxxxxxxxxx> Date: Tue, 8 Jul 2008 08:13:34 +0100 |
<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: [xsl] 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.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] FW: Alpha list(label) gen, V.Ramkumar | Thread | [xsl] XSLFO - create a special firs, Sarkup Sarkup |
RE: [xsl] FW: Alpha list(label) gen, Pankaj Chaturvedi | Date | RE: [xsl] Copy results, Michael Kay |
Month |