OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Re: [docbook-apps] Setting doctype in output files


See the write.chunk template in the DocBook XSL stylesheets, or use it
directly. This is what I do to extract SVG; it should work similarly
with MathML:

  <xsl:template match="svg:svg"	xmlns:svg="http://www.w3.org/2000/svg";>
    <xsl:call-template name="write.chunk">
      <xsl:with-param name="filename" select="$filename"/>
      <xsl:with-param name="doctype-public"
		      select="'-//W3C//DTD SVG 1.1//EN'"/>
      <xsl:with-param name="content">
        <xsl:copy-of select="."/>

This works for me (with xsltproc).


Nicolas Pillot <nicolas.pillot@polymtl.ca> wrote on Fri, 19 Mar 2004
22:20:32 -0500:

> I am using an XSL stylesheet to extract SVG and MathML resources
> from a docbook file. Extraction works fine, except the fact that the
> file created through xalan redirection have the same doctype as the
> one specified in the xsl:output of the stylesheet. Because i
> generate .svg (1.0) and .mml (2.0), i would like these file to have
> the appropriate doctypes.

Justus H. Piater, Ph.D.         http://www.montefiore.ulg.ac.be/~piater/
Institut Montefiore, B28        Phone: +32-4-366-2279
Université de Liège, Belgium    Fax:   +32-4-366-2620

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]