Re: [xsl] I wrote an XSLT program that converts a mapping XML file into a large, powerful XSLT program

Subject: Re: [xsl] 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
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