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(_at_)mulberrytech(_dot_)com
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
======================================================================
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--