Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 20th, 2009, 06:08 AM
Authorized User
 
Join Date: Oct 2009
Posts: 15
Thanks: 3
Thanked 0 Times in 0 Posts
Default How to use parameter value

Hi All,

How ca i use pramater value is SVG's attribute value.

Like below:

[code]

<xsl:template name="gotonext">

<xsl:param name="position"/>
<xsl:param name="size"/>

<text xmlns="http://www.w3.org/2000/svg" id ='Tapehead' x="{position}" y="120" style="font-size:26; font-family:arial; text-anchor:left;baseline-shift:-20">

<xsl:value_of select="$size"/>

</text>

</xsl:template>

I want to use paramter '$position' as the value of 'x' coordinate.

i am using in {} but its showing empty value.

How can i do that ?

Thanks

Hari
 
Old November 20th, 2009, 06:22 AM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

Use x="{$position}" not x="{position}"
__________________
Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer\'s Reference
The Following User Says Thank You to mhkay For This Useful Post:
Hari7 (November 20th, 2009)





Similar Threads
Thread Thread Starter Forum Replies Last Post
how to pass a control parameter and process a return parameter in sqldatasource jayshankar ASP.NET 2.0 Basics 1 January 1st, 2009 10:18 AM
Parameter object malfunction - out parameter dash dev C# 2005 6 December 4th, 2007 12:58 PM
another parameter drachx Crystal Reports 0 October 3rd, 2005 07:52 PM
Parameter shanib Crystal Reports 1 September 30th, 2005 02:35 AM
Parameter Bhavin Crystal Reports 4 September 9th, 2004 10:47 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.