xsl-list
[Top] [All Lists]

Re: [xsl] odf2xhtml: Processing nested element content seperatly ?

2006-10-27 06:48:21


ODF has a different approach to lining out text than HTML. HTML is 
sensible: Within html:p there may be no other block-elements

That's not sensible it's crazy! It's also something finally fixed in the
drafts of xhtml2, where p is given a more reasonable content model.

div is essentially p with fixed content model, so often it makes more
sense to translate paragraphs in other formats (docbook, tei etc all
allow block level content in paragraphs) to html div rather than p.

I would be very glad if someone would know of a solution, since right
now, I make all a <div> and this is surley not, how HTML should be
marked up.
It seems perfectly sensible to me, although the alternative is to group
the block elements and close and re-start the p's code to do that is
posted often enough (there was a thread last month if I recall)

The reason why most language formats (other than html) allow block level
constructs in paragraps is that most natural languages allow that.
If I say that
  a) it's reasonable to have a list mid sentence,
  b) it's reasonable to have a sentence mid paragraph, and so
  c) it's reasonable to have a list mid paragraph
then the natural way to mark up taht is as a list within a paragraph.

David

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--