Re: [WSG] reference entity "year" end with ; ???

2004-05-12 Thread Rimantas Liubertas
>It's frustrating as it can be very difficult to find information about 
>these things via Google.
>Anyways, I'm getting alot of error messages when I validate - in 
>particular I'm getting messages like this:
>
>
>7. Line 50, column 40: cannot generate system identifier for general 
>entity "year"
>href="?month=4&year=2004&a=Home">«
<...>

>Oi vey, wondering what I'm doing with this stuff anymore...
>Can somebody shed some light on these messages?

Yes :)
All links in your (x)html should be url-encoded. That means, if you 
have link that looks like xyz.php?var1=some&var2=thing in your source
it should look like this: xyz.php?var1=some&var2=thing

Note the & instead of "&". Validators sees & and expects it to be some entity.
Those look like &something;, 'something' being name of the entity. 
Hence the complain about entity year.

Always write variable delimiters as & in your links and validator will stay happy.
Or you can use semicolons for the same purpose.

Regards,
Rimantas
*
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
*



Re: [WSG] reference entity "year" end with ; ???

2004-05-12 Thread Vaska . WSG
Thanks Justin,

It's clear to me.  But what I can't figure out is why I've never 
noticed this one before?  Really...I'm just amazed this hasn't crossed 
my path before...

It will probably only take a couple of hours to make all the changes, 
not very much in the grand scheme of things...v

On 12 May 2004, at 17:29, Justin French wrote:

Vaska,

The answer is simple.  Your URLs contain ampersands (&), which are a 
character which cannot be used directly in HTML.  Why?  Because it's 
used for entities, like & and © and —.

Without boring you with the details, you need to use 
"?month=4&year=2004&a=Home", not "?month=4&year=2004&a=Home" 
to pass validation (hence write well-formed HTML).

No, the validator is not broken or wrong.
Yes, I know every book tells you to use a plain ampersand.
Yes I know it works in most browsers and situations today, but plain 
ampersands are not correct :)

If it's a huge deal to re-write your application at this point, you 
might consider writing a quick function (in PHP, I'd use ob_start() 
with a call back function with a regex to replace all the problematic 
ampersands in URLs on the way to the browser), but your mileage may 
vary.  You're better off getting it right now, rather than relying on 
such a beast.

Justin
*
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
* 



Re: [WSG] reference entity "year" end with ; ???

2004-05-12 Thread Vaska . WSG
Thanks, all of this is just making more stupid by the second... ;)

On 12 May 2004, at 17:15, Chatham, Will wrote:

What it's trying to say is that you need to change your '&' to the 
'&'
entity in your URL's.  The XHTML validator is trying to parse &year, 
which
isn't valid.  Check out this (Section C12) for more info:
http://www.w3.org/TR/xhtml1/

Will Chatham
*
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
* 



Re: [WSG] reference entity "year" end with ; ???

2004-05-12 Thread Justin French
Vaska,

The answer is simple.  Your URLs contain ampersands (&), which are a 
character which cannot be used directly in HTML.  Why?  Because it's 
used for entities, like & and © and —.

Without boring you with the details, you need to use 
"?month=4&year=2004&a=Home", not "?month=4&year=2004&a=Home" to 
pass validation (hence write well-formed HTML).

No, the validator is not broken or wrong.
Yes, I know every book tells you to use a plain ampersand.
Yes I know it works in most browsers and situations today, but plain 
ampersands are not correct :)

If it's a huge deal to re-write your application at this point, you 
might consider writing a quick function (in PHP, I'd use ob_start() 
with a call back function with a regex to replace all the problematic 
ampersands in URLs on the way to the browser), but your mileage may 
vary.  You're better off getting it right now, rather than relying on 
such a beast.

Justin

On 13/05/2004, at 1:03 AM, Vaska.WSG wrote:

It's frustrating as it can be very difficult to find information about 
these things via Google.
Anyways, I'm getting alot of error messages when I validate - in 
particular I'm getting messages like this:

7.  	Line 50, column 40: cannot generate system identifier for general 
entity "year"
«
[snip]

Oi vey, wondering what I'm doing with this stuff anymore...
Can somebody shed some light on these messages?
---
Justin French
http://indent.com.au
*
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
* 



Re: [WSG] reference entity "year" end with ; ???

2004-05-12 Thread Manuel González Noriega
El mié, 12-05-2004 a las 17:03, Vaska.WSG escribió:
>
> 7.Line 50, column 40: cannot generate system identifier for general 
> entity "year"
>  href="?month=4&year=2004&a=Home">«
 
> 
> Oi vey, wondering what I'm doing with this stuff anymore...
> Can somebody shed some light on these messages?
> 

Convert your '&' to the & entity

(a bunch of similar emails are heading your way in this very moment :)

-- 
Manuel trabaja para Simplelógica, construcción web
(+34) 985 22 12 65 http://simplelogica.net 

*
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
*



RE: [WSG] reference entity "year" end with ; ???

2004-05-12 Thread Chatham, Will
What it's trying to say is that you need to change your '&' to the '&'
entity in your URL's.  The XHTML validator is trying to parse &year, which
isn't valid.  Check out this (Section C12) for more info:
http://www.w3.org/TR/xhtml1/



Will Chatham






> -Original Message-
> From: Vaska.WSG [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, May 12, 2004 11:04 AM
> To: [EMAIL PROTECTED]
> Subject: [WSG] reference entity "year" end with ; ???
> 
> 
> It's frustrating as it can be very difficult to find 
> information about 
> these things via Google.
> Anyways, I'm getting alot of error messages when I validate - in 
> particular I'm getting messages like this:
> 
> 
> 7.Line 50, column 40: cannot generate system identifier 
> for general 
> entity "year"
>  href="?month=4&year=2004&a=Home">«
> 
> 8.Line 50, column 40: general entity "year" not defined and no 
> default entity
>  href="?month=4&year=2004&a=Home">«
> 
> 9.Line 50, column 44: reference not terminated by REFC delimiter
>  href="?month=4&year=2004&a=Home">«
> 
> 10.   Line 50, column 44: reference to external entity in attribute 
> value
>  href="?month=4&year=2004&a=Home">«
> 
> 11.   Line 50, column 44: reference to entity "year" for which no 
> system identifier could be generated
>  href="?month=4&year=2004&a=Home&q=index">« 
> 12.   Line 50, column 39: entity was defined here
>  href="?month=4&year=2004&a=Home">«
> 
> 
> Oi vey, wondering what I'm doing with this stuff anymore...
> Can somebody shed some light on these messages?
> 
> v
> 
> *
> The discussion list for http://webstandardsgroup.org/
> See http://webstandardsgroup.org/mail/guidelines.cfm
> for some hints on posting to the list & getting help
> * 
> 
> 
*
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
* 



[WSG] reference entity "year" end with ; ???

2004-05-12 Thread Vaska . WSG
It's frustrating as it can be very difficult to find information about 
these things via Google.
Anyways, I'm getting alot of error messages when I validate - in 
particular I'm getting messages like this:

7.  	Line 50, column 40: cannot generate system identifier for general 
entity "year"
«

8.  	Line 50, column 40: general entity "year" not defined and no 
default entity
«

9.  	Line 50, column 44: reference not terminated by REFC delimiter
«

10.  	Line 50, column 44: reference to external entity in attribute 
value
«

11.  	Line 50, column 44: reference to entity "year" for which no 
system identifier could be generated
«

12.  	Line 50, column 39: entity was defined here
«

Oi vey, wondering what I'm doing with this stuff anymore...
Can somebody shed some light on these messages?
v

*
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
*