Subject: [xsl] xsl:import, variables and html From: "Julio Kriger" <jkriger@xxxxxxxxxxxxxxx> Date: Tue, 09 Oct 2001 12:30:17 -0300 |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Environment variable, Manu KY | Thread | Re: [xsl] xsl:import, variables and, Jeni Tennison |
Re: [xsl] Overlapping structures, Jeni Tennison | Date | Re: [xsl] SVG text element and word, Jiri Jirat |
Month |