At 01/01/18 16:39 -0500, Pascal Landry wrote:
>I wanna know how exactly to use variables in XSLT. I saw a lot of exemples
>on the net but I've never been able to use them.
XSL, XSLT and XPath questions would be better posted to the following list:
There are a number of subscribers who would enthusiastically respond to
There is also an *excellent* FAQ at:
>--What I know is :
>declaration : <xsl:variable name="nameofit" select="valueofit"/>
Careful with the above, you are asking for the value of a child element
named "valueofit" which I suspect is not what you want.
>or : <xsl:variable name="nameofit">value of it</xsl:variable>
Co-incidentally acceptable, but for string values it is better as:
<xsl:variable name="nameofit" select="'valueofit'"/>
>call it : $nameofit
>--What I don't know :
>Why can't I make it work !!!! I alwais get error when I try...
>Which name space should I use ?
If you are using the old Microsoft code, then helpful information regarding
the latest Microsoft MSXML DLL can be found at:
I hope this helps.
G. Ken Holman mailto:[log in to unmask]
Crane Softwrights Ltd. http://www.CraneSoftwrights.com/l/
Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (Fax:-0995)
Web site: XSL/XML/DSSSL/SGML/OmniMark services, training, products.
Book: Practical Transformation Using XSLT and XPath ISBN1-894049-05-5
Article: What is XSLT? http://www.xml.com/pub/2000/08/holman/index.html
Next public instructor-led training: 2001-01-27,2001-02-21,
NB: Monday deadline for early-bird pricing for 3-day hands-on training.