Mailing List Archive

xml standard char set? (& minor zope thing ...)
Hi all,

I was wondering about python and the Unicode - ISO/IEC 10646 charset standard for XML. Legal characters are tab, carriage return, line feed, and the legal characters of Unicode and ISO/IEC 10646.

There's a problem when XML is manipulated via browser forms, like f.i. with XMLWidgets. Different browsers, even different OS versions of the same firm (i will use no names but ...) used in different countries (codepages) might well lead to difficulties.
I haven't read everything about it yet - and before i try to do that, is there anyone out there who has? And knows a solution for this?



By the way, just to be the naggin' horse i am, zope is inserting a nasty sub standard entity in my otherwise perfect html-4.01 template:

<base href=".. dot dot dot ..." />

The -->' /> '<-- part is not part of html. Shall i post a fix or will Zope 2.4.2 get rid of this ugly bird.

Greetings






_____________________________________________________________
Get Your Private, Free Email at <A HREF="http://www.burningmail.com" target="_new">http://www.BurningMail.com</A>
Re: xml standard char set? (& minor zope thing ...) [ In reply to ]
On Sat, Oct 20, 2001 at 06:30:24AM -0700, felix slager wrote:
> By the way, just to be the naggin' horse i am, zope is inserting a nasty
> sub standard entity in my otherwise perfect html-4.01 template:
>
> <base href=".. dot dot dot ..." />
>
> The -->' /> '<-- part is not part of html. Shall i post a fix or will
> Zope 2.4.2 get rid of this ugly bird.

The trailing slash is there is to make it compatible with XHTML. The lash
will be seen as an unknown attribute by non-XHTML browsers and ignored. See
the W3C XHTML recommendations.

--
Martijn Pieters
| Software Engineer mailto:mj@zope.com
| Zope Corporation http://www.zope.com/
| Creators of Zope http://www.zope.org/
---------------------------------------------
Re: xml standard char set? (& minor zope thing ...) [ In reply to ]
Martijn Pieters wrote:
> On Sat, Oct 20, 2001 at 06:30:24AM -0700, felix slager wrote:
> > By the way, just to be the naggin' horse i am, zope is inserting a nasty
> > sub standard entity in my otherwise perfect html-4.01 template:
> >
> > <base href=".. dot dot dot ..." />
> >
> > The -->' /> '<-- part is not part of html. Shall i post a fix or will
> > Zope 2.4.2 get rid of this ugly bird.
>
> The trailing slash is there is to make it compatible with XHTML. The lash
> will be seen as an unknown attribute by non-XHTML browsers and ignored. See
> the W3C XHTML recommendations.

Isn't the actual backwards compatibility that there's to be a space
between the / and the >? This ensures that it will be ignored. If
there's actually no space added by Zope I think we should make sure
it does.

Regards,

Martijn
RE: xml standard char set? (& minor zope thing ...) [ In reply to ]
Right; my understanding is that this is fairly common and supposed to work
with almost every browser, because it is treated as just another "unknown"
attribute, because the lexical rules for what constitutes an attribute in a
tag within most browser's parsers is farily forgiving to compensate for
mistakes.

Sean

-----Original Message-----
From: Martijn Faassen [mailto:faassen@vet.uu.nl]
Sent: Sunday, October 21, 2001 11:49 PM
To: Martijn Pieters
Cc: felix slager; zope-xml@zope.org
Subject: Re: [Zope-xml] xml standard char set? (& minor zope thing ...)


Martijn Pieters wrote:
> On Sat, Oct 20, 2001 at 06:30:24AM -0700, felix slager wrote:
> > By the way, just to be the naggin' horse i am, zope is inserting a nasty
> > sub standard entity in my otherwise perfect html-4.01 template:
> >
> > <base href=".. dot dot dot ..." />
> >
> > The -->' /> '<-- part is not part of html. Shall i post a fix or will
> > Zope 2.4.2 get rid of this ugly bird.
>
> The trailing slash is there is to make it compatible with XHTML. The lash
> will be seen as an unknown attribute by non-XHTML browsers and ignored.
See
> the W3C XHTML recommendations.

Isn't the actual backwards compatibility that there's to be a space
between the / and the >? This ensures that it will be ignored. If
there's actually no space added by Zope I think we should make sure
it does.

Regards,

Martijn


_______________________________________________
Zope-xml mailing list
Zope-xml@zope.org
http://lists.zope.org/mailman/listinfo/zope-xml
Re: xml standard char set? (& minor zope thing ...) [ In reply to ]
> > The trailing slash is there is to make it compatible with XHTML. The
> > lash will be seen as an unknown attribute by non-XHTML browsers and
> > ignored. See the W3C XHTML recommendations.
>
> Isn't the actual backwards compatibility that there's to be a space
> between the / and the >? This ensures that it will be ignored. If there's
> actually no space added by Zope I think we should make sure it does.

The space is there. Note that Image objects generate an <img /> tag as well.

--
Martijn Pieters
| Software Engineer mailto:mj@zope.com
| Zope Corporation http://www.zope.com/
| Creators of Zope http://www.zope.org/
---------------------------------------------
Re: xml standard char set? (& minor zope thing ...) [ In reply to ]
Martijn Pieters wrote:
> > > The trailing slash is there is to make it compatible with XHTML. The
> > > lash will be seen as an unknown attribute by non-XHTML browsers and
> > > ignored. See the W3C XHTML recommendations.
> >
> > Isn't the actual backwards compatibility that there's to be a space
> > between the / and the >? This ensures that it will be ignored. If there's
> > actually no space added by Zope I think we should make sure it does.
>
> The space is there. Note that Image objects generate an <img /> tag as well.

Formulator does too. I hope I do add the space there too. :)

Regards,

Martijn