Subject: Re: [xsl] preceding axis and context switching (was re: configuring conditionals) From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Wed, 25 May 2005 11:39:43 -0400 |
count($citation/../db:citation) = 1 and $citation/@linkend = $citation/preceding::db:citation[1]/@linkend
Cheers, Wendell
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
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] preceding axis and context sw, Bruce D'Arcus | Thread | Re: [xsl] preceding axis and contex, Bruce D'Arcus |
RE: [xsl] output to two files with , Michael Kay | Date | RE: [xsl] Saxon -> UnknownHostExcep, Michael Kay |
Month |