[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: How to match very first entry from multiple entry

Subject: Re: How to match very first entry from multiple entry
From: Ronan Klyne <ronan.klyne@xxxxxxxxxxx>
Date: Mon, 14 Jul 2008 12:46:46 +0100
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[1]", or match="tbody/row/entry[1]", 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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.