[xsl] XPath weirdness!!

Subject: [xsl] XPath weirdness!!
From: Kris Kolodziej <kkolodziej@xxxxxxxxxxxx>
Date: Wed, 25 Jul 2001 13:13:56 -0400
This is related to my previous problem with the "&x#3c." So I figured
out that I was doing something wrong with the XPath locations...However,
now I am experiencing some weird things with XPath. Take the following
example for instance:

This works but it only give me the "x" value (and I sure do want to get
both x AND y).
Notice that for "y" I only have "/@y". This is because when I do the
same thing as I did for "x" (meaning writing   "<xsl:value-of
select="//@y"/>" )  I get the "&x#3c" error!!! WHY??!

 <xsl:when test="//SpatialQuery/Buffer">
          <xsl:for-each select="//Point">
                <xsl:attribute name="x">
                        <xsl:value-of select="//@x"/>
                <xsl:attribute name="y">
                        <xsl:value-of select="/@y"/>

It also works when I do the vice versa of what I have ("/@x" and "//@y")
but I can't have it written the same way.

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

Current Thread