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

Xref numbering test

Subject: Xref numbering test
From: "Norma Yeazell" <Nyeazell@xxxxxxxxx>
Date: Mon, 15 Dec 2003 14:01:21 -0500
test xref
Is there a way to test what element my xref is pointing to, or can I
test the xrefid with a wild card?
 
In my xref I test the attribute type and if it is figure I type the word
Fig. and number it.
If it is step I type the word step but here is where I need more.
Depending on the step element the numbering would be different.
 
<step1 id="step1-10">
<title>This is a sample title for a step 1</title>
<para>This is a step 2 reference to <xref xrefid="step2-11"
xidtype="step"></xref>.</para>
</step1>
 
<step2 id="step2-11">
<title>This is a sample title for a step 1</title>
<para>This is a step 1. <xref xrefid="step1-10"
xidtype="step"></xref>.</para>
</step2>
 
If it is a step1 then numbering would be format 1
If it is a step2 then numbering would be format 1.1
and so on
 
<xsl:template match="xref">
<xsl:choose>
<xsl:when test="@xidtype='step'">
<fo:basic-link background-color="lightblue"
internal-destination="{@idref}">
<xsl:for-each select="key('ids',@xrefid)">
<xsl:text>Step </xsl:text>
<xsl:number count="step1|step2" from="mainfunc|closeup" level="multiple"
format="1.1.1.1"/>
</xsl:for-each>
</fo:basic-link>
</xsl:when>
 
Hope this makes sense! Any suggestions will be appreciated.
Thanks




Confidentiality Notice
The information contained in this e-mail is confidential and intended for use only by the person(s) or organization listed in the address. If you have received this communication in error, please contact the sender at O'Neil & Associates, Inc., immediately. Any copying, dissemination, or distribution of this communication, other than by the intended recipient, is strictly prohibited.


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.