This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Invalid characters in xsl:element


Thanks for the response, Mike.

However, when I try the following:

	<xsl:element name="{substring-before(substring-after(.
,'!'),'!')}">
	</xsl:element>

I get the following message:
	To create nodes of type 'ELEMENT', a valid name must be
specified.

Thanks,
Jason

p.s. My parser is MSXML version 3.

-----Original Message-----
From: Michael Kay [mailto:mhkay@iclway.co.uk]
Sent: Tuesday, May 22, 2001 12:18 PM
To: xsl-list@lists.mulberrytech.com
Subject: RE: [xsl] Invalid characters in xsl:element


> 
> When I use the following to get the tag name:
> 	 <xsl:element name="substring-after(substring-after(.
> ,'!'),'!')">
> 	</xsl:element>
> 
You need curly brackets around the expression:
xsl:element name="{...}"

Mike Kay

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]