|
Subject: [xsl] Parsing & Paths From: Kris Kolodziej <kkolodziej@xxxxxxxxxxxx> Date: Fri, 19 Oct 2001 16:00:50 -0400 |
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 |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] Adding DOCTYPE to xml out, Terje Norderhaug | Thread | Re: [xsl] Parsing & Paths, Jörg Heinicke |
| [xsl] Adding DOCTYPE to xml output?, Duffey, Kevin | Date | [xsl] Writing to file vs. storing i, mjyoungblut |
| Month |