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

Re: Evaluating text from within an attribute tag

Subject: Re: Evaluating text from within an attribute tag
From: "David N Bertoni/Cambridge/IBM" <david_n_bertoni@xxxxxxxxxx>
Date: Tue, 19 Mar 2002 11:54:38 -0800
attribute tag
Hi Bryan,

You can only use attribute value templates (AVTs) in the attribute values
of certain XSLT elements -- hence the name.  You probably want to do
something like this:

   <xsl:attribute name="d">M <xsl:value-of select="$x_offset"/>
   <xsl:value-of select="$y_offset"/>
   v 73 a 2 2 0 1 1 -4 0 v -73 Z</xsl:attribute>

Dave



|---------+------------------------------------->
|         |           bryan hansen              |
|         |           <bh5k@xxxxxxxxx>          |
|         |           Sent by:                  |
|         |           owner-xsl-list@xxxxxxxxxxx|
|         |           rrytech.com               |
|         |                                     |
|         |                                     |
|         |           03/19/2002 11:29 AM       |
|         |           Please respond to xsl-list|
|         |                                     |
|---------+------------------------------------->
  >----------------------------------------------------------------------------------------------------------|
  |                                                                                                          |
  |        To:      xsl-list@xxxxxxxxxxxxxxxxxxxxxx                                                          |
  |        cc:      (bcc: David N Bertoni/Cambridge/IBM)                                                     |
  |        Subject:  Evaluating text from within an attribute tag                                       |
  >----------------------------------------------------------------------------------------------------------|



This looks similar to a question I asked earlier, but
is infact different. I have a template that I call and
pass in parameters and when I run the template they
aren't getting evaluated, i.e:

<xsl:template name="fill_path">
    <xsl:param name="x_offset" select="0" />
    <xsl:param name="y_offset" select="0" />
    <xsl:param name="fill_percentage" select="0" />
    <xsl:param name="fill_limit" select="0" />

    <xsl:attribute name="d">M {$x_offset} {$y_offset}
v 73 a 2 2 0 1 1 -4 0 v -73 Z</xsl:attribute>

</xsl:template>

The output of this is "...{$x_offset} {$y_offset}..."

Thanks for any help,

Bryan

__________________________________________________
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/

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







 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.