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

placing value inbetween quotes in output

Subject: placing value inbetween quotes in output
From: Eric Smith <Eric.Smith@xxxxxxxxxxxx>
Date: Fri, 12 Oct 2001 00:02:30 +0200
placing quotes in xml
Not a very helpful subject line, anyway 
I have xml like the following

<link url="http://whatever.com" text="This is easy to match"/>

and output must be


  <xsl:template match="link">
    <fo:basic-link color="blue" text-decoration="underline"
     external-destination="http://whatever.com">
    This is easy to match
    </fo:basic-link>
  </xsl:template>

if I do this:

  <xsl:template match="link">
    <fo:basic-link color="blue" text-decoration="underline"
     external-destination="<xsl:value-of select="@url"/> ">
          <xsl:value-of select="@text"/>
    </fo:basic-link>
  </xsl:template>

then xalan falls over with the complaint that external-destination
cannot contain '<'

What is a good way to get the @url value inbetween those quotes?

-- 
Eric Smith

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

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.