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

Re: Creating an Index Page that references multiple pa

Subject: Re: Creating an Index Page that references multiple page numbers using XSLT/FOP . Final output is PDF
From: Jesse Schaaf <schajx@xxxxxxxxxxxxx>
Date: Sun, 15 Jan 2012 14:38:04 -0600
Re:  Creating an Index Page that references multiple pa
Seems that you can only use the value in id once. The reference could show up multiple times through the publication. I tried to place the value that is in the <MEDDINDEX> tag from my XML doc onto the ID value but received an error saying that I can not use duplicate values. I used something like this:

<fo:block text-indent='-9pt' id="MEDDINDEX" start-indent='9pt'>
<xsl:value-of select="." />
</fo:block>

Thanks for the advice!!

Jesse Schaaf
Schaafnet Consulting
www.schaafnet.com
952-463-7625

On 1/15/2012 2:18 PM, Marc wrote:
sorry it's OF , <fo:block id="index_1">
and after : <fo:page-number-citation ref-id="index_1"/>
Marc

Le 15/01/2012 20:59, Jesse Schaaf a icrit :
I get the page-citation piece but do you have an example of the "id
attribute EOF block"?


Jesse Schaaf Schaafnet Consulting www.schaafnet.com 952-463-7625

On 1/15/2012 3:36 AM, Marc wrote:
You have to use the id attribut eof block to indentify the drug, and
after the page-citation FO element.
Marc

Le 15/01/2012 02:31, Jesse Schaaf a icrit :


I am using:
XPATH 2.0 and XSLT 1.0 with FOP

I am creating a PDF using an XML output to produce a publication that
has a drug list and an index page that references every drug by page
number on the drug list.
I have the drug list created and can produce the PDF however the Index
page has me stumped.

The XMLS Schema looks something like this:
<Root>
<MEDDDRUG>
<MEDDDRUGN>This text shows up on the Drug List</MEDDDRUGN>
<MEDDTIER></MEDDTIER>
<MEDDBD> </MEDDBD>
<MEDDPA></MEDDPA>
<MEDDQL></MEDDQL>
<MEDDST></MEDDST>
<MEDDINDEX>This text shows up on the Index Page</MEDDINDEX>
</MEDDRUG>
</Root>

The Drug lists is pretty simple. All it does is list out all drug names
in the <MEDDDRUGN> tag in a column format. The Index page should list
out all drug names found in the <MEDDINDEX> tag and reference pages
that
the drug name shows up on the drug list. For Example, Lets say
Allopurinal shows up on the drug list 3 times(on pages 2,4,10). Then
the
index should look something like:

*A*
Allopurinal
.............................................................. 2,4,10
Other A drugs .........................................................
#,#,,,

*B*
Other B
drugs..........................................................#,#,,
.
.
*Z*
Other Z
drugs...........................................................#,#,,

I have searched online for a good example but could not find any that
fit well. If any one has some ideas please let me know. I do have the
working XSL and XML that currently build out the drug list if needed.
Thanks in advance for any one with the knowledge to solve this problem.

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.