Thanks Paul, I had totally forgotten about the id() function. That
solves my particular problem perfectly 🙂
I'll bear in mind your statement about the XSLT problems in 5.3, but I
think we are only going out to PDF via FOSI at this stage.
Cheers,
Gareth
PS. Thanks also Steve for your input, but as Paul correctly pointed out
we are not in an XSLT environment 😞
Grosso, Paul wrote:
> Actually, the current() function is not XPath, it's XSLT.
>
> So you could use it in XSLT edited source in Styler, but
> not in places where Styler expects an XPath expression.
>
> I'm not sure I'm understanding the exact request, but I'll
> try to say some hopefully useful things.
>
> If the current element has an idref attribute whose value
> is the id of an author element whose surname child you want,
> you can use the XPath id() function: id(@idref)/surname.
>
> In 5.3, there are some restrictions on the use of the id()
> function in Styler XSLT outputs, so the above XPath may not
> work as desired. In 5.4 M010, this has been fixed. If
> you need this to work for XSLT outputs in 5.3, I might be
> able to suggest some workaround, but I'll wait to hear if
> that is the case before getting more complicated.
>
> paul
>
>