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

Re: XPath equivalent to xsl:apply-templates?

Subject: Re: XPath equivalent to xsl:apply-templates?
From: "Graydon graydon@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 14 Jun 2022 11:40:18 -0000
Re:  XPath equivalent to xsl:apply-templates?
On Tue, Jun 14, 2022 at 04:03:21AM -0000, Dimitre Novatchev dnovatchev@xxxxxxxxx scripsit:
> So, in the general case we will have not:
> 
> > local:doesThing#3@userDefined
> 
> but:
> 
> local:doesThing#3@userDefined1@userDefined2...@userDefinedN

I think that by analogy to arity, where concat#2 and concat#3 are
strictly speaking not the same function, we would have distinct
local:doesThing#3@userDefinedMode1 and
local:doesThing#3@userDefinedMode2 as distinct functions.

> we also will need a function: 
> 
>       matches-pattern($item as item(), $match-pattern as xs:string())
> 
> The parameters to the function that emulates a  template need to be in two
> groups: explicit and tunnel.

Do we want to emulate a template entirely in a function or have a
function that allows XPath to either call or apply templates? I'd think
it's the later; if it's the former, that's trying to stuff template
functionality into functions as a mechanism and I don't think it will
go.  (As a distinct concern, it would also amount to deciding that XSLT
and XQuery ought to be one language and I think there are sound reasons
not to do that.)


-- 
Graydon Saunders  | graydonish@xxxxxxxxx
^fs oferiode, pisses swa mfg.
-- Deor  ("That passed, so may this.")

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.