Subject: Re: [xsl] Brackets in XPATHS From: Oliver Becker <obecker@xxxxxxxxxxxxxxxxxxxxxxx> Date: Wed, 13 Feb 2002 10:11:01 +0100 (MET) |
> /xpath1/(xpath2|xpath3)/xpath4 > > I have two or more elements that are the same but that can apear in different places in the structure. > I tried the following form where > > xpath1 = tag1/tag2[@attrib1='fads']/tag3[@attrib2='ahf'] > xpath2 = tag4 > xpath3 = tag5[1][attrib3='gf' and tag6/@attrib4 ='flk'] > xpath4 = @attrib5 What about a step by step construction? <xsl:variable name="v1" select="/xpath1" /> <xsl:variable name="v2" select="$v1/xpath2 | $v1/xpath3" /> <xsl:variable name="v3" select="$v2/xpath4" /> Cheers, Oliver /-------------------------------------------------------------------\ | ob|do Dipl.Inf. Oliver Becker | | --+-- E-Mail: obecker@xxxxxxxxxxxxxxxxxxxxxxx | | op|qo WWW: http://www.informatik.hu-berlin.de/~obecker | \-------------------------------------------------------------------/ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Brackets in XPATHS, Christopher R. Maden | Thread | [xsl] match on attribute anywhere, Andrew Welch |
RE: [xsl] Brackets in XPATHS, Christopher R. Maden | Date | [xsl] test, Matts Isuls |
Month |