Re: [xslt] [xsltproc] HTML compatibility ?
- From: "William M. Brack" <wbrack mmm com hk>
- To: xslt gnome org
- Subject: Re: [xslt] [xsltproc] HTML compatibility ?
- Date: Sun, 16 Nov 2003 20:11:45 +0800 (HKT)
Laurent said:
> Hi,
>
> I'm using xsltproc to parse XML documents and output them as XHTML
> 1.1
> (using an XSL stylesheet).
>
> Is there any way to tell xsltproc to be "HTML compatible" ?
>
> e.g.
> * for empty tags, add extra space: <img src="a.jpg" /> instead of
> <img src="a.jpg"/>
> * for empty tags that need closing, keep the closing tag:
> <div></div>
> instead of <div/>
>
> Thanks.
>
> --
> Laurent
Daniel has a small problem with his mail, and asked me to respond on
his behalf:
If you change your output method to xml, and have your stylesheet
output an XHTML1 doctype, the libxml2 serializer will do what you
want automatically. Note, however, that this is limited to XHTML1.0
at the present time.
Regards,
Bill
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]