[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
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:
I think maybe he means 'ancestor::* except ancestor::searchReplace'? As given it doesn't make much sense.
Probably it's intended to be 'string-join(*,'-'), if it's meant to string the values together using the delimiter expected by the key.
That's for sure.
Re: [xsl] AVT use and doc() function in xslt 2.0?
Subject: Re: [xsl] AVT use and doc() function in xslt 2.0? From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Fri, 19 Aug 2011 11:02:55 -0400 |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] AVT use and doc() functio, Andrew Welch | Thread | Re: [xsl] AVT use and doc() functio, David Carlisle |
Re: [xsl] redirecting ouput to a di, Andrew Welch | Date | Re: [xsl] AVT use and doc() functio, David Carlisle |
Month |
Keywords