Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: MathML 2 ascii?

by Frantz (Monk)
on Jan 25, 2005 at 17:06 UTC ( [id://424946]=note: print w/replies, xml ) Need Help??


in reply to MathML 2 ascii?

Another solution:

use XML::XPath

The hard part is that you must write the xpath query which
extract your datas ... and xpath is very hermetic.

But the perl code may be very short :)

Replies are listed 'Best First'.
Re^2: MathML 2 ascii?
by Aristotle (Chancellor) on Jan 25, 2005 at 21:21 UTC

    I don't see how it could be. This isn't a case where you want to pull data from a document selectively, which XPath excels at. It's a case where you want to transcribe the entire document into a different format, where recursive processing of the full structure is inevitable.

    Makeshifts last the longest.

      The original post said that the MathML units code was just a small part of a much larger technical specification document, so something like XPath or XML::Twig will be required to extract it. I don't suppose you would want to write an XSLT translation specification for the entire document just to get the units.

        You can easily write an XSLT transformation that processes only a small part of its input. For those parts the OP wants to process he still needs to traverse the full sub-structure, though.

        Makeshifts last the longest.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://424946]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (8)
As of 2024-04-24 10:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found