Subject: Re: [xsl] Table Row processing pattern From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Tue, 26 Oct 2004 07:41:22 -0400 |
I need to make sure an element actually exists in a document (sometimes it will sometimes it won't) before processing it as the row of a table (the table should only be there if the elements exist) otherwise I get XHTML / FO validation errors to do with empty table bodies.
Rather than stick markup around the apply-templates (and get the validation errors) or all kinds of conditional stuff in the template
<xsl:if test="qcr:ExemptionRow"> <table ...> ... <tbody> <xsl:apply-templates select="qcr:ExemptionRow"/> </tbody> </table> </xsl:if>
I presume (??) that an effective way of dealing with the problem is to nest the markup in the first match on the elements I want to make into table rows and then "reprocess" that row and all subsequent rows.
What I'm interested in is what could go wrong with this solution,
is it an appropriate XSL style
and what performance implications could it have?
-- World-wide on-site corporate, govt. & user group XML/XSL training. 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) Male Breast Cancer Awareness http://www.CraneSoftwrights.com/s/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Table Row processing pattern, Fraser Crichton | Thread | [xsl] RE: xsl history, Steve Whitlatch |
[xsl] Reshuffling elements, Morten Ryg | Date | Re: [xsl] Calling a different style, Wilde Rebecca L SSgt |
Month |