This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Template problem.Unnecessary text displayed




  hi,
Yeah I executed the xsl and the Text node was not appearing.
Surprisingly even the result was not appearing as shown in the post.
I changed
 <xsl:value-of select="Values"/>
                        to
<xsl:value-of select="text()"/> and  then to <xsl:value-of select="."/>
and both worked.

What could be the reason it didnt work for the first case?

thanks
  Samuel Abraham



---------------------------------------- Message History ----------------------------------------


From: chris@bayes.co.uk@lists.mulberrytech.com on 12/20/2001 08:05 AM GMT

Please respond to xsl-list@lists.mulberrytech.com

DELEGATED - Sent by:     owner-xsl-list@lists.mulberrytech.com


To:   xsl-list@lists.mulberrytech.com
cc:
Subject:  RE: [xsl] Template problem.Unnecessary text displayed


Tarun,
It shouldn't do. Unless you have an apply-templates in your Parameter
template in which case it will use the builtin template and output the
text node.

Ciao Chris

XML/XSL Portal
http://www.bayes.co.uk/xml


> -----Original Message-----
> From: owner-xsl-list@lists.mulberrytech.com
> [mailto:owner-xsl-list@lists.mulberrytech.com] On Behalf Of
> Tarun Saheja
> Sent: 20 December 2001 04:20
> To: Xsl-List (E-mail)
> Subject: [xsl] Template problem.Unnecessary text displayed
>
>
>
> Hi,
>
> When I am creating a template of name say "Parameter", it
> displays the value of the "Parameter" tag on its own on the page.
>
> For eg My XSL is...:
>
> <xsl:template match="Parameter">
>    <tr>
>         <xsl:for-each select="Values">
>              <td>Value of </td>
>              <td><xsl:value-of select="Values"/></td>
>         </xsl:for-each>
>    </tr>
> </xsl:template>
>
>
> My XML is....
>
> <Parameter>
> This is value for the parameter tag
>    <Values>
>         Value1
>    </Values>
>    <Values>
>         Value2
>    </Values>
>    <Values>
>         Value3
>    </Values>
>
> </Parameter>
>
>
> My HTML is displayed in such a manner...
> output starts....
> ----------------------------------------------------------------
> This is value for the parameter tag
>
> Value of     Value1
> Value of     Value2
> Value of     Value3
> ------------------------------------------------------------------
> output ends....
>
> The problem is that I dont want the text "This is value for
> the parameter tag", (as displayed in the output) to be displayed.
>
> Regards,
> Tarun
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>
>


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list




--

This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]