Re: [xsl] FW: Empty node set when namespace nodes are used

Subject: Re: [xsl] FW: Empty node set when namespace nodes are used
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 24 May 2002 10:35:23 +0100
By adding a namespace declaration to your source you have changed the
of all elements from being in no namespaec to being in your namespace.

<xsl:for-each select="TNMS:TNMSData/NEs/NE"> fails to produce a

all no-namespace-NE children of all  no-namespace-NEs children of
tnms-namespace-TNMSData elements.

I think you want

<xsl:for-each select="TNMS:TNMSData/TNMS:NEs/TNMS:NE"> 

Also the href attribute here is supposed to be a URL not a MSDOS style
file path. Most likely MS products will silently correct this error for
you but other products will not.

You should use

<?xml:stylesheet type="text/xsl"
msData2afiop.xsl" ?>
<TNMSData xmlns="x-schema:C:\WINNT\TNMSDataSchema.xml


This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit or alternatively call
Star Internet for details on the Virus Scanning Service.

 XSL-List info and archive:

Current Thread