Subject: Re: concat From: "f.merle" <f.merle@xxxxxxxxxxxxxxxx> Date: Mon, 09 Aug 1999 09:00:07 +0100 |
I use <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl" xmlns="http://www.w3.org/TR/REC-html40" result-ns=""> as XSL processor. IE5 tell me that I can't use xsl:text. If I change my xsl processor, I think that the template I did will not work again. Is there another xslprocessor (that can work with xsl:text ant usual templates)? Mike Brown a écrit : > > I would like to concat the href I want with VdkVgwKey. > > for example: <CHAMP NAME="VdkVgwKey">phlo.xml</CHAMP> > > <CHAMP NAME="Titre">GLOSSAIRE</CHAMP> > > and my result is :<A > > href="http://pc_merle/servlets/param?phlo.xml">glossaire</A> > > You don't need to use concat() for this. > > <A href="http://pc_merle/servlets/param?{$foo}"> > <xsl:value-of select="$bar"/> > </A> > > Replace $foo with an XPath that will match phlo.xml, and > replace $bar with an XPath that will match GLOSSAIRE. > > Or, the way you are doing it, you could write it like this: > > <xsl:template match="CHAMP[(@NAME='VdkVgwKey')]"> > <A> > <xsl:attribute name="href"> > <xsl:text>http://pc_merle/servlets/param?"</xsl:text> > <xsl:value-of select="."/> > </xsl:attribute> > <xsl:value-of select="../CHAMP[(@NAME='Titre')]"/> > </A> > > Are the ()'s necessary in your paths? > > > The other problem is if I put at the beginnig: <xsl:stylesheet > > xmlns:xsl="http://www.w3.org/XSL/Transform/1.0">, all the xml > > which was > > printed on my screen dissapear !!! > > What XSL processor are you using? How are you invoking it? > > 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: concat, Mike Brown | Thread | TEI XSL stylesheets, and PassiveTeX, Sebastian Rahtz |
Re: XSL controversy, Miloslav Nic | Date | concat 2, f.merle |
Month |