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

keys and variables

Subject: keys and variables
From: Bruce D'Arcus <bdarcus@xxxxxxxxxxxxx>
Date: Fri, 20 Aug 2004 18:10:57 -0400
 keys and variables
I'm trying to understand when and how to use keys.

What I want is to a) remove all explicit xpath expressions from the core of my stylesheets so as to allow one to use them with different schemas (let's say TEI for bibliographic representation, vs. MODS), and b) make it as fast as possible.

So let's take a minimal document:

<bibs>
  <book ID="1">
    <title-main>First Title</title-main>
    <author>John Doe</author>
  </book>
  <book ID="2">
    <title-main>Second Title</title-main>
    <author>Jane Smith</author>
  </book>
</bibs>

Basically, I want the main xslt files to have expressions that are generic: like maybe $title and $creator in this case. Ultimately there may be twenty or so structures so defined. To use data defined against a different schema, one would just change these variables or keys.

Any suggestions on how best to tackle this?

Bruce

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.