Hi all,
I'm tryin to format the info of a personal xsl with featurelist widget.
the problem is that any direct reference to my layer causes an exception.
uncaught exception: [Exception... "Component returned failure code:
0x80600001 [nsIXSLTProcessor.importStylesheet]" nsresult: "0x80600001
(<unknown>)" location: "JS frame ::
http://localhost:8080/mapbuilder/lib/util/Util.js :: XslProcessor
this is my XML:
<wfs:FeatureCollection xsi:schemaLocation="http://www.openplans.org/topp
http://localhost:8080/geoserver/wfs/DescribeFeatureType?typeName=topp:tasmania_cities,topp:tasmania_roads
http://www.opengis.net/wfs
http://localhost:8080/geoserver/schemas/wfs/1.0.0/WFS-basic.xsd">
<gml:boundedBy>
<gml:Box srsName="http://www.opengis.net/gml/srs/epsg.xml#4326">
<gml:coordinates decimal="." cs="," ts=" ">145.19754,-43.423512
148.27298,-40.852802</gml:coordinates>
</gml:Box>
</gml:boundedBy>
<gml:featureMember>
<topp:tasmania_cities fid="tasmania_cities.1">
<topp:the_geom>
<gml:MultiPoint srsName="http://www.opengis.net/gml/srs/epsg.xml#4326
">
<gml:pointMember>
<gml:Point>
<gml:coordinates decimal="." cs="," ts=" ">147.29100045,-
42.85100182</gml:coordinates>
</gml:Point>
</gml:pointMember>
</gml:MultiPoint>
</topp:the_geom>
<topp:CITY_NAME>Hobart</topp:CITY_NAME>
<topp:ADMIN_NAME>Tasmania</topp:ADMIN_NAME>
<topp:CNTRY_NAME>Australia</topp:CNTRY_NAME>
<topp:STATUS>Provincial capital</topp:STATUS>
<topp:POP_CLASS>100,000 to 250,000</topp:POP_CLASS>
</topp:tasmania_cities>
</gml:featureMember>
<wfs:FeatureCollection>
and this is my XSL:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsd="
http://www.w3.org/2001/XMLSchema" xmlns:gml="http://www.opengis.net/gml"
version="1.0">
<!--
Description: Convert a GML Feature or FeatureCollection into a HTML form.
Author: Cameron Shorter cameron ATshorter.net
Licence: LGPL as per: http://www.gnu.org/copyleft/lesser.html
$Id: FeatureList.xsl 1717 2005-10-09 10:55:55Z camerons $
$Name$
-->
<xsl:output method="xml" encoding="utf-8"/>
<!-- Main html -->
<xsl:template match="/">
<div>
<h3>Feature List</h3>
<xsl:apply-templates/>
</div>
</xsl:template>
<!-- don't print boundedBy -->
<xsl:template match="gml:boundedBy"/>
<!-- featureMember -->
<xsl:template match="gml:featureMember">
<div>
<table border="1" cellpadding="0" cellspacing="0">
<xsl:apply-templates match="topp:TASMANIA_CITIES"/>
</table>
<br/>
</div>
</xsl:template>
<xsl:template match="topp:TASMANIA_CITIES">
<tr>
<td>
<xsl:apply-templates match="topp:CNTRY_NAME"/>
</table>
<br/>
</div>
</xsl:template>
<xsl:template match="topp:CNTRY_NAME">
MY COUNTRY: <xsl:value-of select="."/> <xsl:apply-templates
match="topp:CITY_NAME"/>
</xsl:template>
<xsl:template match="topp:CITY_NAME">
MY CITY: <xsl:value-of select="topp:CITY_NAME"/>
<xsl:apply-templates match="topp:CITY_NAME"/>
</xsl:template>
</xsl:stylesheet>
Thank you in advance.
Regards,
paddy
-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Mapbuilder-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mapbuilder-users