Subject: RE: concat From: Mike Brown <mbrown@xxxxxxxxxxxxx> Date: Fri, 6 Aug 1999 11:13:55 -0600 |
> 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
Current Thread |
---|
<- Previous | Index | Next -> |
---|---|---|
concat, f.merle | Thread | Re: concat, f.merle |
Re: fo:bidi-override - is it necess, Chris Maden | Date | spaces with SAXON, Zsolt Czinkos |
Month |