Re: [xslt] [xsltproc] HTML compatibility ?

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.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]