Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: XSL:Count on a passed parameter >Thread Next - Re: XSL:Count on a passed parameter Re: XSL:Count on a passed parameterTo: NULL Date: 7/30/2008 10:19:00 AM There certanly is no runtime error I use $IdenticalList/root/list/sku pattern in about 10 of the stylesheets that I have running. I just have not done a count() on it yet. "Martin Honnen" wrote: > Kevin Burton wrote: > > I am using the XSLT processor that .NET uses. > > ..NET has two XSLT processors, System.Xml.Xsl.XslTransform and > System.Xml.Xsl.XslCompiledTransform. > > > I am assuming that it is with > > the latest version of MSXML. > > MSXML is not part of the .NET framework. > > > When I form the XML string and pass it as an > > argument it seems that the XSLT processor (at least with .NET) > > "automatically" turns it into an XmlDocument. > > Sorry, but that is certainly not the case. If you pass in a .NET string > with the AddParam method then the stylesheet sees it as an XPath string. > Or how exactly do you use your XSLT processor and pass in arguments? If > you are really using .NET then you do that by calling the AddParam > method of an XsltArgumentList and passing that XsltArgumentList to the > Transform method. > > I am not sure what you are doing exactly, passing in a string for param > foo and then doing $foo/someXpath should give a runtime error. > > I think you need to provide details of the code you use, currently it is > not clear to me exactly what you are doing. > > > -- > > Martin Honnen --- MVP XML > http://JavaScript.FAQTs.com/ > | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
