Subject: RE: [xsl] Filtering Problem using position() From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Fri, 08 Nov 2002 12:55:09 -0500 |
I still need to copy those rows that don't need to have the odd/even row styles applied to them.
Do I need to set up a separate template rule for the filtered out nodes?
T:\ftemp>type rechell.xml <?xml version="1.0" encoding="iso-8859-1"?> <test> <table> Nothing here </table> <table> <tr><td><a></a></td></tr> <tr><td>good</td></tr> <tr><td><a></a></td></tr> <tr><td>good</td></tr> <tr><td>good</td></tr> <tr><td><a></a></td></tr> <tr><td>good</td></tr> </table> <table> Nothing here as well </table> </test>
T:\ftemp>type rechell.xsl <?xml version="1.0" encoding="iso-8859-1"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output method="html" indent="yes"/>
<xsl:template match="node()|@*"> <!--identity transform--> <xsl:copy> <xsl:apply-templates select="node()|@*"/> </xsl:copy> </xsl:template>
T:\ftemp>saxon rechell.xml rechell.xsl <test>
<table> Nothing here
<tr> <td><a></a></td> </tr>
<tr> <td class="oddRowStyle">good</td> </tr>
<tr> <td><a></a></td> </tr>
<tr> <td class="evenRowStyle">good</td> </tr>
<tr> <td class="oddRowStyle">good</td> </tr>
<tr> <td><a></a></td> </tr>
<tr> <td class="evenRowStyle">good</td> </tr>
<table> Nothing here as well
</test> T:\ftemp>rem Done!
-- Upcoming hands-on in-depth XSLT/XPath and/or XSL-FO: - North America: Feb 3 - Feb 7,2003
G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995) ISBN 0-13-065196-6 Definitive XSLT and XPath ISBN 0-13-140374-5 Definitive XSL-FO ISBN 1-894049-08-X Practical Transformation Using XSLT and XPath ISBN 1-894049-10-1 Practical Formatting Using XSL-FO Next conference training: 2002-12-08,03-03,06
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Filtering Problem using p, Schwartz, Rechell R, | Thread | RE: [xsl] Filtering Problem using p, Schwartz, Rechell R, |
RE: [xsl] Any recommended XSLT book, G. Ken Holman | Date | Re: [xsl] MSXML / NBSP problem and , Greg Faron |
Month |