|
Converting to SymbolicXML
Suppose you have written a technical paper in Mathematica and now want to submit the paper to a journal that only accepts submissions in a specific XML format, say DocBook. You therefore need to transform your notebook into DocBook format. One way to do this is to use XSLT to transform the NotebookML output from Mathematica into DocBook.

However, you can easily perform the same transformation completely within Mathematica by using SymbolicXML as an intermediary. Mathematica's pattern matching and symbolic processing can make the task quite easy. A schematic of the process might look like the following.

Here is a simple example of the type of manipulations you can perform. This command replaces tab characters ('\t') with four non-breaking spaces. This is something one might want to do before presenting work on the web.
In[7]:=
This applies the rule to a notebook called nb and exports the result as an XML file.
In[8]:=
Out[8]=
In[9]:=
Out[9]=
|