Subject: [xsl] Re : xsl:key not working on some machines and works on others From: Leena Kulkarni <mulberrylist@xxxxxxxxxxx> Date: Wed, 30 Jul 2003 07:06:30 +0100 (BST) |
Im not sure it I will be able to post the xml and xslts. I have one doubt which might get me closer to the answer. what should be the context node where Im using the key() function? can I use it at a node of which the match attribute is a child of the context node but the other nodes I want to test are not the ones which I can get by a following-sibling axes. something like this - <Root> <Value> <ppp>keyValue</ppp> </Value> <Value> <ppp>keyValue</ppp> </Value> <Value> <ppp>keyValue</ppp> </Value> <Value> <ppp>keyValue</ppp> </Value> </Root> Here the key Im checking the uniqueness key. My code is similar to - <xsl:key name="Key" match="ppp" use="."/> <xsl:for-each select="Value"> <xsl:if test="count(ppp | (key('Key', ppp)[1])) = 1"> </xsl:for-each> If I do a for-each of Value and then test for the key for ppp, will it give me unique values of ppp tag in the document? Thanks and Regards, ________________________________________________________________________ Send free SMS using the Yahoo! Messenger. Go to http://in.mobile.yahoo.com/new/pc/ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] (de)serialize between com, J.Pietschmann | Thread | [xsl] Re: XSL-List Digest V4 #1511, James Cummings |
[xsl] (de)serialize between comment, ohmson ampere | Date | Re: [xsl] passing external paramete, Armen Martirossian |
Month |