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:16:00 AM
I am using System.Xml.Xsl.XslCompiledTransform and the arugments are passed
in as:
xslArguments.AddParam("MessageTestList",
string.Empty, MakeDocumentList(messageList));
xslArguments.AddParam("UnrecognizedSkuList", string.Empty,
MakeDocumentList(unrecognizedChildSkus));
xslArguments.AddParam("DocumentTransactionId", string.Empty,
documentTransactionId.ToString());
xslArguments.AddParam("CatalogConnectionString", string.Empty,
catalogConnectionString);
xslArguments.AddParam("IdenticalList",
string.Empty, MakeDocumentList(connectionString,
identicalDocumentTransactionIdDictionary));
xslArguments.AddParam("NotProvidedList",
string.Empty, MakeDocumentList(connectionString,
notprovidedDocumentTransactionIdDictionary));
Where xslArguments is XsltArgumentList. And the function MakeDocumentList
returns the XML string.
Thank you.
Kevin
"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 | |||
|
