This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Parsing & Paths
- To: XSL-List at lists dot mulberrytech dot com
- Subject: [xsl] Parsing & Paths
- From: Kris Kolodziej <kkolodziej at syncline dot com>
- Date: Fri, 19 Oct 2001 16:00:50 -0400
- Organization: Syncline, Inc.
- Reply-To: xsl-list at lists dot mulberrytech dot com
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