tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kralidis,Tom [Burlington]" <Tom.Krali...@ec.gc.ca>
Subject XML processing with target namespace documents
Date Thu, 08 Jan 2004 13:35:24 GMT

Hi,

We've been using JSTL 1.0, with success, to process some web services within
our software.

When processing an XML document which has a target namespace, i.e.:

<MyOutput version="1.0.0" xmlns="http://localhost/myoutput"
xmlns:gml="http://www.opengis.net/gml"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://localhost/myoutput
http://localhost/watershed.xsd">
....

With the following code snippet:

...
  <c:import url="${requestURL}" varReader="xmlSource">
   <x:parse var="doc" xml="${xmlSource}" scope="application" />
  </c:import>
  <x:out select="$doc/MyOutput/@version"/>

....

No value is returned on x:out.  If the XML document has no target namespace,
all works as expected.

Any suggestions here?  We are starting to deal with alot of XML which is
designed in this fashion.  We also run into the same issue for XML document
with elements which have namespaces, i.e. <gml:name>tom</gml:name>.

Thanks much

..Tom

=========================
Tom Kralidis
Systems Scientist
Environment Canada
Tel: +01-905-336-4409
http://www.ec.gc.ca/cise/
========================= 

---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org


Mime
View raw message