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

Re: xsl:import, variables and html

Subject: Re: xsl:import, variables and html
From: Joerg Pietschmann <joerg.pietschmann@xxxxxx>
Date: Tue, 09 Oct 2001 19:20:15 +0200
xsl import variable
"Julio Kriger" <jkriger@xxxxxxxxxxxxxxx> wrote:
> Hi,
> I have this problem. I have an xsl which import another xsl, this last
> have the definitions of variables which have html code. When I try to
> use those variables in the original xsl, it output nothing.
[snip]
> <xsl:variable name="propaganda1_link">
>   <a href="...">
>   ...
> </xsl:variable>

Your variables contain markup, not simple strings, which meas they
actually represent RTFs and therefore ...

>  <xsl:value-of select="$propaganda1_link"/>

... you have to use xsl:copy-of instead of xsl:value-of
to copy their values correctly to the result tree.

  <xsl:copy-of select="$propaganda1_link"/>

Look up the definition of RTF and xsl:value-of in the XSLT
specification or any good XSLT book.

HTH
J.Pietschmann

 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.