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">
                <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
exist.


                        <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.


David

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread