XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] How many text nodes in this element with a CDATA section?

actually, Xerces's latest XSD 1.1 implementation for xs:assert within the 2.12.2 release doesn't have this bug, and therefore that doesn't require any fix.

The XPath 2.0 engine that we use, outside of any host language (on which Xerces's XPath 2.0 support is based upon), required this fix for XML CDATA nodes (the method, https://docs.oracle.com/javase/7/docs/api/javax/xml/parsers/DocumentBuilderFactory.html#setCoalescing(boolean) did the magic).

On Tue, Feb 8, 2022 at 7:07 PM Mukul Gandhi <mukulg@softwarebytes.org> wrote:
Hi Mike,

On Tue, Feb 8, 2022 at 6:03 AM Michael Kay <mike@saxonica.com> wrote:
In the XDM model the content of the Test element is a single text node. XDM does not allow two adjacent text nodes.

There are certainly XPath implementations, especially those running against a DOM, that get this wrong. You seem to be running against an implementation that has "cdata-section" nodes, which do not exist in XDM.

Thanks, for the clarification.

This was a bug with Apache Xerces's XPath 2.0 engine as well, that's based on DOM. We just applied the fix, as you've stated.


--
Regards,
Mukul Gandhi


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS