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

Re: Selecting elements from source document based on

Subject: Re: Selecting elements from source document based on matches to a second document
From: "Graydon graydon@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 6 Mar 2023 03:51:42 -0000
Re:  Selecting elements from source document based on
On Mon, Mar 06, 2023 at 03:12:08AM -0000, Trevor Nicholls trevor@xxxxxxxxxxxxxxxxxx scripsit:
> The requirement (preferably XSL 2)  is to filter a log of source code edits by
> a list of paths held in a separate document. I can't believe there's not an
> elegant way of doing this in XSL but I haven't yet managed to find one.

In 3, there's xsl:evaluate.

In 2, you can write a stylesheet to construct a stylesheet. 

If you use this approach to consume the document with the path lists and
produce the transform that will report on the presence or absence of
something at that path once you run it on the log, you get something
reasonably efficient.

(This is still generally maybe more of an XQuery kind of thing.)

-- 
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.