#298 "Invalid QName" on xsl:element name="{}"

v8.2
closed
5
2012-10-08
2005-02-01
Michael Kay
No

If the name attribute of xsl:element is written using
curly braces, but its value is a compile-time string
literal, for example

<xsl:element name="{'pre:local'}">

Saxon fails with a compile-time error saying the QName
is invalid.

The same problem occurs in xsl:attribute.

Source fix: change line 84 of
net.sf.saxon.style.XSLElement.java from

if (!Name.isQName(nameAtt)) {

to

if
(!Name.isQName(((StringValue)elementName).getStringValue()))
{

with the equivalent change at line 64 of
net.sf.saxon.style.XSLAttribute.java

Discussion

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks