Re: [xslt] PATCH: xsl:document doctypePublic and doctypeSystem



----- Original Message -----
From: "Daniel Veillard" <veillard@redhat.com>
To: <xslt@gnome.org>
Sent: Tuesday, May 29, 2001 5:50 PM
Subject: Re: [xslt] PATCH: xsl:document doctypePublic and doctypeSystem


> On Sun, May 27, 2001 at 11:08:25PM +1000, Robert Collins wrote:
> > This patch is incomplete. There an autogenerated DOCTYPE that is
> > _always_ output on stdout. IMO (Based on what little I've seen of
the
> > xslt and xml librarie) that DOCTYPE shouldn't be generated. The
patch
> > presented here causes each file written to have it's doctype created
(if
> > one is present). I'm not sure how to go about removing the
autogenerated
> > one that gets written to stdout.
>
>   Sorry for not answering earlier, I'm really busy at the moment.
> Hum I'm afraid your patch is wrong. For example it breaks the
regression tests
> in tests/xmlspec, outputting the DOCTYPE declaration twice in the
generated
> HTML spec. So I won't commit it as is.

I knew it did that - thus my comment about the DOCTYPE that is _always_
written to stdout. That's the culprit. If you can provide a pointer to
where that is generated, I'm more than happy to chase it down :].

>   Looking at your initial report the point you raised about the
xsl:method
> attribute not being evaluated correctly is a bit complex:
>    - the XSLT-1.1 is now deprecated but defined xsl:document, it
defined
>      the semantic of the attributes as being the same as for
xsl:output.
>    - the XSLT-1.1 states clearly that xsl:output attributes are all
>      attribute value templates (where {expr} need to be evaluated).
>    - However the actual XSLT spec doesn't say the xsl:output
attributes are
>      attribute value templates.
>  Of course libxslt implements most of xsl:document by reusing the same
code
> as xsl:output, hence the reason why method="{...}" was not evaluated
as such.

Ah. If XSLT-1.1 is deprecated, what is the current draft for doing
multi-file outputs? I suspect I'm confused somewhere along the line :]

Rob

> Daniel
>
> --
> Daniel Veillard      | Red Hat Network
http://redhat.com/products/network/
> veillard@redhat.com  | libxml Gnome XML XSLT toolkit
http://xmlsoft.org/
> http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
>
> _______________________________________________
> xslt mailing list
> xslt@gnome.org
> http://mail.gnome.org/mailman/listinfo/xslt
>





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