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

xsl:import, variables and html

Subject: xsl:import, variables and html
From: "Julio Kriger" <jkriger@xxxxxxxxxxxxxxx>
Date: Tue, 09 Oct 2001 12:30:17 -0300
xsl import variable
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. How can I
fix this?

-----------------------------------------------------------------------
Here is the code of the to be imported xsl (named definitions.xsl):

<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format">

	<xsl:variable name="propaganda1_link">
		<a
href="http://www.bancorio.com.ar/doFrames.jsp?p=/docs/promo/promocion.htm">
		<img src="http://rioonline.bancorio.com.ar/images/banner_promo1.gif "
alt="Super plazo fijo - Banco RIO" width="120" height="60"/>	
		</a> 
	</xsl:variable>

	<xsl:variable name="propaganda1_img">
		<a
href="http://www.bancorio.com.ar/doFrames.jsp?p=/docs/promo/promocion.htm">
		<img src="images/banner_promo1.gif " alt="Super plazo fijo - Banco
RIO" width="120" height="60"/>
		</a> 
	</xsl:variable>

</xsl:stylesheet>

------------------------------------------------------------------------
Here is the code of the xsl that import the above xsl:

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format">

<xsl:import href="definitions.xsl"/>
	<table width="50%" align="center"><tr><td>
	<xsl:choose>
	<xsl:when test="./CONSULTAS/LINKSRCIMG=1">
		<xsl:value-of select="$propaganda1_link"/>
	</xsl:when>
	<xsl:otherwise>
		<xsl:value-of select="$propaganda1_img"/>
	</xsl:otherwise>
	</xsl:choose>
	</td></tr></table>
</xsl:stylesheet>
---------------------------------------------------------------------

************************************************************************
Visite http://www.bancorio.com.ar y tenga el Banco al alcance de su mano.
************************************************************************

NOTA DE CONFIDENCIALIDAD / CONFIDENTIALITY NOTE
Este mensaje (y sus anexos) es confidencial y puede contener informacion
(i) de propiedad exclusiva de Banco Rio de la Plata S.A. sus afiliadas o
subsidiarias; o (ii) amparada por el secreto profesional. Si usted ha
recibido este fax o e-mail por error, por favor comuniquelo
inmediatamente via fax o e-mail y tenga la amabilidad de destruirlo; no
debera copiar el mensaje ni divulgar su contenido a ninguna persona.
Muchas gracias.

This message (including attachments) is confidential. It may also
contain information that (i) is exclusively property of Banco Rio de la
Plata S.A. or its affiliates or subsidiaries; or (ii) is privileged or
otherwise legally exempt from disclosure. If you have received it by
mistake please let us know by fax or e-mail immediately and destroy or
delete it from your files or system; you should also not copy the
message nor disclose its contents to anyone. Thank you.
**************************************************************************

 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.