🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: be.comp.programming
Article #2285

Re: [C# .NET] validating XHTML 1.1

#2285
From: Joris Janssens
Date: Wed, 11 Aug 2004 14:06
51 lines
3450 bytes
Joris Janssens formuleerde op dinsdag :
> Ik probeer XHTML 1.1-bestanden te laten valideren met behulp van 
> XmlValidatingReader Maar ik krijg steeds een WebException "(404) Not Found"

Het positieve nieuws is dat ik ondertussen weet waar het misloopt. Ik 
heb een nieuwe XmlUrlResolver gemaakt die toont met welke URL hij bezig 
is.

Dit is de output:
*********************************************
http://localhost:8080/dtd/test.xhtml
http://localhost:8080/dtd/test.xhtml
http://localhost:8080/dtd/test.xhtml
http://localhost:8080/dtd/-//W3C//DTD%20XHTML%201.1//EN
http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd
http://www.w3.org/TR/xhtml-modularization/DTD/xhtml-inlstyle-1.mod
http://www.w3.org/TR/xhtml-modularization/DTD/xhtml-framework-1.mod
http://www.w3.org/TR/xhtml-modularization/DTD/xhtml-notations-1.mod
http://www.w3.org/TR/xhtml-modularization/DTD/xhtml-datatypes-1.mod
http://www.w3.org/TR/xhtml-modularization/DTD/xhtml-qname-1.mod
http://www.w3.org/TR/xhtml-modularization/DTD/xhtml-events-1.mod
http://www.w3.org/TR/xhtml-modularization/DTD/xhtml-attribs-1.mod
http://www.w3.org/TR/xhtml-modularization/DTD/xhtml11-model-1.mod

Unhandled Exception: System.Net.WebException: The remote server 
returned an error: (404) Not Found.
*********************************************

En <http://www.w3.org/TR/xhtml-modularization/DTD/xhtml11-model-1.mod> 
bestaat dus niet, dat moet 
<http://www.w3.org/TR/xhtml11/DTD/xhtml11-model-1.mod> zijn.


<http://www.w3.org/TR/xhtml-modularization/DTD/xhtml-framework-1.mod> 
staat vermeld als een absolute URL in 
<http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd>.

<xhtml-notations-1.mod> en de daarop volgende mods zijn dan weer 
relatieve URL's in 
<http://www.w3.org/TR/xhtml-modularization/DTD/xhtml-framework-1.mod>.

<xhtml11-model-1.mod> is dan weer een relatieve URL in 
<http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd> maar in het programma 
wordt de BaseUri niet aangepast. Er zou dus gedetecteerd moeten worden 
wanneer 
<http://www.w3.org/TR/xhtml-modularization/DTD/xhtml-framework-1.mod> 
verlaten wordt en overeenkomstig de BaseUri aanpassen :-Z

-- 
Joris "flotspe" Janssens *** http://inferno.xhtml.be/
The webmaster who says "ni"
Technical Details
Message-ID: <mn.5bc67d4898d81b58.14768@xhtml.invalid>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!fr.ip.ndsoftware.net!nerim.net!feed1.news.be.easynet.net!ossa.telenet-ops.be!phobos.telenet-ops.be.POSTED!not-for-mail
References: <mn.55897d48e0630dfa.14768@xhtml.invalid>

Show Full Headers
Complete Article Headers
X-Google-Thread: fcea4,45419068d8769232
X-Google-Attributes: gidfcea4,public
X-Google-Language: DUTCH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!fr.ip.ndsoftware.net!nerim.net!feed1.news.be.easynet.net!ossa.telenet-ops.be!phobos.telenet-ops.be.POSTED!not-for-mail
Subject: Re: [C# .NET] validating XHTML 1.1
From: Joris Janssens <spam@xhtml.invalid>
References: <mn.55897d48e0630dfa.14768@xhtml.invalid>
Newsgroups: be.comp.programming
Message-ID: <mn.5bc67d4898d81b58.14768@xhtml.invalid>
Organization: xhtml.be
X-Newsreader: MesNews/1.01.00.00 (windows)
MIME-Version: 1.0
X-Face: #0?irvdFiM!(Tpl}/tO%_kuSW_^9G5aeIEnY1uNPcd@N_U.B30\*[%N-cnqSC,rEfeq\m:b oR({RM{x03]Iv}^2xc7\J][^MkbL3DYdLevZ$&h0WbH!i:>O1i#FLy/mO2G~xMF<YSj^@q9sRC~iP> *uQnfN4xre8v9%0fqg;i.!ymm~6w2nEx);Q~Q*8&dUO(fn
Reply-To: usenet@xhtml.be
Content-Type: text/plain; charset="iso-8859-15"; format=flowed
Content-Transfer-Encoding: 8bit
Lines: 52
Date: Wed, 11 Aug 2004 14:06:08 GMT
NNTP-Posting-Host: 213.224.68.62
X-Complaints-To: abuse@telenet.be
X-Trace: phobos.telenet-ops.be 1092233168 213.224.68.62 (Wed, 11 Aug 2004 16:06:08 MEST)
NNTP-Posting-Date: Wed, 11 Aug 2004 16:06:08 MEST