Hi all!
I'd like like to ask for some help from those who really understand the working of XSL.
I am using Saxon to transform my DocBook 4.4 XML files to HTML and I'd like to change the way the links to images are generated.
Here is the XML code of a figure:
<figure id="Bufferfly_abra" xreflabel="Bufferfly ábra">
<title>Bufferfly ábra</title>
<mediaobject>
<imageobject>
<imagedata .../>
</imageobject>
</mediaobject>
</figure>
Here is an XML reference to a figure:
<xref linkend="Bufferfly_abra"/>
After the XML->HTML conversion the code of image looks like this: (I stripped the unnecessary parts)
<a name="Bufferfly_abra"></a>
...
<img src="" alt="Bufferfly ábra">
And the link to the image:
<a class="xref" href="" title="6.22. ábra - Bufferfly ábra">Bufferfly ábra</a>
The point is that the text in link contains the full title of the image. Sometimes it can be very long.
The other thing that the tooltip contains the full title of image plus it has a numbering.
I'd like to get this:
The text in link should contain only the numbering (eg. Figure 2.3) instead of the image title.
Optional: The tooltip should contain only the title of image. (it is not so important :-) )
My question is:
Which XSL file (and which rule) should I modify and how? (in order to do this)
Any help appreciated.
Thanx in advance!
Zoltan Janosi