[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qexo-general] Namespace rewriting and acces to namespace in consumer
From: |
jvinel |
Subject: |
[Qexo-general] Namespace rewriting and acces to namespace in consumer |
Date: |
Tue, 7 Jan 2003 10:42:21 +0100 (CET) |
Hello,
I have two problems with the namespace in qexo.
First, I work with documents who have different prefix for the same
namespace.
For example doc1.xml :
<City xmlns:geo="http://www.opengis.net/gml">
<Road>
<geo:name>M11</geo:name>
</Road>
</City>
and doc2.xml :
<City xmlns:gml="http://www.opengis.net/gml">
<River>
<gml:description>The river that runs through
Cambridge.</gml:description>
<gml:name>Cam</gml:name>
</River>
</City>
With a xquery request like that :
declare namespace gml = http://www.opengis.net/gml
declare namespace xmlns = http://www.w3.org/XML/1998/namespace
<City xmlns:gml=http://www.opengis.net/gml>
{for $x in document("city1.xml")//Road return $x//gml:name,
for $y in document("city2.xml")//River return $y//gml:name }
</City>
and the result is :
<City xmlns:gml="http://www.opengis.net/gml">
<geo:name>M11</geo:name>
<gml:name>Cam</gml:name>
</City>
The prefix geo is not valid in the result ... Is it possible to rewrite it
into gml ?
Second, How can i have access to the prefix value in a Consumer ? Do i
have to extends the NamespaceResolver class ?
Thanks for all and happy new year,
Julien
- [Qexo-general] Namespace rewriting and acces to namespace in consumer,
jvinel <=