[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: concat

Subject: RE: concat
From: Mike Brown <mbrown@xxxxxxxxxxxxx>
Date: Fri, 6 Aug 1999 11:13:55 -0600
use concat href
> 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
  • concat
    • f.merle - Fri, 06 Aug 1999 13:58:13 +0100
      • <Possible follow-ups>
      • Mike Brown - Fri, 6 Aug 1999 11:13:55 -0600 <=
        • f.merle - Mon, 09 Aug 1999 09:00:07 +0100

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.