Re: Allowed characters in element id's

Subject: Re: Allowed characters in element id's
From: Norman Walsh <ndw@xxxxxxxxxx>
Date: Thu, 30 Apr 1998 11:34:40 -0400
/ Bill Raynor <braynor@xxxxxxx> was heard to say:
| How do I determine what's allowed in an id= attribute? I'd like to use
| underscores and periods but jade gets upset about extraneous punctuation
| marks in the id. I'm generating the sgml from another system and would
| like to take give the elements an easy to read name.

The characters that are allowed in an ID are controlled by the
SGML declaration.  If memory serves, IDs have to be NAMEs and
NAMEs have to be composed of an LCNMSTRT or UCNMSTRT character
followed by zero or more LCNMCHARs or UCNMCHARs.

In other words, you can control the set of characters that are
allowed to start a name and the set of characters that can be
contained in a name (after the start) independently.

| Is this something that can be changed, or is that not a wise thing to do?

It can be changed in the declaration.  Off the top of my head,
document interchange is the only problem that I forsee in
broadening the characters allowed in a NAME.  But I accept that
the top of my head is sometimes empty. ;-)

--norm



 DSSSList info and archive:  http://www.mulberrytech.com/dsssl/dssslist


Current Thread
  • Allowed characters in element id's
    • Bill Raynor - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id LAA23976Thu, 30 Apr 1998 11:19:37 -0400 (EDT)
      • Norman Walsh - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id LAA24496Thu, 30 Apr 1998 11:41:50 -0400 (EDT) <=
        • Bill Raynor - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id MAA25255Thu, 30 Apr 1998 12:00:16 -0400 (EDT)
      • Henry Thompson - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id LAA24863Thu, 30 Apr 1998 11:50:37 -0400 (EDT)
      • Chuck Darney - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id MAA25493Thu, 30 Apr 1998 12:08:36 -0400 (EDT)
      • Tony Graham - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id MAA26656Thu, 30 Apr 1998 12:46:46 -0400 (EDT)