Project

Profile

Help

CDATA and boundary white spaces

Added by Anonymous over 19 years ago

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

Michael, I've the impression that white spaces between a CDATA section and tag are treated as boundary white spaces. In Saxon 8.x <e><![CDATA[abc]]> </e> evaluates to <e>abc</e> where I would have expected <e>abc </e> Thanks, Marc


Replies (3)

Please register to reply

RE: CDATA and boundary white spaces - Added by Anonymous over 19 years ago

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

Thanks, I have registered this as https://sourceforge.net/tracker/index.php?func=detail&amp;aid=1122723&amp;group_id=29872&amp;atid=397617 and fixed the source. Michael Kay

RE: CDATA and boundary white spaces - Added by Anonymous over 19 years ago

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

Michael, for completeness, the same issue seems to be there for xml comments, possibly also other node constructors. <e> <!-- comment --> </e> evaluates to <e><!-- comment --></e> Thanks, Marc

RE: CDATA and boundary white spaces - Added by Anonymous over 19 years ago

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

For comments I think the Saxon result is correct: in this case the spaces are indeed boundary whitespace, and should be stripped unless boundary whitespace is significant. MK

    (1-3/3)

    Please register to reply