[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
Re: [xml-dev] Polyglot Markup - serializer questions
- From: Michael Kay <mike@saxonica.com>
- To: xml-dev@lists.xml.org
- Date: Thu, 08 Jul 2010 19:02:45 +0100
> The doc discusses the difference between empty tags which are EMPTY vs
> not. E.g. says to use <br/> but not <p/> (instead use <p></p>)
> This would imply (?) that an XML serializer would need to know when
> its OK and not to compress empty tags.
> Serializers such as Saxon with html encoding do this but they do it
> differently ... e.g a <br/> in XML becomes <br> in html mode.
> Does following this standard imply that we need new output methods for
> serializers?
This doesn't strike me as very different from what the XHTML output
method already does. It has hard-coded knowledge of the vocabulary to
distinguish elements with an empty content model from those that just
happen to be empty, but one could equally well make the same decision
based on access to a schema.
Michael Kay
Saxonica
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]