Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries [Thread Prev] >Thread Next - RE: Moving from MSXML to .NET - document('') doesn't work? Moving from MSXML to .NET - document('') doesn't work?To: NULL Date: 11/5/2004 9:27:00 AM I am porting all code from MSXML4 to .NET parser. It appears that XPath Document() function is not working anymore ?!?! I am passing empty string as the parameter to search within the current XSL document: e.g (in this example, $cvf is always empty): <xsl:template name="conversion"> <!-- unit conversion table --> <units> <convert from="ppm" to="ppt">1000000</convert> <convert from="ppm" to="oz/ton">0.029167</convert> <convert from="ppm" to="mg/kg">1</convert> <convert from="ppb" to="ppm">0.001</convert> <convert from="g" to="mg">1000</convert> <convert from="ppm" to="g/tonne">1</convert> <convert from="ppm" to="%">0.0001</convert> ... <xsl:variable name="cvf"> <xsl:value-of select="document('')//units/convert[@from=$f and @to=$t]"/> </xsl:variable> | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
