[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: XPath weirdness!!

Subject: RE: XPath weirdness!!
From: "Clapham, Paul" <pclapham@xxxxxxxxxxxxx>
Date: Wed, 25 Jul 2001 11:39:56 -0700
RE:  XPath weirdness!!
As I recall, the error was about your XML document and not about your XSL,
wasn't it?  Show us the document.

PC2

-----Original Message-----
From: Kris Kolodziej [mailto:kkolodziej@xxxxxxxxxxxx]
Sent: July 25, 2001 10:14
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject:  XPath weirdness!!


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">
   <MULTIPOINT>
          <xsl:for-each select="//Point">
                <POINT>
                <xsl:attribute name="x">
                        <xsl:value-of select="//@x"/>
                </xsl:attribute>
                <xsl:attribute name="y">
                        <xsl:value-of select="/@y"/>
                </xsl:attribute>
               </POINT>
        </xsl:for-each>
    </MULTIPOINT>


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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.