cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Colin Paul Adams <>
Subject Re: [C2] xsl:output ignored?
Date Sun, 15 Jul 2001 19:26:02 GMT
>>>>> "Colin" == Colin Paul Adams <> writes:

    Colin> Since I had specified the following in my transform, I
    Colin> expected to get a DOCTYPE statment:

    Colin>   <xsl:output method="xml" version="1.0" standalone="no"
    Colin> encoding="UTF-8" omit-xml-declaration="no"
    Colin> doctype-system=""
    Colin> doctype-public="-//W3C//DTD XHTML 1.1//EN" />

    Colin> The output was indeed xhtml, but no doctype (or xml
    Colin> declaration - I probably will need to omit the latter
    Colin> anyway).
    Colin> So why is there no <!DOCTYPE statement being omitted? 

Well, I managed to work it out by trial-and-error for myself. The
answer was not to use xsl:output (which seems to be ignored), but to
provide parameters in the sitemap.

Here is the serialiser I used (in case anyone else has the same

      <map:serializer name="xhtml" mime-type="text/html" 
        <doctype-public>-//W3C//DTD XHTML 1.1//EN</doctype-public>

Where is this documented?
Colin Paul Adams
Preston Lancashire

Please check that your question has not already been answered in the
FAQ before posting. <>

To unsubscribe, e-mail: <>
For additional commands, e-mail: <>

View raw message