|
Subject: [xsl] finding the first element of a specific type From: Jon Steeves <Jon_Steeves@xxxxxxxxxxxxxx> Date: Mon, 26 May 2003 11:35:28 -0700 |
Hello:
Here's my code:
<xsl:variable name="printable_register1" select="//register
[@status ='direct' or @status='reserve'][1]"/>
<xsl:template match="register">
<xsl:choose>
<xsl:when test="generate-id(self::*)=generate-id($printable_register1)">
... do stuff
I want to find the first register that has either "direct" or "reserve" status so that there will be no page break printed when that and only that one is output. But it ain't working. Can anyone help me.
Cheers
Jon Steeves
-----Original Message-----
From: gutman@xxxxxxxxxxxxxxxx [mailto:gutman@xxxxxxxxxxxxxxxx]
Sent: Friday, May 23, 2003 9:16 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [xsl] Axis order and variables
Hello.
> <xsl:variable name="x" select="ancestor::x"/>
> <xsl:value-of select="$x[1]/@n"/>
Thanks for the comments, friends!
Michael Kay's quote of Section 3.3
makes the situation absolutely clear.
I have sent a bug report to Microsoft.
--
Alexander E. Gutman
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] taking a literal or a att, Wendell Piez | Thread | Re: [xsl] finding the first element, J.Pietschmann |
| Re: [xsl] taking a literal or a att, Wendell Piez | Date | Re: [xsl] finding the first element, J.Pietschmann |
| Month |