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

Re: xsl:key

Subject: Re: xsl:key
From: Mike Engelhart <mengelhart@xxxxxxxxxxxxx>
Date: Fri, 10 Mar 2000 16:53:04 -0600
xsl key simple example
David_Marston@xxxxxxxxx wrote:

> My response is to say that you want a keyspace for each language,
> and the first argument to key() selects the keyspace you will
> use to generate all labels in that language. The lookup table
> for every one of those parallel keyspaces will map a string
> input to a string output, and all the inputs will be unique in
> any one keyspace. You build (or at least declare) the lookup
> table in the xsl:key directive
> <xsl:key name="keyspace_name" [indicate which language]
> use="something" [the input side of the lookup]
> match="something" /> [the output side of the lookup]
> So if all the values of the use= nodes are unique in any one
> keyspace, and you call key() with a string constant for the
> second argument, and the match= nodes come through as string
> constants, then you have the effect of mapping a generic
> string into a string in a specific language.
Thanks very much for the insight.  Now my question (and hopefully last) is
how to implement this.  I don't mind creating separate files for lookups but
I can't figure out even a simple example.  could you provide me with some
example xsl syntax for the following lookup document?

<phrase>
    <translation key="_FIRST_NAME">First Name</translation>
</phrase >

Sorry to be so dense about this...

Mike


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread
  • xsl:key
    • Mike Engelhart - Fri, 10 Mar 2000 13:56:30 -0600
      • <Possible follow-ups>
      • David_Marston - Fri, 10 Mar 2000 16:00:38 -0500
        • Mike Engelhart - Fri, 10 Mar 2000 16:53:04 -0600 <=

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.