Re: [xsl] Hash / Translation Tables (the right way)

Subject: Re: [xsl] Hash / Translation Tables (the right way)
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Sun, 25 Sep 2011 19:05:06 -0400
At 2011-09-26 00:00 +0100, Michael Kay wrote:
On 25/09/2011 23:40, G. Ken Holman wrote:
document('')/*/hank:months/month[@abbr=lower-case($mon)]/@num
That's common practice but I've never seen any advantage over using a separate document.

The advantage to me is that it is self-contained without having to manage the presence of the separate XML document.


When I'm using fragmented stylesheets and the structure is in another XSLT fragment, I'm not worried about managing it because I have to have the fragment around anyway for the import/include hierarchy.

. . . . . . . . . . Ken


-- Contact us for world-wide XML consulting and instructor-led training Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Google+ profile: https://plus.google.com/116832879756988317389/about Legal business disclaimers: http://www.CraneSoftwrights.com/legal

Current Thread