[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: general purpose tranformation language (Re: No side effe

Subject: Re: general purpose tranformation language (Re: No side effects holycow. )
From: Matt Sergeant <matt@xxxxxxxxxxxx>
Date: Tue, 25 Apr 2000 10:25:02 +0100 (BST)
Re: general purpose tranformation language (Re: No side effe
I'm going to snip an extremely long post and reply with this: Build your
own.

As an example I built XPathScript. It's 251 lines of code, and a third of
that is documentation. It implements a combination of ASP-like <% %>
brackets and XPath for node resolution. It's built in perl and so uses
perl as it's in-built language:

<%
foreach my $node (findnodes('/some/xpath/here')) {
	print "<b>Found a node!</b><br>\n";
}
%>

It doesn't do nifty things like XSLT can do with apply-templates. I think
something like this would suffice:

$transforms->{'tag'}{pre} = "<h1>";
$transforms->{'tag'}{post} = "</h1>";

After all - most apply-templates stuff breaks down into what comes before
a tag and what comes after it. The rest can be done with the "Literal
Result Element" part. I think... :)

-- 
<Matt/>

Fastnet Software Ltd. High Performance Web Specialists
Providing mod_perl, XML, Sybase and Oracle solutions
Email for training and consultancy availability.
http://sergeant.org http://xml.sergeant.org


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.