[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Use of xsl:apply-templates exception with an eleme

Subject: Re: Use of xsl:apply-templates exception with an element
From: Vyacheslav Sedov <vyacheslav.sedov@xxxxxxxxx>
Date: Fri, 25 Sep 2009 12:03:22 +0400
Re:  Use of xsl:apply-templates exception with an eleme
<xsl:template match="blockquote">
<blockquote>
<xsl:apply-templates select="* except attribution, attribution"/>
</blockquote>
</xsl:template>

On Fri, Sep 25, 2009 at 11:58 AM,  <srinivasan.p@xxxxxxxxxx> wrote:
> 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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.