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]

RE: < problem


Thomas,

First of all, you have a couple of typos, the $ in front of the second lt,
and you're missing the second > after the /a. Once you fix that, this
should work fine.

Now, if the problem is still there, you may have an issue with recursive
calls to the link element. The disable-output-escaping attribute is not
recursive, meaning it loses it's value outside of the current context. So if
you are using <xsl:value-of> inside another <xsl:value-of>, both should have
the disable-output-escaping set to "yes". (Remember, if it's not set it
defaults to "no").

A variable with the value of "link" using disable-output-escaping will also
lose the "disablement" if you call the variable without
disable-output-escaping set to "yes":

<xsl:variable name="test">
<xsl:value-of disable-output-escaping="yes" select="//link"/>
</xsl:variable>

<xsl:template match="/">
<xsl:value-of select="$test"/>
</xsl:template>

Even though the output-escaping of the variable is disabled, calling the
value of $test without disable-output-escaping changes it back to escaped.


--------------
Zarella Rendon
Principal Consultant
HMM Consulting International, Inc.
DTDs/schemas - conversion - ebooks - publishing - Web - B2B - training
<URL: http://www.hmmci.com/ >
zarella@hmmci.com



> -----Original Message-----
> From: owner-xsl-list@lists.mulberrytech.com
> [mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of thomas george
> Sent: Monday, October 29, 2001 1:25 PM
> To: xsl-list@lists.mulberrytech.com
> Subject: [xsl] &lt; problem
>
>
> Hi Guys,
>            I have a very silly problem sorry for the
> ignorance. I have an xml element which goes as below
>
> <link>This link do a &lt;a href="click.pdf"&gt;click
> $lt;/a</link>   .
>
> and my style is as below
> <xsl:value-of disable-output-escaping = "yes"
> select="normalize-space(link)"/>
>
> but the output does not give me a link in the html it
> still gives me the same out put without a link with
> entity references as below
>
> This link do a &lt;a href="click.pdf"&gt;click $lt;/a
>
> am i dooing something wrong or am i missing something
> please correct me.
>
> Thanx
> Thomas
>
> __________________________________________________
> Do You Yahoo!?
> Make a great connection at Yahoo! Personals.
> http://personals.yahoo.com
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 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]