On 2/9/06, Mikael Petterson (KI/EAB)
<mikael(_dot_)petterson(_at_)ericsson(_dot_)com> 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
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--