You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by Andreas Hartmann <an...@apache.org> on 2006/11/09 18:28:11 UTC

[1.4] New syntax for document references

Hi Lenya devs,

(see also Joern's thread on the users list:
[ANNOUNCE] proposal for lenya document reference syntax)

I committed a new core module (linking) with some classes
to resolve internal links. The following syntax is evaluated
by the LinkResolverImpl which is currently used by the
DocumentSourceFactory and the LinkRewritingTransformer:

lenya-document:[<uuid>][,lang=...][,area=...][,rev=...][,pub=...]

The square brackets denote optional parts of the URI.
If a value is missing, the one of the current document
(i.e., the document which contains the link) is used for

  - uuid
  - lang
  - area
  - pub

IMO the revision should default to the latest one
(this is not implemented yet).


Of course, this syntax is not written in stone yet.
Please try it out and add improvements to bugzilla.

-- Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org