Project

Profile

Help

DTD changes

Added by Anonymous almost 19 years ago

Legacy ID: #3279613 Legacy Poster: marcvc (marcvc)

Michael, I have the impression that the fix in Saxon 8.5 for fn:idref() results in unexpected beaviour in a number of scenarios. Assume book.xml governed by a DTD,with an id attribute declared as ID. The following query seems to behave as expected and retruns asequence of true values: for $id in doc("book.xml")//@id return data($id) instance of xdt:untypedAtomic Actually Saxon determines statically that a sequence of true values can be returned. Consider now the following query: for $s in doc("book.xml")//section[@id] return data($s//@id) instance of xdt:untypedAtomic It evaluates to a sequence of false values Thanks, Marc


Replies (1)

RE: DTD changes - Added by Anonymous almost 19 years ago

Legacy ID: #3280470 Legacy Poster: Michael Kay (mhkay)

Yes, it appears that these changes were incomplete, and values defined in the DTD as ID or IDREF still take the type xs:ID/xs:IDREF for some purposes (but not all). A fix is at https://sourceforge.net/tracker/index.php?func=detail&aid=1252066&group_id=29872&atid=397617 Michael Kay

    (1-1/1)

    Please register to reply