Thanks Andrew, that looks exactly like what I'm looking for, but I get a big
ole error:
Expected token ')', found ','.
//blog[author_id = ($AuthorId -->,<-- author_id)[1]][category_id = ($...
Any ideas?
I'm not sure what ($AuthorId, author_id) is meant to do?
K
-----Original Message-----
From: Andrew Welch [mailto:andrew(_dot_)j(_dot_)welch(_at_)gmail(_dot_)com]
Sent: 20 August 2009 11:47
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] Avoiding multiple "apply-templates" by creating one variable
for the clauses. Is it possible?
How about:
<xsl:apply-templates select="//blog[author_id = ($AuthorId,
author_id)[1]][category_id = ($CategoryId, category_id)[1]]"/>
...although there might be a nicer way. Even so, sometimes its better
to have more readable code spread over a few lines than one that takes
you a few goes to understand what it's doing :)
--~------------------------------------------------------------------
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>
--~--