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

Re: I wrote an XSLT program that converts a mapping XM

Subject: Re: I wrote an XSLT program that converts a mapping XML file into a large, powerful XSLT program
From: "Roger L Costello costello@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 31 Oct 2024 07:28:03 -0000
Re:  I wrote an XSLT program that converts a mapping XM
Hi Folks,

Thank you for your excellent responses!

To answer your questions:

> Does the mapping file have a way to express things that might be context or
content dependent?

Yes. There were cases in which multiple legacy elements had the same name, but
with different parent elements, and they needed to be mapped differently. So,
in my mapping file I added an attribute, e.g.,

<Facility_Elevation context="localizerMarker-elevation">
<Facility_Elevation context="transmitterSiteElevation">

The <Facility_Elevation> element occurred in two different places in the
legacy file. I used a "context" attribute to distinguish them.

> Did you use namespace-aliasing?

Yes. namespace-aliasing is so cool, so powerful. I love namespace-aliasing. I
learned the technique of using namespace-aliasing to enable one XSLT program
to output another XSLT program from Rick Jelliffe/Schematron long ago.

> Did you write the XSLT out to a file?

Yes.

/Roger

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.