whitespace handling with exist

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

whitespace handling with exist

Peter Hinkelmanns

Dear all,

 

I'd like to aks a question regarding white-space-handling in exist-db and xquery.

 

Consider the following xquery script executed with exide (exist 2.2)

<pre>

let $test :=

<test>

                <a/>

                <b/>

</test>

for $node in $test/node()

return <node>{$node}</node>

</pre>

 

And it's output:

<pre>

                <node>

                               <a/>

                </node>

                <node>

                               <b/>

                </node>

</pre>

 

And compare it to the following script with an input xml-file:

 

<pre>

<test>

<a/>

<b/>

</test>

</pre>

 

<pre>

let $start := test

for $node in $start/node()

return <node>{$node}</node>

</pre>

 

and executed in oxygen (xquery 3.0):

 

<pre>

                               <node>

                  </node>

                <node>

                   <a/>

                </node>

                <node>

                  </node>

                <node>

                   <b/>

                </node>

                <node>

                </node>

</pre>

 

Here, the blank text-nods are processed. Is it possible to handle blank textnodes like this with existdb?

 

Many thanks in advance,

Peter

 

 


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open