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

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

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


Subject: DOCBOOK: Re: MathML? With docbook-xslt?


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

/ "Steven T. Hatton" <hattons@speakeasy.net> was heard to say:
| What's that status on the MathML support for DocBook?  I'm using Mathematica 
| to generate MathML output, and would like to include this in DocBook 
| document.  When I looked at the very sparse documentation on how to do this, 
| it appears that DocBook will require me to significantly modify my MathML.  

Well, I might quibble with "significantly", but...

| That is, MathML such as that shown below would require all the tags to also 
| contain mml:, as in <mml:math xmlns='http://www.w3.org/1998/Math/MathML'>
| <mml:mrow>, etc.
[...]
| Perhaps this sample code contains the answer to my own question.  That is, if 
| I use the above form of the math begin tag, then I don't need to specify the 
| name space in all the subordinate tags.  This is how it works in xhtml.

The problem here is DTD validation. If you're using RELAX NG or W3C
XML Schema to validate, you can do just what you described. But if you
are using DTDs to validate, the element names have to match *before
namespace processing* so the mml: part is necessary. You can change
the mml: prefix if you want, but you can't remove it (because there
are tag name collisions between MathML and DocBook).

Actually, I just had a cunning plan. Using a Xerces XNI pipeline, it
would be possible to "sanitize" the namespaces before the DTDValidator
saw the result...hmm...

| Another question I have is whether I can use this with the doc-book xlst 
| suite.  I want to write what amounts to a math, or physics book using a 
| combination of DocBook and Mathematica generated MML and images, etc.

The HTML stylesheets just pass it through. The print stylesheets
probably don't do anything useful with it. Maybe they pass it through
too and maybe PassiveTeX could render it...

| I use XEmacs to do all my DocBook authoring, and the management of both MathML 
| and DocBook XML is already a bit unnerving.  Things could get messy in a 
| hurry.  I'd rather not have to change the MML generated by Mathematica if I 
| don't need to.
|
| Perhaps the answer might be to create XHTML files for the MML elements and 
| somehow include these into the DocBook document.  Is that possible? 
| Reasonable?  Can I simply 'inline' XHTML in some way into a DocBook document?  
| It's important that I be able to use the XSLT processor to generate HTML 
| without too much additional fuss.
|
| Am I sailing off the edge of the known world here?

Along the edge, perhaps, but not off it. I'll go work on my cunning
plan for a bit, because it's early in the morning and I get up this
early so I can do things like that :-)

                                        Be seeing you,
                                          norm

- -- 
Norman Walsh <ndw@nwalsh.com>      | The irrational is not necessarily
http://www.oasis-open.org/docbook/ | unreasonable.--Sir Lewis Namier
Chair, DocBook Technical Committee |
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.7 <http://mailcrypt.sourceforge.net/>

iD8DBQE9uRzNOyltUcwYWjsRApC4AJ4z8O6dVOz717IX5WdUrm8RqlilAQCdFF18
ppVVdqjdDAg4MjfAlBlrzjk=
=/o8f
-----END PGP SIGNATURE-----


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


Powered by eList eXpress LLC