Le vendredi 28 janvier 2005 � 18:56 +0100, Erik Bruchez a �crit :
> Eric,
>
> I did not even think we needed an XHTML serializer, as I wasn't aware of
> those pseudo-XML-that-is-kind-of-compatible-with-HTML guidelines ;-)
They were really needed for IE and Nestcape < 4 and will useless as time
goes by...
> I think the poster meant at the time that he was using the XML
> serializer, and just configuring it to set the correct DOCTYPE, etc.
Yes.
> Maybe simple text-based post-processing of the output of the XML
> converter (configured correctly for DOCTYPE, encoding, etc.) would
> suffice to implement and/or validate those guidelines?
That seems pretty tricky since some transformation are context dependent
and depend on the element and attribute... You would probably end up
rewriting a XML parser and that's easier to work on a stream of SAX
events than on the text of a XML document.
A looong time ago, I have written a XHTML output method for James
Clark's XT and that shouldn't take me long to use it for a XHTML
serializer... I'll see what I can do.
> -Erik
>
> PS: The reason we now have XML / HTML / Text is that those are three
> three serialization methods defined by the XSLT spec. Those are actually
> now split into combinations of converters and Text serializer.
Yes, and the reason why there is no XHTML output method for XSLT is that
XHTML 1.0 has been published after XSLT 1.0.
BTW, your old competitor Cocoon has a XHTML serializer :-) ...
Eric
--
Read me on Advogato.
http://advogato.org/person/vdv/
------------------------------------------------------------------------
Eric van der Vlist http://xmlfr.org http://dyomedea.com
(ISO) RELAX NG ISBN:0-596-00421-4 http://oreilly.com/catalog/relax
(W3C) XML Schema ISBN:0-596-00252-1 http://oreilly.com/catalog/xmlschema
------------------------------------------------------------------------
-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
orbeon-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/orbeon-user