[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Processing IDREFS attributes


Subject: Re: [xsl] Processing IDREFS attributes
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 1 Nov 2005 22:19:27 GMT

   <xsl:for-each select="id(@references)">
   	<xsl:value-of select="."/>
   </xsl:for-each>

   But it doesn't work. What I get is the content of @references with the above.

Are you sure that your output is generated by this part of your code?
I don't see how you can possibly get the content of references.
Eiether id() succeeds in finding the referenced elements, in which case
you for-each over them, or it doesn't in which case it returns the empty
node set so you for-each over nothing and never evaluate the value-of
at all.

You know the score by now, complete runnable small example required:-)


David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________


Current Thread