Re: [WSG] Valid characters in class names

2006-10-21 Thread Charles Roper
On 21/10/06, Lachlan Hunt <[EMAIL PROTECTED]> wrote: > OK, I should rephrase that to "If it were a URL then that would be > more practical for an href surely?" You're only saying that because most implementations don't support LSID URIs yet, but you already showed me a working implementation of

Re: [WSG] Valid characters in class names

2006-10-20 Thread Lachlan Hunt
Charles Roper wrote: On 20/10/06, Lachlan Hunt <[EMAIL PROTECTED]> wrote: Where does it say in the spec that an href attribute has to point to to a network-retrievable resource? It explicitly allows URIs, including both URLs and URNs. OK, I should rephrase that to "If it were a URL then that

Re: [WSG] Valid characters in class names

2006-10-20 Thread Charles Roper
On 20/10/06, Lachlan Hunt <[EMAIL PROTECTED]> wrote: > Doesn't this make it inappropriate for an href in the context of a > web page? No. The attributes: href, cite, data, src, longdesc, etc. are defined to contain URIs, not just URLs. It is not unprecedented to use a URN in such an attribute.

Re: [WSG] Valid characters in class names

2006-10-20 Thread Lachlan Hunt
Charles Roper wrote: On 20/10/06, Lachlan Hunt <[EMAIL PROTECTED]> wrote: Charles Roper wrote: I need to include the following in a class name (for use in a microformat): class="urn:lsid:ubio.org:namebank:530114" Which microformat? That's a URI and so a more semantic place for it is in o

Re: [WSG] Valid characters in class names

2006-10-20 Thread Lachlan Hunt
Nick Fitzsimons wrote: On 20 Oct 2006, at 15:26:10, Lachlan Hunt wrote: escape sequences allow the use of absolutely any character at all. Yes, but the linked part of the CSS 2.1 spec states of identifiers used in CSS, including class names used in class selectors, that "they cannot start wi

Re: [WSG] Valid characters in class names

2006-10-20 Thread Nick Fitzsimons
On 20 Oct 2006, at 18:34:44, Charles Roper wrote: OK, so "urn:lsid:ubio.org:namebank:530114" would actually be a valid class name then? The LSID would almost certainly never be used as a CSS selector (should never rule the possibility out, though), so if it's valid in its unescaped form then th

Re: [WSG] Valid characters in class names

2006-10-20 Thread Nick Fitzsimons
On 20 Oct 2006, at 15:26:10, Lachlan Hunt wrote: Nick Fitzsimons wrote: On 20 Oct 2006, at 13:42:51, Anders Nawroth wrote: Be aware that there are different rules for class names in CSS vs. HTML! http://www.w3.org/TR/CSS21/syndata.html#q6 Good point, Anders; Charles, please note this as a c

Re: [WSG] Valid characters in class names

2006-10-20 Thread Charles Roper
On 20/10/06, Lachlan Hunt <[EMAIL PROTECTED]> wrote: Charles Roper wrote: > I need to include the following in a class name (for use in a microformat): > > class="urn:lsid:ubio.org:namebank:530114" Which microformat? That's a URI and so a more semantic place for it is in or maybe . It's actu

Re: [WSG] Valid characters in class names

2006-10-20 Thread Lachlan Hunt
Charles Roper wrote: I need to include the following in a class name (for use in a microformat): class="urn:lsid:ubio.org:namebank:530114" Which microformat? That's a URI and so a more semantic place for it is in or maybe . From what I gleaned from the CSS spec, I escaped it to this: c

Re: [WSG] Valid characters in class names

2006-10-20 Thread David Dorward
On Fri, Oct 20, 2006 at 04:45:49PM +0100, Charles Roper wrote: > >From what I gleaned from the CSS spec, I escaped it to this: > > class="urn\:lsid\:ubio\.org\:namebank\:530114" > Is that now valid (in terms of CSS) as far as anyone can see? You need to escape the characters in the _CSS_, not in

Re: [WSG] Valid characters in class names

2006-10-20 Thread Charles Roper
Thanks all - what a great response. I did end up reading the CSS 2.1 spec but as has been pointed out, a CSS selector does not necessarily equal an HTML class name. Here's a bit of background: I need to include the following in a class name (for use in a microformat): class="urn:lsid:ubio.org:nam

Re: [WSG] Valid characters in class names

2006-10-20 Thread Lachlan Hunt
Nick Fitzsimons wrote: On 20 Oct 2006, at 13:42:51, Anders Nawroth wrote: Be aware that there are different rules for class names in CSS vs. HTML! http://www.w3.org/TR/CSS21/syndata.html#q6 Good point, Anders; Charles, please note this as a correction to the relevant part of my own response

Re: [WSG] Valid characters in class names

2006-10-20 Thread Nick Fitzsimons
On 20 Oct 2006, at 13:42:51, Anders Nawroth wrote: Charles Roper skrev: Can anyone point me to a reference (or simply post here) of characters that are valid to use in HTML class attribute values. Be aware that there are different rules for class names in CSS vs. HTML! http://www.w3.org

Re: [WSG] Valid characters in class names

2006-10-20 Thread Anders Nawroth
Charles Roper skrev: Can anyone point me to a reference (or simply post here) of characters that are valid to use in HTML class attribute values. Be aware that there are different rules for class names in CSS vs. HTML! http://www.w3.org/TR/CSS21/syndata.html#q6 In CSS 2.1, identifiers (incl

Re: [WSG] Valid characters in class names

2006-10-20 Thread Nick Fitzsimons
On 20 Oct 2006, at 12:41:02, Charles Roper wrote: Hi, Can anyone point me to a reference (or simply post here) of characters that are valid to use in HTML class attribute values. I've searched and searched but can't find a definitive list. When in doubt, read the spec ;-) HTML 4.01 defines

Re: [WSG] Valid characters in class names

2006-10-20 Thread Mihael Zadravec
interesting question..I always use only alphabetic caracters and sign "_" to make multiple_word class names...numeric caracters are alse valid...On 10/20/06, Charles Roper <[EMAIL PROTECTED]> wrote: Hi,Can anyone point me to a reference (or simply post here) of charactersthat are valid to use in H

Re: [WSG] Valid characters in class names

2006-10-20 Thread David Dorward
On Fri, Oct 20, 2006 at 12:41:02PM +0100, Charles Roper wrote: > Can anyone point me to a reference (or simply post here) of characters > that are valid to use in HTML class attribute values. I've searched > and searched but can't find a definitive list. It's a CDATA list, you can use any characte

[WSG] Valid characters in class names

2006-10-20 Thread Charles Roper
Hi, Can anyone point me to a reference (or simply post here) of characters that are valid to use in HTML class attribute values. I've searched and searched but can't find a definitive list. Many thanks, Charles *** List Guideline