On 31.10.2013 19:28, Bob Stayton wrote: > I just tested again with xhtml/docbook.xsl, and you are correct that > Saxon does not output that <meta> tag when output method="xml", but > xsltproc does with that stylesheet. But xsltproc does so only when the > XHTML DTD is specified.
Hmm, that's interesting behaviour although probably not conforming to XSLT 1.0 specification. I wasn't aware of that, I'm not using xsltproc on regular basis. > When the DTD reference is removed, as in xhtml5, > then xsltproc does not. If xsltproc is being used for xhtml5 output, > then I think you would have to resort to manually adding that meta tag > to the 'user.head.content' template. Yep, but one has to take care to specify there same encoding as in xsl:output/$chunker.output.encoding, otherwise output will be displayed as mess again. Jirka -- ------------------------------------------------------------------ Jirka Kosek e-mail: ji...@kosek.cz http://xmlguru.cz ------------------------------------------------------------------ Professional XML consulting and training services DocBook customization, custom XSLT/XSL-FO document processing ------------------------------------------------------------------ OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 rep. ------------------------------------------------------------------ Bringing you XML Prague conference http://xmlprague.cz ------------------------------------------------------------------
signature.asc
Description: OpenPGP digital signature