Joern Nettingsmeier schrieb: [...]
>>> should we introduce a new source factory of the same name that follows >>> the same semantics? that way, we can slowly deprecate the old >>> lenyadoc:// stuff that's hard to read and easy to get wrong because of >>> the positional parameters. >> >> Hmmm, I'm a little slow on the uptake this morning, what do you mean >> with "a new source factory of the same name that follows the same >> semantics"? > > well, the original topic was just a syntax to store internal links in > documents. these are rewritten by a link rewriter on delivery, and never > really touch an actual source factory. Ah, now I see. OTOH, an internal link could also be resolved by including the linked document, which would mean a call to the source factory. > but when i realized that those named parameters are a nice way to avoid > the hard-to-read and error-prone positional parameters that we currently > have to use with the lenyadoc:// source factory, i thought we might > create an actual lenya-document:// source factory that uses the named > paramater semantics as well. Sounds reasonable. > it would allow to specify arbitrarily precise links (i.e. everything > that's not specified, such as area or pub, is taken from the page > envelope context). that way, you could say lenya-document:?lang=fr and > just change the language, or lenya-document:?rev=3 and just show another > revision. > this could slowly replace the current lenyadoc: mechanism (which would > be declared deprecated). +1 > (btw, great to hear from you again - hope your vacation was nice. It was great, thanks for asking :) > it's > the old pro vs. amateur coder thing again - when i'm all in deep hack > mode, i.e. on weekends or over the holidays, everyone else just > disappears... another point for a quick release to get some new people > on board :) Yes - at the moment I'm very optimistic regarding the internal link decision, nobody complained about your proposal yet. Would you like to start an [ANNOUNCE] thread to introduce the syntax you proposed? It's fine with me to use lenya-document:// (not sure about the slashes, though), with the parameters lang, rev, pub, etc. -- Andreas --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
