Alan Trick wrote:
I have to include both the strucutral markup and the content, any suggestions?
As you probably suspect this is a more general issue, Eg,
<p>a line of programming code: <code>sample line</p> <p>sample line continues</code></p>
If you want to keep an association the way around it is usually to share an id,
<p>a line of programming code: <code lineid="myid">sample line</code></p>
<p><code lineid="myid">sample line continues</code></p>
or work around the problem by having a point in the document as a linebreak, Eg <br/> to express a line break,
<p>a line of programming code: <code>sample line<br />sample line continues</code></p>
Although <br/> as a point in the document with a linebreak has fallen out of favour because it doesn't express the same structure that <line>...</line> does (and isn't as easy to transform), it looks like the cleanest way.
As your presentation is part of the content in this case (you seem to care a great deal about retaining the linebreak) it's appropriate to contain formatting and content in the same file.
I'm not too familiar with it, but if you're getting into encoding text you might consider the TEI spec <http://www.tei-c.org/>.
.Matthew Cruickshank http://holloway.co.nz/
****************************************************** The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help ******************************************************
