xsl-list
[Top] [All Lists]

preceding axis and context switching (was re: configuring conditionals)

2005-05-25 01:02:25
Wendell wrote:

At 02:24 PM 5/24/2005, I wrote:
So if test="count(../db:citation = 1) and @linkend = preceding::db:citation[1]/@linkend", or something along those lines.

Of course you'll have to fix the typo. (I must be channeling DC. ;-)

Got it. But what if I need to use this is another template, where I again have to switch context to the $cite-ref parameter (as element())? Am not sure how to do that with the preceding axis bit.

Bruce


--~------------------------------------------------------------------
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>
--~--