NeatHTML Error

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
4/23/2006 11:47:43 AM
Gravatar
Total Posts 7

NeatHTML Error

 

When attempting to bring up the Forums page, I get the following error:

Reference to undeclared attribute group 'http://www.w3.org/1999/xhtml:Common.attrib'. An error occurred at file:///E:/Applications/MojoPortalApp/mojoportal/Web/NeatHtml/schema/xhtml-inlphras-1.xsd, (186, 6).

Any ideas?  I'm attempting to debug the instantiation of this XSD, but cannot due to the issue detailed in my previous post.

 

thanks,

Ryan Belkot

 

4/23/2006 11:59:16 AM
Gravatar
Total Posts 18439

Re: NeatHTML Error

Hi Ryan,

Glad you can debug now maybe that will help pinpoint the problem. Dean Brettle is the author of NeatHtml, I'm sure he will respond to this post and try to help when he gets a chance.

btw
Are you using code from svn trunk or the .zip from novell  forge?
Which data layer are you using?

Joe
4/23/2006 12:18:38 PM
Gravatar
Total Posts 7

Re: NeatHTML Error

 

yes, I checked his page, but he does not appear to have a forum like the one you have here.

i'm using the latest .zip release and the MySQL data layer.  Also, i downloaded Dean's latest .zip release and updated the mojoSolution with that project...  but the condition still exists.

I run Ankh for connecting to my local svn repository, but have not attempted connecting to a remote repository (yet).  But I may later this evening when I return to this. 

 

thanks,

Ryan Belkot

4/23/2006 2:15:24 PM
Gravatar
Total Posts 148

Re: NeatHTML Error

Hi Ryan,

Which version of mojoPortal are you using?  1.0.x or 2.0.x?

Thanks,

--Dean
4/23/2006 2:35:37 PM
Gravatar
Total Posts 148

Re: NeatHTML Error

FYI, Common.attrib is defined in xhtml-attribs-1.xsd,
which is included by xhtml-framework-1.xsd,
which is included by xhtml11-modules-1.xsd,
which is included by NeatHtml.xsd,
which is what mojoportal actually references. 

mojoportal expects all of those files to be under APPROOT/NeatHtml/schema/ which in your case appears to correspond to:

E:/Applications/MojoPortalApp/mojoportal/Web/NeatHtml/schema/xhtml-inlphras-1.xsd


Can you confirm that all of the above files are present in your installation?

--Dean
4/23/2006 6:17:37 PM
Gravatar
Total Posts 7

Re: NeatHTML Error

 

Dean:

Thanks for your quick response.  I'm running version 1.0.1 from the zipped source files.

I do have all the files in the location below.  However, when I attempt to view xhtml-attribs-1.xsd in the IDE, i get the following error:

"The XML Designer encountered the following error while reading this file:  This is a reserved namespace.  Line 4 Position 12.  Please return to source view and correct these errors."

Within the <xs:schema> tag, Line 4 Reads:  xmlns:xml=http://www.w3.org/XML/1998/namespace

On a hunch, I changed this to 1999, but still received the error in both the schema view and upon debug.

 

thanks,

Ryan Belkot

4/23/2006 7:24:06 PM
Gravatar
Total Posts 18439

Re: NeatHTML Error

The error you saw when you tried to open the file in VS is just VS being stupid.  You should ignore it.  If you want to open the xsd files you'll probably have better luck with Notepad.  For now, to avoid getting misleading results from future tests, please restore the xsd files to their original state (e.g. by copying over them with the ones from the zip archive).

My best guess at the moment is that there might be something a little odd about your installation.  What version of the .NET Framework is mojoPortal running under?  Since you are using VS2003, I'm guessing it is 1.1, but I'm curious what the full version is.  If you recreate the original error, the full version number of the .NET Framework should be at the bottom of the error page.  Any chance you are running an old version of .NET 1.1 or some beta version .NET 2.0?

--Dean
4/26/2006 1:19:04 PM
Gravatar
Total Posts 7

Re: NeatHTML Error

 

Dean:

Thanks for helping look into this...  I'm really excited to get this site up and running.

After doing more research, i saw that 1999 is certainly not a valid value...  so the XSDs have been restored.

I'm running .NET version 1.1.4322.573

Also, here's the Stack Trace:

[XmlSchemaException: Reference to undeclared attribute group 'http://www.w3.org/1999/xhtml:Common.attrib'. An error occurred at file:///E:/Applications/MojoPortalApp/mojoportal/Web/NeatHtml/schema/xhtml-inlphras-1.xsd, (186, 6).]
   System.Xml.Schema.Compiler.SendValidationEvent(XmlSchemaException e, XmlSeverityType severity) +94
   System.Xml.Schema.Compiler.CompileAttributeGroup(XmlSchemaAttributeGroup attributeGroup) +935
   System.Xml.Schema.Compiler.CompileTo(SchemaInfo schemaInfo) +594
   System.Xml.Schema.XmlSchema.Compile(XmlSchemaCollection collection, XmlNameTable nameTable, SchemaNames schemaNames, ValidationEventHandler validationEventHandler, String targetNamespace, SchemaInfo schemaInfo, Boolean compileContentModel, XmlResolver resolver) +187
   System.Xml.Schema.XmlSchema.Compile(ValidationEventHandler validationEventHandler) +218
   Brettle.Web.NeatHtml.XssFilterInfo..ctor(String schemaLocation) in e:\applications\mojoportalapp\mojoportal\neathtml\dotnet\brettle.web.neathtml\xssfilterinfo.cs:47
   Brettle.Web.NeatHtml.XssFilter.GetForSchema(String schemaLocation) in e:\applications\mojoportalapp\mojoportal\neathtml\dotnet\brettle.web.neathtml\xssfilter.cs:42
   mojoPortal.Web.SiteUtils.PreventCrossSiteScripting(String htmlString) in E:\Applications\MojoPortalApp\mojoportal\Web\Components\SiteUtils.cs:1266
   ASP.ForumModule_ascx.__DataBind__control8(Object sender, EventArgs e) in E:\Applications\MojoPortalApp\mojoportal\Web\Modules\ForumModule.ascx:39
   System.Web.UI.Control.OnDataBinding(EventArgs e) +66
   System.Web.UI.Control.DataBind() +26
   System.Web.UI.Control.DataBind() +86
   System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) +127
   System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource) +474
   System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) +48
   System.Web.UI.WebControls.Repeater.DataBind() +23
   mojoPortal.Web.ForumModule.PopulateControls() in e:\applications\mojoportalapp\mojoportal\web\modules\forummodule.ascx.cs:55
   mojoPortal.Web.ForumModule.Page_Load(Object sender, EventArgs e) in e:\applications\mojoportalapp\mojoportal\web\modules\forummodule.ascx.cs:48
   System.Web.UI.Control.OnLoad(EventArgs e) +67
   System.Web.UI.Control.LoadRecursive() +35
   System.Web.UI.Control.LoadRecursive() +98
   System.Web.UI.Control.LoadRecursive() +98
   System.Web.UI.Control.LoadRecursive() +98
   System.Web.UI.Control.LoadRecursive() +98
   System.Web.UI.Control.LoadRecursive() +98
   System.Web.UI.Page.ProcessRequestMain() +720

Thanks,

Ryan

 

4/27/2006 4:25:45 AM
Gravatar
Total Posts 148

Re: NeatHTML Error

Sorry for the delay in responding.  I've been trying to reproduce the problem but haven't been able to.  Here are 2 things you can try/check:

1. Ensure that all of your xsd files are readable by the ASP.NET worker process.  If you just ensure that they all have the same permissions as NeatHtml.xsd, that should be sufficient since that is clearly readable.

2. Upgrade to the latest version of .NET Framework 1.1.  I'm running 1.1.4322.2300 but you are running 1.1.4322.573.  I'm not sure what differences, if any, there are between the two.

--Dean

4/27/2006 6:30:42 PM
Gravatar
Total Posts 7

Re: NeatHTML Error

 

Dean:

Don't sweat the delay; I appreciate the support and your contribution to OS.  Besides, I have a day job and only get to work on this in the evenings... ;)

I tried upgrading to version 1.1.4322.2032, as well as assigning ASPNET read access to the entire solution directory, and the error persisted.

So I decided to go directly to the source...  after getting the latest mojoportal version from the repository, it worked like a charm.  I guess there may be an issue with the zipped source.

thanks again,

Ryan Belkot

You must sign in to post in the forums. This thread is closed to new posts.