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

Re: XPath expression that yields the same result as x

Subject: Re: XPath expression that yields the same result as xsl:for-each-group?
From: "Costello, Roger L. costello@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 30 May 2019 18:35:32 -0000
 Re: XPath expression that yields the same result as  x
Hi Folks,

Thank you for the awesome responses!

I particularly like Martin's XPath expression:

let $keys :=
    distinct-values(/Test/row/concat(ARPT__IDENT, '|', TRM__IDENT))
return
    for $i in $keys
    return
        array { /Test/row[$i = concat(ARPT__IDENT, '|', TRM__IDENT)] }

However ..... when I open the XML document in Oxygen and type the XPath
expression in the XPath/XQuery Builder, I get this message:

	"The XPath query returned no results"

Why is that?

Is Martin's XPath expression a pure XPath expression? Or, is it relying on
XSLT stuff such as:

	as="array(element(row))*"

My goal is to create a series of standalone XPath expressions that I can
sequentially input and evaluate on the XML instance document. To change my
program, I simply change the XPath expressions!

/Roger

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.