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 name 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 nodeset. selects 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 file:///c:/workspace/accessfiberimpl/corbainterface/interop/etc.... <?xml:stylesheet type="text/xsl" href="C:\workspace\accessfiberimpl\corbainterface\interop\etc\stylesheets\tn msData2afiop.xsl" ?> <TNMSData xmlns="x-schema:C:\WINNT\TNMSDataSchema.xml David _____________________________________________________________________ This message has been checked for all known viruses by Star Internet delivered through the MessageLabs Virus Scanning Service. For further information visit http://www.star.net.uk/stats.asp or alternatively call Star Internet for details on the Virus Scanning Service. XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] FW: Empty node set when names, trang_nguyen | Thread | [xsl] Transforming XML to fixed for, Varley, Roger |
[xsl] Transforming XML to fixed for, Varley, Roger | Date | [xsl] Getting Node Name, Mukul . Mudgal |
Month |