| Subject: [xsl]  NCName:* or QName was expected From: "Mikael Petterson \(KI/EAB\)" <mikael.petterson@xxxxxxxxxxxx> Date: Thu, 9 Feb 2006 15:30:25 +0100 | 
Hi,
When I try to transform the xml I get the following error:
A node test that matches either NCName:* or QName was expected.
It complains about the folloing line in my xsl:
 <xsl:with-param name="dataType" select="sequence/child::[2]"/>
What am I leaving out?
cheers,
//mikael
xslt
====
<xsl:for-each select="structMember">
			   <xsl:choose>
				<xsl:when test="child::*[name() =
'enumRef']">
				 <xsl:call-template
name="enumValueObject">
				   <xsl:with-param
name="structMemberName" select="@name"/>
				   <xsl:with-param name="enumRefName"
select="enumRef/@name"/>
			     </xsl:call-template></xsl:when>
			    <xsl:when test="child::*[name() =
'sequence']">
				 <xsl:call-template
name="sequenceValueObject">
				   <xsl:with-param name="dataType"
select="sequence/child::[2]"/>
				   <xsl:with-param name="maxCount"
select="sequence/maxLength"/>
				   <xsl:with-param name="value"
select="0"/>
			     </xsl:call-template></xsl:when>
			   <xsl:otherwise>
			   <xsl:call-template
name="objectType"><xsl:with-param name="objectType"
select="following-sibling[2]"/>
		       </xsl:call-template>(<xsl:value-of
select="@name"/>)
			   </xsl:otherwise>
			   </xsl:choose>
			   <xsl:if
test="not(position()=last())">,</xsl:if>
			   </xsl:for-each>
xml
===
<structMember name="eAgchCodes">
   <description>One to four codes.
   </description>
   <sequence>
      <long>
         <range>
            <min>0</min> <max>255</max>
         </range>
      </long>
      <maxLength>4</maxLength>
   </sequence>
</structMember>
| Current Thread | 
|---|
| 
 | 
| <- Previous | Index | Next -> | 
|---|---|---|
| RE: [xsl] help with recursive count, Mikael Petterson \(K | Thread | Re: [xsl] NCName:* or QName was ex, David Carlisle | 
| RE: [xsl] help with recursive count, Mikael Petterson \(K | Date | [xsl] Re: sorting by maximum value , Billie | 
| Month |