Subject: Re: [xsl] selecting a element without it's child element From: Michael Kay <mike@xxxxxxxxxxxx> Date: Wed, 10 Nov 2010 10:51:12 +0000 |
Hi Experts,
I need to select an element and store in a variable, but not the child element of that particular element.
My XML
<book><title><indexterm>Violent Extremism</indexterm> Sacred Values, and what it Means to be Human</title></book>
My XSLT:
<xsl:variable name="filename"><xsl:value-of select="book/title except child::indexterm"/></xsl:variable>
My Current output:
Violent ExtremismSacred Values, and what it Means to be Human
My Expected output:
Sacred Values, and what it Means to be Human
The content of "indexterm" element should not be part of the file name. I need to ignore that element while selecting the title element.
<xsl:template match="title"> <xsl:apply-templates/> </xsl:template>
Michael Kay Saxonica
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] selecting a element witho, Ramkumar.V | Thread | Re: [xsl] selecting a element witho, pankaj . c |
Re: [xsl] Unique id based on the po, Michael Kay | Date | Re: [xsl] selecting a element witho, pankaj . c |
Month |