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

Re: AVT use and doc() function in xslt 2.0?

Subject: Re: AVT use and doc() function in xslt 2.0?
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Fri, 19 Aug 2011 11:02:55 -0400
Re:  AVT use and doc() function in xslt 2.0?
Hi,

Andrew was typing so fast his fingers strayed. (Or he was using David's fingers.)

On 8/19/2011 4:45 AM, Andrew Welch wrote:
You could change the key to be all of the @val attributes joined using a hyphen:

match="replaceWith" use="string-join((ancestor::* except
searchReplace)/@val, '-')"

I think maybe he means 'ancestor::* except ancestor::searchReplace'? As given it doesn't make much sense.


then you should be able to call using the much shorter:

key('blah', string-join((modelic,sdc,chapnum,....), ','), $doc)

which if they are in document order anyway then just:

key('blah', string-join(*, ','), $doc)

Probably it's intended to be 'string-join(*,'-'), if it's meant to string the values together using the delimiter expected by the key.


Ironically 'throwaway' code often hangs around for long time...

That's for sure.


Cheers,
Wendell

======================================================================
Wendell Piez                            mailto:wapiez@xxxxxxxxxxxxxxxx
Mulberry Technologies, Inc.                http://www.mulberrytech.com
17 West Jefferson Street                    Direct Phone: 301/315-9635
Suite 207                                          Phone: 301/315-9631
Rockville, MD  20850                                 Fax: 301/315-8285
----------------------------------------------------------------------
  Mulberry Technologies: A Consultancy Specializing in SGML and XML
======================================================================

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.