xsl-list
[Top] [All Lists]

RE: [xsl] FW: Alpha list(label) generarion in XSL

2008-07-08 00:14:02

<xsl:template match="orderedlist[(_at_)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(_dot_)Ramkumar(_at_)macmillansolutions(_dot_)com] 
Sent: 08 July 2008 07:10
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
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.



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>