You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Sven Waibel <sv...@imbus.de> on 2004/11/26 15:09:45 UTC
Internal Hyperlink
Hi,
i need in my xsl an expression like that: id={concat(@id,../@id)}
because i must combine the unique one with not unique one, so i get a unique combination.
I hope i expressed myself not so confused.
Thanks and best regards,
Sven
So looks my xml/xsl at the moment:
XML:
"case id" is always unique.
"auto id" is not always unique.
----------------------
<case id="1">
<auto id="91">
</auto>
<auto id="92">
</auto>
<auto id="91">
</auto>
</case>
<case id="2">
<auto id="81">
</auto>
</case>
XSL:
----------------------
<template match="case">
..
<fo:block id="{@id}">auto</fo:block>
...
...
<fo:basic-link internal-destination="{@id}">
Hyperlink: Jump with this link to auto...
</fo:basic-link>
...
...
</template>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
RE: Internal Hyperlink
Posted by "Andreas L. Delmelle" <a_...@pandora.be>.
> -----Original Message-----
> From: Sven Waibel [mailto:sven.waibel@imbus.de]
>
Hi Sven,
> i need in my xsl an expression like that: id={concat(@id,../@id)}
> because i must combine the unique one with not unique one, so i
> get a unique combination.
In these cases (esp. when the id's are all numerics), I have found it much
safer to insert a dash in between them, so:
id="{concat(../@id,'-',@id)}"
would make sure that the concatenation of 1 and 11 (1-11) is actually
different than the concatenation of 11 and 1 (11-1).
Hope this helps! (If not, I have misunderstood the problem, so feel free to
ask again... :-) )
Greetz,
Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org