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

Re: NCName:* or QName was expected

Subject: Re: NCName:* or QName was expected
From: andrew welch <andrew.j.welch@xxxxxxxxx>
Date: Thu, 9 Feb 2006 14:37:49 +0000
ncname or qname
On 2/9/06, Mikael Petterson (KI/EAB) <mikael.petterson@xxxxxxxxxxxx> wrote:
> 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]"/>

        ^^^^^^^^^^^^^^^^^
You haven't selected a child node with "child::[2]".  You've specified
the "axis" child, but not selected any nodes on that axis.

You either need to specify the node you are interested in:

child::mynode[2]   (which can be rewritten as just mynode[2])

or select any node with *

child::*[2]

so it would be:

<xsl:with-param name="dataType" select="sequence/*[2]"/>

cheers
andrew

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.