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

Re: the "~" operator (was Re: Add id to next element)

Subject: Re: the "~" operator (was Re: Add id to next element)
From: "Chris Papademetrious christopher.papademetrious@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 20 May 2022 02:18:07 -0000
Re: the "~" operator (was Re:  Add id to next element)
> I'm not sure I want that ~ operator MORE than I want to be able to stuff
XPath expressions into macros, but if there are votes, I would vote in favour
of it.

Ahh yes, while we're casting imaginary votes, I want that macro feature too.
:)

It is the feature I didn't know I wanted back when I asked this question:

https://www.biglist.com/lists/lists.mulberrytech.com/xsl-list/archives/202201
/msg00000.html

I basically wanted to be able to define a complex XPath expression somewhere
once, then reuse it here and there as needed.

In the end, I took Wendell and Eliot's advice to emulate a macro using a
function and templates:

https://www.biglist.com/lists/lists.mulberrytech.com/xsl-list/archives/202201
/msg00010.html
https://www.biglist.com/lists/lists.mulberrytech.com/xsl-list/archives/202201
/msg00011.html

but a macro capability would certainly be much more elegant! The
function/template approach works, but is verbosely verbose.

 - Chris

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.