Subject: Re: [xsl] Testing for presence of node, etc. From: Joerg Heinicke <joerg.heinicke@xxxxxx> Date: Tue, 21 May 2002 22:08:50 +0200 |
<!-- first occurence of a link with a specific type" --> <xsl:template match="link" mode="unique"> type: <xsl:value-of select="@type"/> <xsl:apply-templates select="key('links', @type)"/> </xsl:template>
<xsl:template match="link"> <xsl:value-of select="@url"/> </xsl:template>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
In my xml document, I have several nodes of type <link type="" url=""></link>, where type may one of several different things, and more than one node may have the same @type. I want to be able to test whether any nodes exist that have a specific @type and if so, output a certain heading. I then need to output a string of text for each occurrance of a specific @type. Obviously I don't want the heading to output for each occurance.
If I haven't confused everyone already, what suggestions do you have about the best way to do this?
- -joeljkp
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Testing for presence of n, Peter Davis | Thread | [xsl] Grouping duplicate elements u, Uslu, Cihan Y (MED) |
RE: [xsl] Grouping question [1.0 wa, Bryan Schnabel | Date | Re: [xsl] Grouping question, Spectron Internation |
Month |