Pages: 1
Print
Author Topic: special characters in xml map view  (Read 2747 times)
gcrews
Member

Posts: 265


« on: June 19, 2010, 12:27:32 AM »

forgive me if this has been asked before or i am missing something simple.
I am using Xmetal 6.

Say I have a topic with a title of "Bla<>Bla"
Xmetal correctly encodes it in the text view as "Bla&lt;&gt;Bla"
If i then insert that topic into a map or update the topic reference in XML view mode it populates the view. At the same time though it populates the navtitle with navtitle="Bla<>Bla" witch causes all sorts of validation errors. When it does have the correct encoding after switching from map view and not refreshing the references it shows all character encoding in the XML tag view.

Am i just missing an encoding instruction tag or something that would fix that or is that a bug in xmetal?
Logged
Derek Read
Program Manager (XMetaL)
Administrator
Member

Posts: 2621



WWW
« Reply #1 on: June 19, 2010, 10:52:45 PM »

This is a bug.

Of the characters that one should be concerned about being escaped in the navtitle attribute (ie: written as entities) in order to pass XML validation there are two that would potentially cause errors, those are < and " (less than and double quotation). Looks like our currrent release handles the double quote case correctly and writes the entity &quot; but does not write out &lt; unfortunately.

The code that runs when "Refresh All References" is performed (F11 and some other events trigger this) does the right thing in the Map Editor (when the map is open in a tab in the Resource Manager). It is when the map is open in XML View of Map (Tags On or Normal view) and Refresh All References is triggered that this gets messed up.

One good thing is that our validator (which is independent of the DITA scripts that mess this up) function as they always have and so you are at least warned when saving that the document is invalid, so you can then open the Attribute Inspector and fix the bad navtitle.

I'll check on the status when I get into the office next week. I don't think I have an easy fix for it, but I'll check that as well.
« Last Edit: June 19, 2010, 11:13:49 PM by Derek Read » Logged
Pages: 1
Print
Jump to:  

email us