cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Miles Elam <mi...@pcextremist.com>
Subject Re: Simple question...
Date Sat, 03 May 2003 17:55:40 GMT
João César wrote:

>Can we do this?
>
><xsl:variable name="aux"><xsl:value-of select="."/></xsl:variable>
><nome><xsl:value-of
>select="experts/artigos/DocSum[Id='$aux']/Item[@Name='Authors']"/></nome>
>

Is "Id" an attribute or a tag?  If it's an attribute, you need "@Id" 
instead.  It looks like it would work otherwise.  Have you tried using 
the XPath with a static value to check validity?

eg. experts/artigos/DocSum[Id='5']/Item[@Name='Authors']

Does that work?

- Miles Elam



---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


Mime
View raw message