Subject: RE: [xsl] Avoiding multiple "apply-templates" by creating one variable for the clauses. Is it possible? From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Thu, 20 Aug 2009 12:41:06 -0400 |
Brilliant! That's exactly what I'm looking for.
I've popped some line breaks in to make it easier for the next developer, tested it and am really happy with it:
<xsl:apply-templates select="//blog [not($AuthorId) or (author_id = $AuthorId)] [not($CategoryId) or (category_id = $CategoryId)] "/>
<xsl:apply-templates select="//blog [not($AuthorId != author_id)] [not($CategoryId != $CategoryId)] "/>
-- Interested in these classes? http://www.CraneSoftwrights.com/s/i/ Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video Video lesson: http://www.youtube.com/watch?v=PrNjJCh7Ppg&fmt=18 Video overview: http://www.youtube.com/watch?v=VTiodiij6gE&fmt=18 G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Male Cancer Awareness Nov'07 http://www.CraneSoftwrights.com/s/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Avoiding multiple "apply-, Kate Busch-Petersen | Thread | RE: [xsl] Avoiding multiple "apply-, Michael Kay |
RE: [xsl] Avoiding multiple "apply-, Kate Busch-Petersen | Date | RE: [xsl] Avoiding multiple "apply-, G. Ken Holman |
Month |