xsl-list
[Top] [All Lists]

An XSL question

2005-04-20 08:30:19
Hi,

I have original xml data is:
<?xml version='1.0' encoding="ISO-8859-1" ?>
<wfs:FeatureCollection xmlns:gc="http://localhost/wfsschema/gc"; xmlns:wfs="http://www.opengis.net/wfs"; xmlns:gml="http://www.opengis.net/gml";

   <gml:featureMember>
     <gc:ngs>
       <gml:boundedBy>
        <gml:Box srsName="epsg:4326">
        </gml:Box>
       </gml:boundedBy>
     </gc:ngs>
   </gml:featureMember>
</wfs:FeatureCollection>

I have an xsl as:
<xsl:template match="/">
 <Points>
    <xsl:for-each select="wfs:FeatureCollection/gml:featureMember">
       <Point>
          <gml:boundedBy>
             <xsl:attribute name="srsName">
<xsl:value-of select="gc:ngs/gml:boundedBy/gml:Box/@srsName"/>
             </xsl:attribute>
         </gml:boundedBy>
       </Point>
   </xsl:for-each>
 </Points>
</xsl:template>

However, I cannot get the value of "srsName" in the transformed file. Can anybody help me? It's a strange problem for me. I'm using XML::LibXSLT for the transformation, which has this problem. However, the xsl works perfect when I use XML::XSLT. I wonder if there is an error in my xsl file or the XML::LibXSLT?

Thank you very much!

N. Zhou



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>