[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: NCName:* or QName was expected
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|