In XSL, the curly braces are used to indicate a NodeSet (or possibly a
built-in function) which must be evaluated to get it's value.
For example:
<xsl:template match="a">
<xsl:variable name="foo">Hello World</xsl:variable>
<a href="#" fooValue="{$foo}">...</a>
</xsl:template>
...in this case, the expected output for all the incoming 'a' elements would
be:
<a href="#" fooValue="Hello World">...</a>
Hope this helps.
Brion Swanson
-----Original Message-----
From: Dan Boresjo [mailto:[EMAIL PROTECTED]
Sent: Friday, August 17, 2001 7:55 AM
To: '[EMAIL PROTECTED]'
Subject: Problem with {curly braces} in attributes
Hi,
I am attempting to use xerces-j and xalan-2 to parse xsl stylesheets
containing elements of the form:
<a href="#" onClick="if (condtion1) { if (condition2) return true;}; return
false">...</a>
This keeps throwing an exception "cound not find function: if". The problem
seems to be due to the use of curly braces.
These stylesheets were orginally written for msxml and worked OK there.
Moving these attributes out to xsl:attribute tags works but since we have
several thousand stylesheets with the same problem this could be a very
time-consuming change.
Any help with getting these stylesheets to work with minimal modifications
would be much appreciated.
- Dan
_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]