Subject: RE: [xsl] xsl:import, variables and html From: "Michael Kay" <mhkay@xxxxxxxxxxxx> Date: Wed, 10 Oct 2001 11:57:05 +0100 |
You want xsl:copy-of instead of xsl:value-of. Mike Kay > -----Original Message----- > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of > Julio Kriger > Sent: 09 October 2001 16:30 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: [xsl] xsl:import, variables and html > > > 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/pr > omocion.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/pr > omocion.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 > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] xsl:import, variables and, David Carlisle | Thread | RE: [xsl] Environment variable, Michael Kay |
RE: [xsl] Re: Overlapping structure, Michael Kay | Date | RE: [xsl] keys and idrefs - XSLT2 r, Michael Kay |
Month |