xsl-list
[Top] [All Lists]

RE: Re: Comparing Node Text Content with a String Set

2003-10-28 10:11:54
[ Dimitre Novatchev]
[
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.

 
 If you use a named template, it should not get invoked by mistake
because it will never match anything, and you would only call it where
you want the lookup to be done.  On the other hand,  the stylesheet
element is not allowed to have arbitrary elements as direct children, so
that route won't work.

Cheers,

Tom P

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