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

Re: Evaluating XPath expressions found in the source d

Subject: Re: Evaluating XPath expressions found in the source document
From: Jeni Tennison <mail@xxxxxxxxxxxxxxxx>
Date: Thu, 16 Aug 2001 10:56:24 +0100
Re:  Evaluating XPath expressions found in the source d
Hi Michael,

> James Pasley wrote:
>> If the source document that I am processing contains XPath
>> expressions, how do I write a stylesheet that will process them?
>>
>> For example, given the following input file
>>
>> <rootTag>concat('A','B')</rootTag>
>>
>> how do I get "AB", in the output instead of "concat('A','B')".
>
> Maybe my ignorance is showing again, but surely that's an XSLT
> function, not an XPath expression?

No, it is an XPath expression, consisting of a single function call. I
think that the terminology confusion comes because XPath sounds as
though it's just about paths, but actually location paths are just one
type of expression (albeit the most common). Expressions cover
anything that you can put in the select attribute of xsl:value-of, so
include arithmetic and function calls.

Most functions, including concat(), are defined as part of XPath;
there are only a handful of functions defined in XSLT, like
format-number() and document().

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/


 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.