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

Re: An XSL question

Subject: Re: An XSL question
From: Brian Chrisman <incubus@xxxxxxxxxxxxxx>
Date: Wed, 20 Apr 2005 11:48:41 -0700
gml featuremember
On Wed, Apr 20, 2005 at 10:54:53AM -0500, JBryant@xxxxxxxxx wrote:
> When I run your XML and XSL with Xalan-J 2.4.1 and Saxon 8.4b, I get the 
> result you want, so the problem seems to be with libXSLT.

Tried it under xsltproc (libxslt), xalan, and sablotron... (performance
testing scripts laying around)... all gave the same results.. including 
the srsName attribute as epsg:4326 Probably a problem with accessing the 
output?

-Brian

> 
> Jay Bryant
> Bryant Communication Services
> (presently consulting at Synergistic Solution Technologies)
> 
> 
> 
> 
> "N Zhou" <zhou_naijun@xxxxxxxxxxx> 
> 04/20/2005 10:30 AM
> Please respond to
> xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> 
> 
> To
> xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> cc
> 
> Subject
>  An XSL question
> 
> 
> 
> 
> 
> 
> 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

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.