tomcat-taglibs-user mailing list archives

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


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"

With the following code snippet:

  <c:import url="${requestURL}" varReader="xmlSource">
   <x:parse var="doc" xml="${xmlSource}" scope="application" />
  <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 Kralidis
Systems Scientist
Environment Canada
Tel: +01-905-336-4409

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message