Re: [xslt] Reading HTML documents using the document() function
- From: Daniel Veillard <veillard redhat com>
- To: xslt gnome org
- Subject: Re: [xslt] Reading HTML documents using the document() function
- Date: Tue, 11 Jun 2002 04:04:31 -0400
On Tue, Jun 11, 2002 at 09:55:03AM +0200, Eric van der Vlist wrote:
> Hi,
>
> I need to read HTML documents during a XSLT transformation involving XML
> documents and, of course, the document() function isn't very happy.
>
> Is there a way (for instance through an extension) to specify that the
> document I want to read is HTML and should use the libxml HTML parser?
>
> (Since the other documents involved in the transformation are XML, a
> global mechanism like the xsltproc --html option isn't a solution in
> this case).
Hum, no, there is no such extension at the moment. It seems the best
way would be to define an extension function in the libxslt namespace:
"http://xmlsoft.org/XSLT/namespace"
like document() but called htmldocument() and using the HTML parser.
Does any other XSLT parser provide something similar, it would be best
to try to reuse the same names if possible.
Daniel
--
Daniel Veillard | Red Hat Network https://rhn.redhat.com/
veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]