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

Re: Providing a value for the 'select' attribute

Subject: Re: Providing a value for the 'select' attribute
From: "Mark" <mark@xxxxxxxxxxxx>
Date: Mon, 3 Oct 2011 14:38:20 -0700
Re:  Providing a value for the 'select' attribute
Thanks Ken.

Because all the variables I had constructed using the select="some text" idiom seemed to have no value when accessed, I adopted the text node approach. I'll go back and look at my old code now to see if there was another reason for the value-setting failure.
Mark


-----Original Message----- From: G. Ken Holman
Sent: Monday, October 03, 2011 2:26 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: Providing a value for the 'select' attribute


At 2011-10-03 14:19 -0700, Mark wrote:
I have been using the following idiom when providing a value for C"b,EselectC"b,B in statements like <xsl:param>, <xsl:variable>, etc., when the value provided is not an xsl object. Is this correct or is some other form preferred?

<xsl:param name="file-type">
   <xsl:text>.htm</xsl:text>
</xsl:param>

The above is a text node, as is this:


<xsl:param name="file-type">.htm</xsl:param>

This is slightly different in that it is a string:

<xsl:param name="file-type" select="'.htm'"/>

But for your use that difference is nuanced based
only on how the item is stored in memory.

I hope this helps.

. . . . . . Ken


-- Contact us for world-wide XML consulting and instructor-led training Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Google+ profile: https://plus.google.com/116832879756988317389/about Legal business disclaimers: http://www.CraneSoftwrights.com/legal

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.