XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Ann Marie RubinSubject: consolidating footnotes
Author: Ann Marie Rubin
Date: 19 Sep 2006 10:45 AM
Hi,

I'm looking for a way to output a single footnote for multiple, identical XML footnote entries.

I created a crossref XML element with an footnoteref attribute. Footnotes are numbered automatically by a footnote template. To create a dup footnote, the user would set the value of the opid attribute of the footnote to reference, then insert a crossref element at the desired location of the dup footnote, and set its target id attribute to the opid value of the footnote to cross-reference.

The XSL code for the crossref element:

<xsl:template match="crossref">
<xsl:choose>
<xsl:when test="@toFootnote='no'">
<fo:basic-link color="blue" internal-destination="{@targetid}">
<xsl:value-of select="."/> (<xsl:value-of select="$__Page_Token"/>
<fo:page-number-citation ref-id="{@targetid}"/>)</fo:basic-link>
</xsl:when>
<xsl:otherwise>
<fo:inline baseline-shift="super" font-size="8pt">
<xsl:number count="//footnote[@opid=@targetid]" format="1" level="any"/>
</fo:inline>
</xsl:otherwise>
</xsl:choose>
</xsl:template>


The resulting output has no value for the footnote reference.

Can someone see what I might be doing wrong?

Thanks for your help.

Ann Marie

Posttop
Tony LavinioSubject: consolidating footnotes
Author: Tony Lavinio
Date: 21 Sep 2006 10:37 AM
This forum is for Stylus Studio owners only, and we don't recognize
your email address.
However, it looks like you already posted and received replies over
on xsl-list, so that takes care of that.

In the future, xsl-list is the best place to ask XSLT-specific
questions, and this forum for Stylus Studio-specific questions.
That gives all XSLT users access to general XSLT information,
while it keeps Stylus Studio-related traffic off the public list.

 
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.