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

RE: < problem

Subject: RE: < problem
From: "Zarella Rendon" <zarella@xxxxxxxxxxxxx>
Date: Mon, 29 Oct 2001 21:28:53 -0600
lt problem
Thomas,

First of all, you have a couple of typos, the $ in front of the second lt,
and you're missing the second &gt; 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@xxxxxxxxx



> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of thomas george
> Sent: Monday, October 29, 2001 1:25 PM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  &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


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.