On 11/5/2010 1:15 PM, Vincent Massol wrote:
. . .
A different example of what I'm trying to do,
using a syntax flavor closer to the XWiki 2.1 syntax, might be:
Berlin is located in
[[Germany>>doc:Main.Germany||property="locatedIn"]]
This is a link.
If you don't need a link you should instead write:
Berlin is located in (% property="locatedIn" %)Germany(%%)
or
Berlin is located in (% property="locatedIn"
%)[[Germany>>Main.Germany]](%%)
Note: This is going to generate a FormatBlock in XDOM, which you can access with
Transformation and Macros.
This is something I do from Java? Can you point me to
where to get started? I've spent a good bit of time with the source code and
xwiki.org documentation, but have not yet been able to determine where to get started.
:-(
There are several places where you can interact with the document's DOM (we call it
the XDOM):
- in Rendering Transformations
- in scripts written in pages since you can get the XDOM using doc.getXDOM() and thus get
this information to perform whatever you want
- in Renderers. For example you might want to generate something visual or an auto link.
If you want more help you need to tell us what you want to do with this information.
Regarding the Rendering system, it's documented here: