Well, then you didn't read carefully enough:

http://www.w3.org/TR/REC-xml/#sec-line-ends

   "To simplify the tasks of applications, the XML processor MUST behave as
   if it normalized all line breaks in external parsed entities (including
   the document entity) on input, before parsing, by translating both the
   two-character sequence #xD #xA and any #xD that is not followed by #xA
   to a single #xA character."

Note particulary the two words "before parsing".  That means the parser
must behave as if they were never there.

http://www.w3.org/TR/REC-xml/#sec-cdata-sect";

   "[Definition: CDATA sections MAY occur anywhere character data may
   occur; they are used to escape blocks of text containing characters
   which would otherwise be recognized as markup. CDATA sections begin with
   the string "<![CDATA[" and end with the string "]]>":]"

Since the first part makes clear the characters you want to preserve are
normalized _before_ the parser sees them, it's impossible for a CDATA
section to preserve them.  In addition, isn't the definition of what a
CDATA section is pretty clear?  CR and NL are not markup characters, such
as '&' and '<', etc., so why did you think a CDATA section would preserve
end-of-line characters?  If you want to understand what markup is, then
read:

   http://www.w3.org/TR/REC-xml/#dt-markup

Dave



|---------+--------------------------->
|         |           "Saw"           |
|         |           <[EMAIL PROTECTED]>    |
|         |                           |
|         |           04/19/2004 12:57|
|         |           PM              |
|         |           Please respond  |
|         |           to xerces-c-dev |
|---------+--------------------------->
  
>--------------------------------------------------------------------------------------------------------------------------|
  |                                                                                    
                                      |
  |        To:      <[EMAIL PROTECTED]>                                                
                            |
  |        cc:      (bcc: David N Bertoni/Cambridge/IBM)                               
                                      |
  |        Subject: RE: XERCES - SAXParser: newlines in CDATA sections                 
                                      |
  
>--------------------------------------------------------------------------------------------------------------------------|



"CDATA sections don't have any affect on normalization:
http://www.w3.org/TR/REC-xml/#sec-cdata-sect";

- I don't see how this follows from the section u've given. That was the
question in the first place, and 2.7 does not answer it, neither did u.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to