Quantcast
Channel: Adobe Community : Popular Discussions - FrameMaker Structured
Viewing all articles
Browse latest Browse all 66580

Can't save ]]> in document text to XML

$
0
0

Dear colleagues,

 

I am currently evaluating a Save-as-XML problem with FrameMaker 9.0p255. The content of the document shows some XML examples which contains CDATA sections, like

 

<environment>  <var name="service"><![CDATA[Inhalt]]></var></environment>

 

Reminder: This is in the text of the FrameMaker document.

 

When I save as XML, the XML parser complains: »Error at line 140, char 77, Message: The sequence ']]>' is not allowed in character data«

 

When I open the XML file in a XML editor I see that all < are correctly escaped as &lt; and all > are left as is. The built-in Xerxes parser also reports: »The character sequence "]]>" must not appear in content unless used to mark the end of a CDATA section.«

And the XML Recommendation says:

The right angle bracket (>) may be represented using the string " &gt; ", and must, for compatibility, be escaped using either " &gt; " or a character reference when it appears in the string "]]> " in content, when that string is not marking the end of a CDATA section.

 

It seems to me FrameMaker should either write all > as &gt; to avoid the possibility that it might be used after ]].

 

Can you reproduce this issue (I can using the UserGuide structured application, by just putting ]]> in any element)?

 

Have you found a way to workaround this, maybe with a special R/W rule?

 

Thanks,

 

- Michael


Viewing all articles
Browse latest Browse all 66580

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>