Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 15th, 2004, 07:50 PM
Authorized User
 
Join Date: Mar 2004
Location: Benicia, CA, USA.
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.

  #2 (permalink)  
Old March 16th, 2004, 12:17 PM
Authorized User
 
Join Date: Mar 2004
Location: Benicia, CA, USA.
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.

 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 09:10 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.