468,457 Members | 1,765 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,457 developers. It's quick & easy.

DTD design advice: evaluated markup in CDATA sections?

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
&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>

Arvin

Jul 20 '05 #1
0 920

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Aidan | last post: by
reply views Thread by Chris Waddingham | last post: by
2 posts views Thread by Dave Matthews | last post: by
2 posts views Thread by indo3 | last post: by
10 posts views Thread by Simon Brooke | last post: by
2 posts views Thread by Steveino | last post: by
5 posts views Thread by David Schwartz | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.