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

Ideas for creating quotation collection

Subject: Ideas for creating quotation collection
From: Steffen Glückselig <glueckselig@xxxxxxxxx>
Date: Sat, 18 Sep 2004 10:05:30 +0200
creating quotation
Hello,

I plan to convert a quite big collection of quotations archived in XML to XHTML via XSL. Currently I am getting the job done with a Java-tool I've programmed.

What I want to do is group the quotes into categories (according to author (x)or content).

I've started with
<xsl:choose>
        <xsl:when test="contains(.,'Mark Twain')">
          <xsl:attribute name="category">Mark Twain</xsl:attribute>
        </xsl:when>
    ....
</xsl:choose>

I'd write the result of this transformation into a file and process that file with another XSL-sheet to produce the final XHTML-file.

I've two questions:
 The test should not be case-sensitive. How could I do that?

Is there a better way of doing it - maybe not requiring two passes?



thanks & regards
Steffen

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.