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

Moving examples around in output

Subject: Moving examples around in output
From: "Jacqueline Radebaugh" <jrad@xxxxxxx>
Date: Fri, 23 Mar 2007 11:58:08 -0400
 Moving examples around in output
Dear All:

Please forgive the simplicity of this question.  I have searched all morning
in several different books to find "the answer," however, I have not been

My XML document contains coded "examples" throughout the text.  For example:

<value type="full concise lite">
<name>MARC language code</name>
<description type="full">
<p>Source of the code is the <em><a
href="http://www.loc.gov/marc/languages/">MARC Code List for
Languages</a></em>, that is maintained by the Library of Congress.</p>
<example type="full concise lite">
<marc:datafield xmlns:marc="http://www.loc.gov/MARC21/slim" ind1="1" ind2="#"
<marc:subfield code="a">eng</marc:subfield>
<marc:subfield code="h">ger</marc:subfield>
<marc:subfield code="h">swe</marc:subfield>

(examples above are highlighted with the asterisk)

I would like to extract the examples from the text (examples begin with the
<examplegp> element) and move them to the bottom of the documents.

I have tried using modes so that the style sheet will move the examples to the
bottom of the text when it comes across one of the modes.  I have also tried
to "call" a template named "examples" that pointed to the end of the page
where the <examplegp> group elements should be.  For example:

 <xsl:template match="/field">
   <fo:block font-size="10pt" text-align="justify">
                select="definition | guidelines"/>
            <xsl:call-template name="examplesec"/>

At <examplesec> you have:

 <xsl:template name="examplesec">
<fo:block text-decoration="underline">
<xsl:apply-templates select="examplegp" mode="section"/>

What am I doing incorrectly?  How can I move all of the examples that are
currently interspersed throughout the document to the bottom of the document?

I am using XSLT 2.0, XEP and Saxon 8B.

Thank you very much for your help!  I sincerely appreciate it!

Best wishes,

Jackie Radebaugh

Library of Congress
Network Development & MARC Standards Office
Washington, DC
Phone:  +1-202-707-1153
FAX:  +1-202-707-0115
E-Mail:  jrad@xxxxxxx

PS:  I finished my first large project using XSLT and XSL-FO a few weeks ago!
Yea!  Thank you for all of your support!

Current Thread


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.
First Name
Last Name
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.