This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: XSL HTML stylesheets: support for DOCTYPE?


/ pilgrim_mark@yahoo.com was heard to say:
| Actually, you can do it in a template, I did it the
| way I described and it worked like a charm (using
| Saxon).  Using <xsl:output> seems much more elegant. 

*Any* time you are tempted to use disable-output-escaping, I think
it's time to consider carefully the design of your stylesheet.
There's no question that it's sometimes necessary, but very, very
rarely, if ever.

| But I just tried it, and while it works for
| single-page XSL transformations, it fails for chunked
| output.  Saxon writes each of the files without a
| <!DOCTYPE> and then outputs the <!DOCTYPE> to stdout. 
| Do you know why?

I think you have to put the doctype-* entities on the saxon:output
element.

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com>      | The First Amendment is often
http://www.oasis-open.org/docbook/ | inconvenient. But that is besides
Chair, DocBook Technical Committee | the point. Inconvenience does not
                                   | absolve the government of its
                                   | obligation to tolerate
                                   | speech.--Justice Anthony Kennedy,
                                   | in 91-155

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]