[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: FO cross references

Subject: Re: FO cross references
From: Elena Pierazzo <pierazzo@xxxxxxxxxxxxx>
Date: Fri, 11 Mar 2005 11:28:11 +0100
elena pierazzo
Hi Markus,

The problem is that I don't have any output, just the error messages.
The ID of table is unique (the file is valid) and when I generate an
HTML from an XSL the cross reference is perfectly working.

Elena

Markus Abt wrote:

Hi Elena,

options 1 and 2 should work and generate the same result.
Maybe your IDs ("img" in your example) are not unique in
the result document, or are not valid as IDs?

Please take a look at / or post the corresponding parts of
your result (FO) document _after_ transformation.

Markus
__________________________
Markus Abt
Comet Computer GmbH
http://www.comet.de


---------- Von: Elena Pierazzo Gesendet: Donnerstag, 10. Mdrz 2005 16:59 An: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Betreff: FO cross references

 Hi all,
I need to produce cross references with an XSL:FO style sheet from a TEI
file.
My text is encoded as follow:

<TEI.2>
...
for such aspect see <ref target="img">the img table</ref>
..

<table id="img>
..
</table>

</TEI.2>

I've tried the following options:

1. <xsl:template match="ref">
<xsl:apply-templates/>
(p. <xsl:text> </xsl:text>
       <fo:page-number-citation ref-id="{@target}"/>)
</xsl:template>

2. <xsl:template match="ref">
<xsl:apply-templates/>
(p. <xsl:text> </xsl:text>
       <fo:page-number-citation>
           <xsl:attribute name="ref-id">
               <xsl:value-of select="@target"/>
           </xsl:attribute>
           </fo:page-number-citation>)
</xsl:template>

3. <xsl:template match="ref"> <!-- taken from the TEI style sheets -->
<xsl:apply-templates/>
(p. <xsl:text> </xsl:text>
       <fo:basic-link>
               <xsl:attribute name="internal-destination">
               <xsl:value-of select="translate(@target,'_','-')"/>
           </xsl:attribute>)
</xsl:template>


and <xsl:template match="table"> <fo:block space-after="12pt" space-before="20pt" font-size="14pt" font-style="italic" id="{generate-id()}"> <!-- this is needed for TOC --> <fo:inline id="{@id}"/> .. </xsl:table>


None is working. The option 1 is apparently working but no page number is putted in output

Option 2 my FOP says:
SystemID: null
DEscription: E The process ended with code : 2 The error was : [ERROR]
file://Reference2.xml_xslt:9629:757 ref-id must be specified in
page-number-citation

Option 3 my FOP says:
SystemID: null
Description: E The process ended with code : 2 The error was : [ERROR]
file://Reference2.xml_xslt:9629:757 internal-destination or
external-destination must be specified in basic-link

Thank you
Elena




-- Elena Pierazzo Dipartimento Studi Italianistici Via del Collegio Ricci 10 56126 Pisa tel. +39 0502215056

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.