![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
#4
| |||
| |||
|
|
Hi Rob, I tried the xml and the xslt on my machine. However, when I load the xml and do the xslt in the browser, and error "Namespace 'http://exslt.org/common' does not contain any functions." is generated. Can you load it from IE on you r machine.? Kevin Yu ======= "This posting is provided "AS IS" with no warranties, and confers no rights." |
#5
| |||
| |||
|
#6
| |||
| |||
|
|
Hi Rob, I was downloading the fxsl-1.2.zip from that website and was doing exactly the same thing as you stated. But when I open the xml file in IE, the following error appears. The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. ---------------------------------------------------------------------------- ---- Namespace 'http://exslt.org/common' does not contain any functions. Could you try to contact the author of this library for more information? Kevin Yu ======= "This posting is provided "AS IS" with no warranties, and confers no rights." |
#7
| |||
| |||
|
#8
| |||
| |||
|
|
Hi Rob, I changed to 1.1 version and another error was generated during opening it from IE. The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. ---------------------------------------------------------------------------- ---- Reference to variable or parameter 'vrtfIterMinus' must evaluate to a node list. Could you please send me a package that works fine on you machine by email? Remove 'online' from the nospam alias is my email address. Kevin Yu ======= "This posting is provided "AS IS" with no warranties, and confers no rights." |
#9
| |||
| |||
|
#10
| |||
| |||
|
|
Hi Rob, Thank you very much for your repro sample. I tried it on my machine, and it is behaving exactly as you stated. Based on my research, it is an issue in the XSLT in .Net 1.1. Now I have comfirmed that it has been fixed in the NET 2.0 XslCompiledTransform class. Here is an example for .NET 2.0. Again, thanks for your feedback and your patience! :-) ' Create the XslTransform and load the stylesheet. Dim m_xmlDom As New XmlDataDocument m_xmlDom.Load("D:\New Folder\randomListTest.xml") Dim s As New XsltSettings(True, True) Dim xslt As XslCompiledTransform = New XslCompiledTransform() Dim resolver As New XmlUrlResolver() resolver.Credentials = CredentialCache.DefaultCredentials xslt.Load("D:\New Folder\randomListTest.xsl", s, resolver) ' Create an XsltArgumentList. Dim xslArg As XsltArgumentList = New XsltArgumentList ' Add parameters 'xslArg.AddParam("firstelement", "", iElement.ToString()) 'xslArg.AddParam("elementsperpage", "", m_iElementsPerPage.ToString()) 'Create an XmlTextWriter to handle the output, but put it in a string. Dim sb As StringBuilder = New StringBuilder Dim sw As StringWriter = New StringWriter(sb) Dim xw As XmlTextWriter = New XmlTextWriter(sw) 'Transform the file. *** This line hangs. *** xslt.Transform(m_xmlDom.CreateNavigator(), xslArg, xw) 'Get the output Me.TextBox1.Text = sb.ToString() Kevin Yu ======= "This posting is provided "AS IS" with no warranties, and confers no rights." |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |