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

using xsl to substitute synonyms or translate

Subject: using xsl to substitute synonyms or translate
From: "Thomas McDonald" <tomandlis@xxxxxxxxxxx>
Date: Tue, 07 Jan 2003 15:36:22 -0500
tom mcdonald
I have a problem that I think is similar to translating words in one language to words in another language and I was wondering if I could use xsl to do it.

I know what my source input will be (example below) and I know what I want to output to be, but I can't fathom how to build an xsl to get the output. I thought I could use the translate function, but there would be a long list of things to translate. There are 32 teams and I want to use this process again (on something unrelated) for a list of over 300 items.

Here is what my source document will look like

<nflTeamNames>
  <name>49ers</name>
  <name>Cowboys</name>
  .
  .
  .
  <name>Seahawks</name>
<nflTeamNames>

Here is what I want the output to look like:

<nflCities>
  <city>San Francisco</city>
  <city>Dallas</city>
  .
  .
  .
  <city>Seattle</city>
</nflCities>

In case you don't know American football the 49ers are the San Francisco team, the Cowboys are the Dallas team and so on. :-)

Regards,

Tom






_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail



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



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.