Thanks Michael, vyacheslav, and working fine now.
Thanks
Srinivasan
-----Original Message-----
From: Michael Kay [mailto:mike(_at_)saxonica(_dot_)com]
Sent: Friday, September 25, 2009 1:56 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: [xsl] Use of xsl:apply-templates exception with an element
Use <xsl:apply-templates select="* except attribution"/>
Regards,
Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay
-----Original Message-----
From: srinivasan(_dot_)p(_at_)textech(_dot_)in
[mailto:srinivasan(_dot_)p(_at_)textech(_dot_)in]
Sent: 25 September 2009 08:58
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] Use of xsl:apply-templates exception with an element
Hi Team,
I need to use <xsl:apply-templates/> element but exception of
a particular element. Is there any option in XSLT 2.0 for
this? I am using XSLT 2.0 and Saxon.
My Input:
<blockquote>
<attribution>...<emphasis>..</emphasis>...</attribution>
<para>......</para>
</blockquote>
Note: For example purpose, I have just included "para" tag
after the attribution, but in the live case any tags can be present.
My expected output:
<blockquote>
<para>......</para>
<attribution>...<emphasis>..</emphasis>....</attribution>
</blockquote>
My XSLT:
<xsl:template match="blockquote">
<blockquote>
<xsl:apply-templates/>
<xsl:apply-templates select="attribution"/> </blockquote>
</xsl:template>
I am getting twice output of attribution element using this XSLT.
I need to place the attribution element at the last of
blockquote element.
The thing is I need to omit the attribution element in first
"xsl:apply-templates" element.
Can you please help me on this?
Thanks
Srinivasan
--~------------------------------------------------------------------
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>
--~--
--~------------------------------------------------------------------
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>
--~--
--~------------------------------------------------------------------
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>
--~--