[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: concat
> 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|