This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

placing value inbetween quotes in output


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]