Subject: Re: [xsl] node-set in .Net 2.0? From: "M. David Peterson" <m.david@xxxxxxxxxx> Date: Mon, 28 Nov 2005 19:25:54 -0700 |
using System; using System.Xml; using System.Xml.Xsl;
namespace ConsoleApplication1 { class Program { static void Main(string[] args) { XslCompiledTransform xslt = new XslCompiledTransform(); xslt.Load("test.xsl"); xslt.Transform("test.xml", "test.html"); } } }
<?xml version="1.0" encoding="utf-8" ?> <foo> <bar>test</bar> </foo>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns="urn:schemas-microsoft-com:xslt" version="1.0">
Hey
I'm running a node-set heavy transform in .Net, I keep getting the following error:
The 'Function 'ns:node-set()' has failed.' If I change the variable that is creating the node-set not to I get the following error: The expression passed to this method should result in a NodeSet.
the ns namespace is associated with xmlns:ns="urn:schemas-microsoft-com:xslt"
IIRC this namespace was allowed in earlier versions of .NET. Does anyone know if this has changed, has .Net's already arcane nodeset handling rules changed? Does one have to explicitly allow nodesets to be created in ones code?
Cheers, Bryan Rasmussen
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] preceding-sibling includi, andrew welch | Thread | [xsl] Grouping / Count Issue, Miraodb |
Re: [xsl] Request for XSLT2.0 / XML, Soren Kuula | Date | [xsl] IDREFS and key(), Dan Vint |
Month |