A
Arvin Portlock
I'm designing a small XML DTD to encode some help documentation.
The documentation contains a large number of examples of XML
markup. Naturally CDATA was my first thought, but ideally I would
like to render certain parts of the markup in bold so that it
stands out. I can't think of any way to do this with CDATA:
<![CDATA[<author>
<b><part type="last">Smith</part></b>
<part type="first">John</part></author>]]>
<b> will not be evaluated any differently than the other markup.
So I'm pretty sure CDATA is out. I imagine somebody must have
dealt with this before. What sorts of things do people recommend?
My feeling is that I will have to rely on lots and lots of
</> entities, but I don't relish the thought. But that
seems preferable to some weird TEI-style <tag> markup:
<tag name="part">type="last"</tag>
Arvin
The documentation contains a large number of examples of XML
markup. Naturally CDATA was my first thought, but ideally I would
like to render certain parts of the markup in bold so that it
stands out. I can't think of any way to do this with CDATA:
<![CDATA[<author>
<b><part type="last">Smith</part></b>
<part type="first">John</part></author>]]>
<b> will not be evaluated any differently than the other markup.
So I'm pretty sure CDATA is out. I imagine somebody must have
dealt with this before. What sorts of things do people recommend?
My feeling is that I will have to rely on lots and lots of
</> entities, but I don't relish the thought. But that
seems preferable to some weird TEI-style <tag> markup:
<tag name="part">type="last"</tag>
Arvin