Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: XML Strategy For Computer Algebra

by idsfa (Vicar)
on Aug 26, 2004 at 16:32 UTC ( #386071=note: print w/replies, xml ) Need Help??


in reply to XML Strategy For Computer Algebra

My suggestion would be to extend   XML::Xalan, a Perl interface to Xalan-C++. This lets you apply a (potentially dynamically generated) XSL transformation to an XML document. Example from the docs:

use XML::Xalan; my $tr = new XML::Xalan::Transformer; # parse an XML string: my $parsed = $tr->parse_string(<<"XML"); <?xml version="1.0"?> <doc>Hello</doc> XML # compile a stylesheet string: my $compiled = $tr->compile_stylesheet_string(<<"XSLT"); <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:template match="doc"> <out><xsl:value-of select="."/></out> </xsl:template> </xsl:stylesheet> XSLT my $res = $tr->transform_to_data($parsed, $compiled);

If anyone needs me I'll be in the Angry Dome.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2023-03-29 13:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (71 votes). Check out past polls.

    Notices?