Skip to Content.
Sympa Menu

microid - Re: [Microid] MicroID draft problem

microid AT lists.ibiblio.org

Subject: Microid mailing list

List archive

Chronological Thread  
  • From: Eran Sandler <eran AT yedda.com>
  • To: Peter Saint-Andre <stpeter AT stpeter.im>
  • Cc: microid AT lists.ibiblio.org, Otto <otto AT ottodestruct.com>
  • Subject: Re: [Microid] MicroID draft problem
  • Date: Tue, 18 Mar 2008 08:28:05 +0200

I also thought about underscore but it doesn't look good.


Essentially we do need a concatenation, that's why we used + (among other things) so perhaps we should use the period.


Eran




Peter Saint-Andre wrote:

47DF3F12.5040806 AT stpeter.im" type="cite">
jer wrote:
  
Ick, Stpeter, others, thoughts?

On Mar 10, 2008, at 11:36 AM, Otto wrote:

    
Trying to use a microID in an XHTML 1.1 document. W3C Validator
doesn't like it because it says:

character "+" is not allowed in the value of attribute "class"

The code in question is basically along these lines:
<span class="microid-mailto 
+http:sha1:23e9670868f6d2b16fe1f6b3db80c" ...

Any thoughts? Something I'm missing? Didn't know who else to ask about
the topic. Is the current spec of microID incompatible with some later
XHTML versions when using the "class" method?

-Otto
      
Well, further research reveals that the 'class' attribute has a datatype
of NMTOKENS, i.e., a space-separated list of NMTOKEN productions, which
are defined in XML 1.0 as follows:

   Letter | Digit  | '.' | '-' | '_' | ':' | CombiningChar | Extender

The last two don't help us (they are things like umlauts and such), so
that means we're limited to letters, digits, periods, hyphens,
underscores, and colons. We're already using hyphens and colons are
separators, so I think we need to change from + to period or underscore.
So in this example that would be:

1. microid-mailto.http:sha1:23e9670868f6d2b16fe1f6b3db80c

or

2. microid-mailto_http:sha1:23e9670868f6d2b16fe1f6b3db80c

I don't have a strong preference between the two. The period feels more
like concatenation to me, but that's perhaps purely visual.

Peter

  

_______________________________________________ Microid mailing list Microid AT lists.ibiblio.org http://lists.ibiblio.org/mailman/listinfo/microid




Archive powered by MHonArc 2.6.24.

Top of Page