Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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: (6)
As of 2023-02-06 21:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer not to run the latest version of Perl because:







    Results (36 votes). Check out past polls.

    Notices?