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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Allowed characters in element id's, Bill Raynor | Thread | Re: Allowed characters in element i, Bill Raynor |
Re: generate HTML file name, Lionel Mallet | Date | Re: generate HTML file name, Norman Walsh |
Month |