Jan,
 
I've now logged this bug at
 
https://sourceforge.net/tracker/index.php?func=detail&aid=2859490&group_id=29872&atid=397617
 
and have committed a patch to the Subversion source.
 
Thanks again for reporting it and producing a simple test case.
 

Regards,

Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay



From: Jan Kovařík [mailto:kovarikjan@gmail.com]
Sent: 07 September 2009 11:52
To: saxon-help@lists.sourceforge.net
Subject: [saxon] version 9.2 bug?

Hi,

im trying new Saxon-HE version and im getting error: Required item type of @name attribute of element is xs:string; supplied value has item type xs:QName(in saxon-B it was ok).
In this function:
<xsl:function name="functx:wrap-values-in-elements" as="element()*"
              xmlns:functx="http://www.functx.com" >
  <xsl:param name="values" as="xs:anyAtomicType*"/>
  <xsl:param name="elementName" as="xs:QName"/>
 
   <xsl:for-each select="$values">
     <xsl:element name="{$elementName}"
                  namespace="{namespace-uri-from-QName($elementName)}">
       <xsl:sequence select="."/>
     </xsl:element>
   </xsl:for-each>
 
</xsl:function>

i Was looking to w3c recommendation and i saw there, that Qname is ok. So am I missing something?
<xsl:element
  name = { qname }
  namespace = { uri-reference }
  use-attribute-sets = qnames>
  <!-- Content: template -->
</xsl:element>

thank you for your help.