[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
varun bhatnagar varun292006@xxxxxxxxx wrote:
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"/>
Re: [xsl] Calling xsl: template through mode attribute prints only text nodes
Subject: Re: [xsl] Calling xsl: template through mode attribute prints only text nodes From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Fri, 29 Aug 2014 10:09:00 -0000 |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Calling xsl: template thr, varun bhatnagar varu | Thread | [xsl] Code to Translate XSLT Functi, Eliot Kimber ekimber |
Re: [xsl] Calling xsl: template thr, varun bhatnagar varu | Date | Re: [xsl] Code to Translate XSLT Fu, Dimitre Novatchev dn |
Month |