Consider the following lines of fake poetry:

   Class aptent taciti sociosqu "ad litora torquent,
   per conubia nostra" per inceptos hymenaeos.

Now consider making a xml document out of it, where you had some elements for structure like |<poem>| and |<line>|; and some elements for content markup like |<||q||>| and others.
So how would you format it? (Assuming keeping the quote and lines are both need to be the appropriate elements and style is not important, yet)


   |<?xml version="1.0" encoding="utf-8"?>
   <poem xmlns="http://some.name.space";>
       <line>Class aptent taciti sociosqu <q>ad litora torquent,</line>
       <line>per conubia nostra</q> per inceptos hymenaeos.</line>
   </poem>|

but it's not well formed, and neither or the alternatives are appropriate, both:

   |<line>Class aptent taciti sociosqu <q>ad litora
   torquent||,</q>||</line>
   <line>||<q>||per conubia nostra</q> per inceptos hymenaeos.</line>
   |

and

   |<line>Class aptent taciti sociosqu||</line>||
   <q>||
       <line>||ad litora torquent,</line>
       <line>per conubia nostra||</line>||
   </q>
   ||<line>||per inceptos hymenaeos.</line>
   |

won't do because they don't properly convey the data and would be almost impossible to style appropriatly as well. Of course in this situation you'd probably be better of ignoring the <q>'s and just using quotation marks, but in my situation that's not really possible. I /have /to include both the strucutral markup and the content, any suggestions?

Alan Trick
******************************************************
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************



Reply via email to