Limit on Number of Character Encoded Entitities (NCRs) Inside Element
---------------------------------------------------------------------

         Key: XMLBEANS-272
         URL: http://issues.apache.org/jira/browse/XMLBEANS-272
     Project: XMLBeans
        Type: Bug

  Components: XmlObject  
    Versions: Version 1.0.4    
 Environment: Windows 2000, JRocket version: BEA WebLogic JRockit(TM) 1.4.2_08 
JVM R24.5.0-61
    Reporter: Henri Hein


Steps:
Add a text element like this:
                output.addText("’ “ ” … „ „ 
");
Output:
  <Text><![CDATA[&amp;#8217; &amp;#8220; &amp;#8221; &#8230; &#8222; 
&#8222;]]></Text>
Add a text element like this:
                output.addText("&#8217; &#8220; &#8221; &#8230; &#8222; #8222; 
");
Output:
  <Text>&amp;#8217; &amp;#8220; &amp;#8221; &amp;#8230; &amp;#8222; 
#8222;</Text>
Expect:
The first case should be
  <Text>&amp;#8217; &amp;#8220; &amp;#8221; &amp;#8230; &amp;#8222; 
&amp;#8222;</Text>

The characters are all valid NCRs.  See 
http://www.w3.org/Talks/1999/0830-tutorial-unicode-mjd/all.htm
It doesn't matter which one I un-escape, or if I delete it completely.  What 
seems to matter is the _count_ of NCRs inside the element.

There were some discussion in the archives about similar issues.  Appearently, 
XMLBeans decides to use CDATA sometimes using rules that are not entirely 
clear. It seems arbitrary to use the count of escaped characters, and this 
particular behaviour is decidedly unexpected.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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

Reply via email to