José Abílio Oliveira Matos <[EMAIL PROTECTED]> schrieb am 18.10.04 23:17:04: > > > > > it is not that simple! The underscore may very well be allowed in the value of an > > ID attribute, at least in SGML! This quite tricky subject is dealt in: > > > > character "_" not allowed in value of attribute ID > > http://www.karakas-online.de/forum/viewtopic.php?t=872 > > I hope you are not suggesting to change the DocBook SGML Declaration? > At least because of a small detail like this. >
Yes, I suggest that the user who uses the standard DocBook stylesheets change the SGML Declaration if he wishes to use the underscore in his IDs. That's why the SGML Declaration is there, to declare what is allowed and what not, it is not LyX' job to check this. It is the parser's job - and the parser *must* take into account the user's SGML declaration. > Also if lyx deals with all the references there is no problem as it will > be always consistent. > Consistent or not, LyX will be messing up with the user's choice of labels - and that's not LyX' business. > > I suggest to leave validation to validating parsers, or, if you want to > > validate, then use an external one, don't try to reinvent the wheel. SGML > > can be quite tricky at this - and that was a reason that led to XML, namely > > that parsing SGML can be a challenge to program. > > As Andreas mentioned it is a question of producing legal code, we use the > same trick for latex, for identical reasons. > Let the user's SGML parser (who will take into account the user's choices) decide this. Regards Chris Karakas http://www.karakas-online.de