Wrox Programmer Forums
|
BOOK: ASP.NET Website Programming Problem-Design-Solution
This is the forum to discuss the Wrox book ASP.NET Website Programming: Problem - Design - Solution, Visual Basic .NET Edition by Marco Bellinaso, Kevin Hoffman; ISBN: 9780764543869
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET Website Programming Problem-Design-Solution section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 15th, 2004, 07:50 PM
Authorized User
 
Join Date: Mar 2004
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default XML Navigator trouble

I am having trouble with my xml file - hoping someone can point me in the right direction.

With the render method in my Navigator.vb set per the .net render thread posted here
Code:
 With xslt
                .Load(xdoc, Nothing, Me.GetType().Assembly.Evidence)
            End With

I get the following error:

file:///C:/Web2/ARSurvey/Config/NavMenu.xml(2,2) :

System.Xml.Xsl.XsltCompileException: file:///C:/Web2/ARSurvey/Config/NavMenu.xml(2,2) :
 ---> System.Xml.Xsl.XsltException: Missing mandatory attribute 'version'.
   at System.Xml.Xsl.ContainerAction.CompileSingleTempla te(Compiler compiler)
   at System.Xml.Xsl.ContainerAction.CompileDocument(Com piler compiler, Boolean inInclude)
   at System.Xml.Xsl.RootAction.Compile(Compiler compiler)
   at System.Xml.Xsl.Compiler.CreateRootAction()
   at System.Xml.Xsl.Compiler.Compile(NavigatorInput input, XmlResolver xmlResolver, Evidence evidence)
   --- End of inner exception stack trace ---
   at System.Xml.Xsl.Compiler.Compile(NavigatorInput input, XmlResolver xmlResolver, Evidence evidence)
   at System.Xml.Xsl.XslTransform.Compile(XPathNavigator stylesheet, XmlResolver resolver, Evidence evidence)
   at System.Xml.Xsl.XslTransform.Load(XPathNavigator stylesheet, XmlResolver resolver, Evidence evidence)
   at System.Xml.Xsl.XslTransform.Load(IXPathNavigable stylesheet, XmlResolver resolver, Evidence evidence)
   at IHSurvey.ARSurvey.web.Controls.Server.Navigator.Re nder(HtmlTextWriter writer) in C:\Web2\ARSurvey\Controls\Server\Navigator.vb:line 42
   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
   at System.Web.UI.Control.RenderChildren(HtmlTextWrite r writer)
   at System.Web.UI.HtmlControls.HtmlForm.RenderChildren (HtmlTextWriter writer)
   at System.Web.UI.HtmlControls.HtmlContainerControl.Re nder(HtmlTextWriter writer)
   at System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTex tWriter output)
   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
   at System.Web.UI.Control.RenderChildren(HtmlTextWrite r writer)
   at System.Web.UI.Control.Render(HtmlTextWriter writer)
   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
   at System.Web.UI.Page.ProcessRequestMain()


with the render method set to
Code:
With xslt
        .Load(Context.Server.MapPath(myTransformFilePath))
        .Transform(xDoc, Nothing, writer)
      End With

I get the following error:

The '0' character, hexadecimal value 0x30, cannot begin with a name. Line 4, position 59.
System.Xml.XmlException: The '0' character, hexadecimal value 0x30, cannot begin with a name. Line 4, position 59.
   at System.Xml.XmlScanner.ScanName()
   at System.Xml.XmlScanner.ScanMarkup()
   at System.Xml.XmlScanner.ScanToken(Int32 expected)
   at System.Xml.XmlTextReader.SetLiteralValues(XmlAttri buteTokenInfo fld)
   at System.Xml.XmlTextReader.SetAttributeValues()
   at System.Xml.XmlTextReader.ParseElement()
   at System.Xml.XmlTextReader.Read()
   at System.Xml.XmlValidatingReader.ReadNoCollectTextTo ken()
   at System.Xml.XmlValidatingReader.Read()
   at System.Xml.XPath.XPathDocument.ReadChildNodes(XPat hContainer parent, String parentBaseUri, XmlReader reader, PositionInfo positionInfo)
   at System.Xml.XPath.XPathDocument.ReadChildNodes(XPat hContainer parent, String parentBaseUri, XmlReader reader, PositionInfo positionInfo)
   at System.Xml.XPath.XPathDocument.ReadChildNodes(XPat hContainer parent, String parentBaseUri, XmlReader reader, PositionInfo positionInfo)
   at System.Xml.XPath.XPathDocument.Load(XmlReader reader)
   at System.Xml.XPath.XPathDocument..ctor(XmlReader reader, XmlSpace space)
   at System.Xml.Xsl.Compiler.LoadDocument(XmlTextReader reader)
   at System.Xml.Xsl.XslTransform.Load(String url, XmlResolver resolver)
   at System.Xml.Xsl.XslTransform.Load(String url)
   at IHSurvey.ARSurvey.web.Controls.Server.Navigator.Re nder(HtmlTextWriter writer) in C:\Web2\ARSurvey\Controls\Server\Navigator.vb:line 42
   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
   at System.Web.UI.Control.RenderChildren(HtmlTextWrite r writer)
   at System.Web.UI.HtmlControls.HtmlForm.RenderChildren (HtmlTextWriter writer)
   at System.Web.UI.HtmlControls.HtmlContainerControl.Re nder(HtmlTextWriter writer)
   at System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTex tWriter output)
   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
   at System.Web.UI.Control.RenderChildren(HtmlTextWrite r writer)
   at System.Web.UI.Control.Render(HtmlTextWriter writer)
   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
   at System.Web.UI.Page.ProcessRequestMain()


Thanks in advance for your assistance.

 
Old March 16th, 2004, 12:17 PM
Authorized User
 
Join Date: Mar 2004
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Found the problem as being a mistyped xslt in the xsl:template statement I had the match wrong.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Trouble Transforming an XML SOAP Response with XSL wsessoms XSLT 1 December 20th, 2006 01:47 PM
trouble shoot XML SQL ASP.net VB fzilz ADO.NET 1 April 7th, 2004 11:29 PM
Trouble validating an XML document with a Schema cxs00u XML 0 March 2nd, 2004 12:22 PM
XML Transformation Trouble... CreProDes XSLT 2 October 17th, 2003 04:43 AM
XML Traversing using Navigator and Iterator classe jasim XML 1 July 18th, 2003 03:29 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.