tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pierre Delisle <Pierre.Deli...@Sun.COM>
Subject Re: XML processing with target namespace documents
Date Thu, 08 Jan 2004 20:56:58 GMT
That should tell you why this does not work.

http://marc.theaimsgroup.com/?l=taglibs-user&m=103723631220244&w=2

And no, the expert group did not come to a concensus on this
for JSTL 1.1 and this will have to be tackled in JSTL.next.

    -- Pierre



Kralidis,Tom [Burlington] wrote:

> 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
> 
> 



---------------------------------------------------------------------
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