By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,264 Members | 1,774 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,264 IT Pros & Developers. It's quick & easy.

DTD design advice: evaluated markup in CDATA sections?

P: n/a
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:

<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
&lt;/&gt; 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>


Jul 20 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.