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

Re: Calling xsl: template through mode attribute print

Subject: Re: Calling xsl: template through mode attribute prints only text nodes
From: "varun bhatnagar varun292006@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 1 Sep 2014 07:34:08 -0000
Re:  Calling xsl: template through mode attribute print
Hi Martin,

Thanks a ton!
This works...

BR,
Varun


On Fri, Aug 29, 2014 at 12:09 PM, Martin Honnen martin.honnen@xxxxxx <
xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:

> varun bhatnagar varun292006@xxxxxxxxx wrote:
>
>> Sorry if I have mislead you Martin, but the suggestion given in the
>> above mail did not work as it prints both node-sets and text-nodes, that
>> is why I replied back again (so I tried your suggestion) and I thought
>> of explaining it in a better way with my actual scenario because in my
>> first mail I just said that I have 3 conditions. So it was already a
>> complicated problem I did not post a new one.
>>
>
> Can you expain what goes wrong, you say "it prints both node-sets and
> text-nodes", which part goes wrong?
>
> I see that the original code has
>
>
>   <xsl:template match="text()" />
>
> if you want that to happen for a mode as well then you need to add
>
>   <xsl:template match="text()" mode="step2"/>

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.