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 successful. My XML document contains coded "examples" throughout the text. For example: <value type="full concise lite"> <label>#</label> <name>MARC language code</name> <level>standard</level> <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> </description> *********** <examplegp> <example type="full concise lite"> <marc:datafield xmlns:marc="http://www.loc.gov/MARC21/slim" ind1="1" ind2="#" tag="041"> <marc:subfield code="a">eng</marc:subfield> <marc:subfield code="h">ger</marc:subfield> <marc:subfield code="h">swe</marc:subfield> </marc:datafield> </example> </examplegp> ************** </value> (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"> <xsl:apply-templates select="definition | guidelines"/> <xsl:call-template name="examplesec"/> </fo:block> </xsl:template> At <examplesec> you have: <xsl:template name="examplesec"> <fo:block text-decoration="underline"> <xsl:text>Examples</xsl:text> <xsl:apply-templates select="examplegp" mode="section"/> </fo:block> </xsl:template> 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 USA 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!
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format