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

Parsing & Paths

Subject: Parsing & Paths
From: Kris Kolodziej <kkolodziej@xxxxxxxxxxxx>
Date: Fri, 19 Oct 2001 16:00:50 -0400
gml parse
Hi list,

can you help me figure out how to parse the following by using the
correct paths?     Thanks!

<!-- My XML -->
      <BoundingBox srsName="http://www.X.net/gml/srs/epsg.xml#4326">
        <gml:coord><gml:X>-180.0</gml:X><gml:Y>-90.0</gml:Y></gml:coord>

        <gml:coord><gml:X>180.0</gml:X><gml:Y>90.0</gml:Y></gml:coord>
      </BoundingBox>


<! --------into:  ------------->
First, I want to get the '4326' value.
     <FILTERCOORDSYS>
      <xsl:attribute name="id">
         <xsl:value-of select="substring-after(/BoundingBox/, '#')" />
<!-- IS THIS RIGHT??? -->
      </xsl:attribute>
     </FILTERCOORDSYS>

Second, I want to get the X and Y values:

<ENVELOPE>
 <xsl:attribute name="minx">
    <xsl:value-of select=    <!-- ??????? from the first
<gml:coord><gml:X>   -->
 </xsl:attribute>
 <xsl:attribute name="miny">
    <xsl:value-of select=    <!-- ??????? from the first
<gml:coord><gml:Y>   -->
 </xsl:attribute>
 <xsl:attribute name="maxx">
   <xsl:value-of select=    <!-- ??????? from the second
<gml:coord><gml:X>   -->
 </xsl:attribute>
 <xsl:attribute name="maxy">
   <xsl:value-of select=    <!-- ??????? from the second
<gml:coord><gml:Y>   -->
 </xsl:attribute>
</ENVELOPE>


 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.