querying comment nodes

View: New views
3 Messages — Rating Filter:   Alert me  

querying comment nodes

by ron.vandenbranden :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

For the debugging of a couple of complex stylesheets, I make use of
comments that are inserted in the output XML documents. Since my
testbase generates quite a lot of output, it would be nice to query them
using eXist. However, I noticed that full-text searching on comment
nodes doesn't produce any results.

If I have following test document (in, say, '/db/test/test.xml'):
<test>
  <!-- first comment -->
  <element><subelement>text</subelement></element>
  <!-- second comment -->
  <element><subelement>text</subelement></element>
</test>

I notice following behaviour:
    -doc('/db/test/test.xml')//comment(): returns all comments [OK]
    -doc('/db/test/test.xml')//comment()[matches(., '.*')]: returns all
comments [OK]
    -doc('/db/test/test.xml')//comment()[matches(., 'first')]: returns
nothing [NOT OK]

Have I missed something, or is this not yet implemented in eXist (tested
in java client of eXist-1.3.0dev, rev. 7579)?

Kind regards,

Ron


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open

Re: querying comment nodes

by Wolfgang Meier-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I'm a little bit late with my response, but nevertheless, the bug is now
fixed in trunk.

Wolfgang

> I notice following behaviour:
>     -doc('/db/test/test.xml')//comment(): returns all comments [OK]
>     -doc('/db/test/test.xml')//comment()[matches(., '.*')]: returns all
> comments [OK]
>     -doc('/db/test/test.xml')//comment()[matches(., 'first')]: returns
> nothing [NOT OK]

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open

Re: querying comment nodes

by ron.vandenbranden :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

As the window of a night-shop in my neighbourhood reads: 'Never late'.

Thanks a lot, as always!

Ron

Wolfgang schreef:

> Hi,
>
> I'm a little bit late with my response, but nevertheless, the bug is
> now fixed in trunk.
>
> Wolfgang
>
>> I notice following behaviour:
>>     -doc('/db/test/test.xml')//comment(): returns all comments [OK]
>>     -doc('/db/test/test.xml')//comment()[matches(., '.*')]: returns
>> all comments [OK]
>>     -doc('/db/test/test.xml')//comment()[matches(., 'first')]:
>> returns nothing [NOT OK]
>
>




-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open