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

----- Original Message -----
From: "Daniel Veillard" <>
To: <>
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
> > xslt and xml librarie) that DOCTYPE shouldn't be generated. The
> > presented here causes each file written to have it's doctype created
> > one is present). I'm not sure how to go about removing the
> > 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
> 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
> attribute not being evaluated correctly is a bit complex:
>    - the XSLT-1.1 is now deprecated but defined xsl:document, it
>      the semantic of the attributes as being the same as for
>    - 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
> 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 :]


> Daniel
> --
> Daniel Veillard      | Red Hat Network
>  | libxml Gnome XML XSLT toolkit
> | Rpmfind RPM search engine
> _______________________________________________
> xslt mailing list

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