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

RE: XSLT vs Perl

Subject: RE: XSLT vs Perl
From: David Tolpin <dvd@xxxxxxxxxxxxxx>
Date: Wed, 4 Feb 2004 01:10:48 +0400 (AMT)
xslt href
> > > <a href="{../@code}.html"/><xsl:value-of select="title"/></a>
> > 
> > new Node("a",href=>value_of(../@code).".html",value_of("title"));
> > 
> > David Tolpin
> Could I ask you what language this is written in and where I find its
> semantics, please?

It is written in Perl, using an XML/XSLT/XPath module I was using internally
for my programs. It is valid perl, except for some typos.

> I'm curious as to why the element name "a" is in quotes but the
> attribute name "href" isn't, and why one of the XPath expressions

1) href is not in quotes because a word before => in perl can be used
without quotes. 
2) ../@code is not in quotes because I have made a typo.

> "title" is in quotes and the other one "../@code" isn't, and how you
> create three nodes with only one call on "new". I would also be

Inside the call 'new Node', other nodes for the attribute and for character
data are created.

> interested to see how this kind of language manages the static and
> dynamic context.

In a way similar to XSLT. Are you interested in implementation details?

David Tolpin

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

Current Thread


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.
First Name
Last Name
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.