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: patch for xsl-stylesheets-1.70.1 to support db.imagedata.mathml and db.imagedata.svg

This email provides answers to my questions which received no responses:


Perhaps I have been complaining about docbook-xsl too much. For that,
I apologize.

The stylesheets now have a patch [1] to support db.imagedata.mathml
and db.imagedata.svg. The role attributes for xhtml (possbily
undocumented, I'm unsure), html, and fo work just fine to select
MathML (and SVG if I did it right, but I haven't tested that yet).

Here are some source and output examples:



Patch notes:
I realize the sources say not to edit the files in the xhtml
directory, but this is a simple patch that should be easily adapable
to the html verison. In fact, it may work without modification because
diff can patch hunks that have moved, AFAIK. It is patterned off the
svg modifications in the <imageobject> template in graphics.xsl (and
the existence of the <mml:*> template in math.xsl). The first code
chunk goes right after the beginning of the <imagedata> template in
graphics.xsl, while the second chunk goes right before the end of the
same template.

[1] Patch:
$ diff ~/dbxsltmp/xhtml/graphics.xsl
<   <xsl:choose>
<     <xsl:when xmlns:svg="http://www.w3.org/2000/svg"; test="svg:*">
<       <xsl:apply-templates/>
<     </xsl:when>
<     <xsl:when xmlns:mml="http://www.w3.org/1998/Math/MathML"; test="mml:*">
<       <xsl:apply-templates/>
<     </xsl:when>
<     <xsl:otherwise>
<     </xsl:otherwise>
<   </xsl:choose>

Thanks for DocBook.


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