RE: How to match very first entry from multiple entry
Dear Ronan, Sorry for confuse because of I wrongly mentioned that 'Assume html table'. I am doing XML to XML only. I understand the below your code 'match="tbody/row/entry"' Thanks. Regards, Ramkumar Software - Digital Services Division, Macmillan India Ltd.- Chennai 600 018. -----Original Message----- From: Ronan Klyne [mailto:ronan.klyne@xxxxxxxxxxx] Sent: Monday, July 14, 2008 5:17 PM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Re: How to match very first entry from multiple entry V.Ramkumar wrote: > Hi, > > Assume html table, > > I like to match very first entry of table body not for all entry. > > The below my code matching for all but I need specifically very first > element. > > Ex: <xsl:template match="tbody/row/entry"><entry rowsep="1" > align="center"><xsl:apply-templates/></entry></xsl:template> That won't match a HTML table. HTML tables use <TR> for rows and <TD> for cells. I think what you want is match="tbody/tr/td", or match="tbody/row/entry", depending on what your input XML is. It would be much easier to help if you provided your full stylesheet, a small sample input XML file, and a corresponding sample of expected output... Ronan -- Ronan Klyne Business Collaborator Developer Tel: +44 01189 028518 ronan.klyne@xxxxxxxxxxx www.groupbc.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