xsl-list
[Top] [All Lists]

Re: Comparing Node Text Content with a String Set

2003-10-28 09:12:42
If you don't want to use the extension function you can access the
lookup table by putting it in a separate XML document.


You can actually also put the lookup table into a named template in the
stylesheet.  You can access it via
document('')/xsl:stylesheet/xsl:template[name="..."], where "..." is the
name of the template.  This way you do not need to coordinate and
maintain an extra external file.

Yes,  but if you happen to call this named template the lookup table has
good chances to appear in the output...

It is shorter and safer to have the table as a child of the xsl:stylesheet
element.

Then it is accessible using a shorter XPath expression"

   document('')/*/myTable:lookup/*


=====
Cheers,

Dimitre Novatchev.
http://fxsl.sourceforge.net/ -- the home of FXSL




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