Subject: [xsl] key with restricting the scope of use attribute From: Dan Diebolt <dandiebolt@xxxxxxxxx> Date: Thu, 10 May 2001 10:47:38 -0700 (PDT) |
I have a key that works when the match is anchored to fixed path /a/b/c <xsl:key name="MyKey" match="/a/b/c" use="?"/> My ultimate goal is to recursively process //a/b/c using a single key using a breadth first or depth first algorithm. If the node I am currently processing is held in a variable $CurrentNode, how would you construct the key to restrict its matching to just this node? In other words, I need to form the use attribute knowing $CurrentNode so that match="//a/b/c" does not match anthing other than $CurrentNode. The source XML is too long and complicated to post, but I could come up with an example if the above description is not adequate. Again, I am looking for a general technique with speed as the primary consideration. Regards, Dan __________________________________________________ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] How to dump a key for deb, Michael Kay | Thread | Re: [xsl] key with restricting the , David Carlisle |
[xsl] How to dump a key for debugin, Dan Diebolt | Date | Re: [xsl] How to dump a key for deb, David Carlisle |
Month |