Hi,
How to match all entries except first entry in XML table.
For u r unders: <xsl:template match="not(thead/row[1]/entry[1])"> (It
through syntax error)
Regards,
Ramkumar
-----Original Message-----
From: V.Ramkumar [mailto:V(_dot_)Ramkumar(_at_)macmillansolutions(_dot_)com]
Sent: Monday, July 14, 2008 5:35 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: [xsl] How to match very first entry from multiple entry
Dear Ronan,
I am doing XML to XML only. I understand the below your code
'match="tbody/row/entry[1]"'
Thanks.
Regards,
Ramkumar
Software - Digital Services Division,
Macmillan India Ltd.- Chennai 600 018.
-----Original Message-----
From: Ronan Klyne [mailto:ronan(_dot_)klyne(_at_)groupbc(_dot_)com]
Sent: Monday, July 14, 2008 5:17 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] 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(_dot_)klyne(_at_)groupbc(_dot_)com
www.groupbc.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>
--~--
--~------------------------------------------------------------------
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>
--~--