Re: struts-config_1_1.dtd error?

2002-10-01 Thread Eddie Bush

Why does Opera ever see the DTD?  ... odd ...  I just open my DTDs up in 
Netbeans personally.  I can't imagine the DTD being seen during app 
execution - I'm guessing you are opening it for reference.

One observation I would make:  Shouldn't we be using an encoding of 
UTF-8?  I thought that was the way to go nowadays ...

David Graham wrote:

 The struts-config_1_1.dtd file starts with this line:

 ?xml version=1.0 encoding=ISO-8859-1?

 which I think is incorrect.  DTDs aren't xml documents so they 
 shouldn't start with that processing instruction.  I'm not an XML 
 expert but Sun's DTDs don't have this line in them and it causes Opera 
 to complain about xml parsing errors when trying to view it.

 Dave 


-- 
Eddie Bush




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: struts-config_1_1.dtd error?

2002-10-01 Thread David Graham

Of course the app never shows the dtd :-).  I went to the dtd url referenced 
by struts-config.xml and got xml parsing errors because of that first 
processing instruction.  Not that I care if Opera chokes on it, but it did 
alert me to the fact that it probably shouldn't be in there.

Dave


From: Eddie Bush [EMAIL PROTECTED]
Reply-To: Struts Developers List [EMAIL PROTECTED]
To: Struts Developers List [EMAIL PROTECTED]
Subject: Re: struts-config_1_1.dtd error?
Date: Tue, 01 Oct 2002 11:34:13 -0500

Why does Opera ever see the DTD?  ... odd ...  I just open my DTDs up in 
Netbeans personally.  I can't imagine the DTD being seen during app 
execution - I'm guessing you are opening it for reference.

One observation I would make:  Shouldn't we be using an encoding of UTF-8?  
I thought that was the way to go nowadays ...

David Graham wrote:

The struts-config_1_1.dtd file starts with this line:

?xml version=1.0 encoding=ISO-8859-1?

which I think is incorrect.  DTDs aren't xml documents so they shouldn't 
start with that processing instruction.  I'm not an XML expert but Sun's 
DTDs don't have this line in them and it causes Opera to complain about 
xml parsing errors when trying to view it.

Dave


--
Eddie Bush




--
To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]




_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: struts-config_1_1.dtd error?

2002-10-01 Thread Eddie Bush

I'm about as stupid as it gets wrt XML/DTDs.  I can use digester to 
instantiate/configure stuff (piece of cake!) but I haven't cured my 
definite lack of knowledge on XML yet ... :-/  I really should too - I 
see a lot of utility in it.

Sorry for asking a stupid question - I just couldn't see how your 
discovery arose :-)

David Graham wrote:

 Of course the app never shows the dtd :-).  I went to the dtd url 
 referenced by struts-config.xml and got xml parsing errors because of 
 that first processing instruction.  Not that I care if Opera chokes on 
 it, but it did alert me to the fact that it probably shouldn't be in 
 there.

 Dave 


-- 
Eddie Bush




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: struts-config_1_1.dtd error?

2002-10-01 Thread James Childers

David Graham wrote:

 The struts-config_1_1.dtd file starts with this line:
 
 ?xml version=1.0 encoding=ISO-8859-1?
 
 which I think is incorrect.  DTDs aren't xml documents so 
 they shouldn't start with that processing instruction.  
 I'm not an XML expert but Sun's DTDs don't have this line 
 in them and it causes Opera to complain about xml 
 parsing errors when trying to view it.

You are correct. DTDs are not XML documents, and are processed quite differently. It 
is because of this and other reasons that schemas were proposed and made a 
recommendation by the W3C. Schemas serve a similar purpose to DTDs, but are themselves 
XML documents.

This explains the difference between the two: http://www.ucc.ie/xml/#schemas

In short, the PI should be removed from the DTD, and Opera's parser was correct to 
complain about it.

-= James

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: struts-config_1_1.dtd error?

2002-10-01 Thread David Graham

Thanks for the link. I've never used xml schema and most xml I've seen is 
validated against a dtd but it's nice that it's there.

Should I post this to bugzilla or does one of the committers want to quickly 
remove that line from the dtd?

Dave


From: James Childers [EMAIL PROTECTED]
Reply-To: Struts Developers List [EMAIL PROTECTED]
To: Struts Developers List [EMAIL PROTECTED]
Subject: RE: struts-config_1_1.dtd error?
Date: Tue, 1 Oct 2002 12:14:18 -0500

David Graham wrote:

  The struts-config_1_1.dtd file starts with this line:
 
  ?xml version=1.0 encoding=ISO-8859-1?
 
  which I think is incorrect.  DTDs aren't xml documents so
  they shouldn't start with that processing instruction.
  I'm not an XML expert but Sun's DTDs don't have this line
  in them and it causes Opera to complain about xml
  parsing errors when trying to view it.

You are correct. DTDs are not XML documents, and are processed quite 
differently. It is because of this and other reasons that schemas were 
proposed and made a recommendation by the W3C. Schemas serve a similar 
purpose to DTDs, but are themselves XML documents.

This explains the difference between the two: 
http://www.ucc.ie/xml/#schemas

In short, the PI should be removed from the DTD, and Opera's parser was 
correct to complain about it.

-= James

--
To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]




_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: struts-config_1_1.dtd error?

2002-10-01 Thread tim_smithers



You will need to get used to schemas tho'. If you have a look at the draft
2.4 servlet spec, they now use a schema instead of a dtd for web.xml.

It's a pity that digester doesn't yet work with registering schema's
(only DTD's) - although you can set a schema.

James Childers wrote:

David Graham wrote:

 The struts-config_1_1.dtd file starts with this line:

 ?xml version=1.0 encoding=ISO-8859-1?

 which I think is incorrect.  DTDs aren't xml documents so
 they shouldn't start with that processing instruction.
 I'm not an XML expert but Sun's DTDs don't have this line
 in them and it causes Opera to complain about xml
 parsing errors when trying to view it.

You are correct. DTDs are not XML documents, and are processed quite
differently. It is because of this and other reasons that schemas were
proposed and made a recommendation by the W3C. Schemas serve a similar
purpose to DTDs, but are themselves XML documents.

This explains the difference between the two:
http://www.ucc.ie/xml/#schemas

In short, the PI should be removed from the DTD, and Opera's parser was
correct to complain about it.

-= James



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]