Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: XSL:Count on a passed parameter

From: KevinBurton@-----------.---------.---
To: 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/
> 


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent