|
Subject: [xsl] xpath expression From: Alex Black <enigma@xxxxxxxxxxxxxxxx> Date: Thu, 17 May 2001 17:01:19 -0700 |
"if I'm not last, and the next input/type isn't select"
i.e.
<input>
<type>whatever</type>
</input>
<input>
<type>text</type> <-- I'm here
</input>
<input>
<type>select</type> <-- I need to know what the value of this element is
</input>
<input>
<type>something</type>
</input>
------
xsl:
<xsl:if test="not(position()=last()) and
not(input[position()+1]/type = 'select')">
<br />
</xsl:if>
I _think_ the above expression doesn't work because the 'pointer' is at
<input>
<type>text</type> <-- here
</input>
but I can't figure out a way to "go up" on level. there has to be a way :)
I tried this:
<xsl:if test="not(position()=last()) and
not(parent[position()+1]/type = 'select')">
with the exact same result as the above.
but I'm getting there!
_alex
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] setting attributes based , Alex Black | Thread | Re: [xsl] xpath expression, Jeni Tennison |
| [xsl] a very unusual namespace ques, David Jeschke | Date | Re: [xsl] a very unusual namespace , Steve Tinney |
| Month |