Bugs item #1743433, was opened at 2007-06-26 11:55
Message generated for change (Comment added) made by boncz
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=1743433&group_id=56967
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: PF general
Group: Pathfinder 0.18
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Joris van Rantwijk (jvrantwijk)
Assigned to: Jan Flokstra (jflokstra)
>Summary: XQ: problem with ampersand in attribute value
Initial Comment:
XML attribute values containing an ampersand give unexpected query results. In
the query response, the ampersand is apparently escaped twice into &
Example document aap.xml:
<aap>
This is ok: &
But this is bad: <noot q="&" />
</aap>
The XQuery doc("aap.xml") now returns:
<aap>
This is ok: &
But this is bad: <noot q="&#38;"/>
</aap>
Note that the problem only occurs with shredded documents, not with nodes
embedded in the XQuery. This suggests that the bug is somewhere in the shredder.
I enabled the debug statements in shred_start_element in shredder.c. This
showed that val at that point already contains "&" (I was expecting "&").
----------------------------------------------------------------------
>Comment By: Peter Boncz (boncz)
Date: 2007-07-03 12:07
Message:
Logged In: YES
user_id=591107
Originator: NO
renamed bug with XQ: in title
----------------------------------------------------------------------
Comment By: Peter Boncz (boncz)
Date: 2007-07-03 11:59
Message:
Logged In: YES
user_id=591107
Originator: NO
shredder, entities.. so assigning to Jan
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=1743433&group_id=56967
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Monetdb-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-bugs