On Tue, Oct 19, 2004 at 01:12:47PM +0200, Chris Karakas wrote: > > There is more to it than you think. here is a scenario: > > - Labels become filenames: > > http://www.karakas-online.de/mySGML/labels-as-filenames.html
> - The first version of the document goes online. > > - Search engines crawl and index the document. > > - In previous versions of DocBook, underscore *was* allowed in the > SGML Declaration. Thus the first version contains underscores in > the HTML filenames. > > - Then the user upgrades his DocBook. > > - Somebody in the DocBook committee decided that underscore is "out". First I understand your point, second the problem is precisely the opposite that you refering to. The SGML declaration is an hint, that basically says that all documents that conform it are safe to be exchanged. So it is not normative but indicative. The reason why the Docbook comitee doesn't change it to something less restrictive is precisely to preserve this. The problem is that don't change it to have less constraints. They would never, *ever* change it to something more restrictive. > - What are the user's choices? > > - Either he changes the labels - but this will changes his HTML filenames, > i.e. the URI's of his document. But "cool URIs don't change": > > http://www.karakas-online.de/mySGML/cool-labels-dont-change.html > > But now, since the URIs changed, the document is not found anymore > by the search engines. It may take 3 to 6 months to be found again. > > The document is dead. Just because somebody decided to change the > SGML Declaration between two versions... :-( > > - The other choice is - the user changes the SGML Declaration. > > But then LyX comes into play and messes up with the labels! > Nothing is the way it was! Labels have changed and so have the > filenames too! > > And why all this? Because LyX thinks it must correct my labels > and impose his view of correctness on my names. I'm sorry this is non negotiable. LyX should work out of box. What we can do is allow the users to specify what characters are allowed in CNAMES. This is easy we garantee that those characters will not be messed. Is this acceptable for you? In the layout file: ------------------------ # Modified layout file Input docbook.layout ClassOptions Other "CNAME=.-·" End ------------------------ You can replace the last line by: Other "CNAME=.-·_" > This can't be the right thing. > > Leave it to the SGML parser. The parser will complain - if it has to. > > -- > Regards > > Chris Karakas > http://www.karakas-online.de -- José Abílio Matos LyX and docbook a perfect match. :-)