Re: Exporting notebooks to xml (cnxml)
- To: mathgroup at smc.vnet.net
- Subject: [mg61831] Re: [mg61823] Exporting notebooks to xml (cnxml)
- From: "G. Raymond Brown" <gbrown at runbox.com>
- Date: Mon, 31 Oct 2005 06:10:08 -0500 (EST)
- References: <200510310617.BAA28580@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Mathgroup, My original submission was truncated. The remainder is given below. -GRB- From: "G. Raymond Brown" To: mathgroup at smc.vnet.net Subject: [mg61831] [mg61823] Exporting notebooks to xml (cnxml) > Mathgroup, > > I'm mostly a lurker on this listserv - my apologies for forgetting to > fill in the subject field on the one response that made distribution. I > have learned quite a lot about Mathematica by lurking. > > I would like some suggestions from the experts. I have Mathematica > notebooks (in the Classroom style, designed for educational purposes) > consisting mostly of text cells in the Section and Subsection levels, > with numerous inline expressions and equations within the text cells, all > in TraditionalForm (slightly modified to retain some Mathematica > conventions that I find heuristically useful, such as square brackets > enclosing function arguments). Some cells at these levels are images > (rendered graphics objects that I want to be linked to the main file as > JPEG images). They also contain input and output cells, which are > contained at the Subsubsection level. > > I'm using Mathematica Version 5.1.1.0 in a Windows XP environment. > > I want to export the notebooks to XML + MathML files in the cnxlm flavor > described at http://cnx.rice.edu/. I'd prefer that the cells at the > Subsubsection level not appear in the exported XML file. (This is not a > big deal - I can easily edit them out.) > > I'm having some trouble understanding the help documentation for the > Export function. The syntax is Export[file.ext,expr]. The expr needed > appears to be NotebookObject[fe,id], where fe is a FrontEndObject and id > is an "integer that gives a unique serial number for this open notebook=94. I=92m running only one FrontEnd (the one that opens when I click on the Mathematica icon on my Dell laptop). How do I determine the values of fe and id for use in NotebookObject? Also, what should I set for ConversionOptions? For a previously successful conversion (using MS Word as an intermediary and laboriously inserting the MathML expressions by hand, one-by-one, an experience I do not wish to repeat), the leading tags in the resulting file are: <?xml version=3D=941.0=94 encoding=3D=94utf-8=94 standalone=3D=94no=94?> <!DOCTYPE document PUBLIC =93-//CNX//DTD CNXML 0.5 plus MathML//EN=94 =93http://cnx.rice.edu/cnxml/0.5/DTD/cnxml_mathml.dtd=94> <document xmls=3D=94http://cnx.rice.edu/cmxml=94 xmlns:md=3D=94http://cnx.rice.edu/mdml/0.4 =93 xmlns:m=3D=94http://www.w3.org/1998/Math/MathML/=94 id=3D=94none=94> I can=92t even read this, much less understand it, which pretty well establishes my level of understanding of XML. But I think it tells me what should appear in ConversionOptions. Any help is greatly appreciated. -GRB- >
- References:
- Exporting notebooks to xml (cnxml)
- From: "G. Raymond Brown" <gbrown@runbox.com>
- Exporting notebooks to xml (cnxml)