[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

NCName:* or QName was expected

Subject: NCName:* or QName was expected
From: "Mikael Petterson \(KI/EAB\)" <mikael.petterson@xxxxxxxxxxxx>
Date: Thu, 9 Feb 2006 15:30:25 +0100
expected qname
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.