Re: [xsl] XPath weirdness!!

Subject: Re: [xsl] XPath weirdness!!
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 26 Jul 2001 08:45:14 +0100
         <xsl:for-each select="//Point">
                <xsl:attribute name="x">
                        <xsl:value-of select="//@x"/>  <!--
THIS GIVES ME THE "X" values -->

No, it doesnt. It gives you the first x attribute in the document
ie the same value for every Point.

  <xsl:value-of select="/@y"/>   <!-- HER
That would give you the y attribute of the rot node, which can never

                        <xsl:value-of select="/@y"/>   <!-- HERE IF I USE
"//@y" I GET THE "

&x#3c" ERROR -->
Then your parser is broken. Reprort a bug to teh maker, not here.


This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit or alternatively call
Star Internet for details on the Virus Scanning Service.

 XSL-List info and archive:

Current Thread