[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] Re: Comparing Node Text Content with a String Set

Subject: RE: [xsl] Re: Comparing Node Text Content with a String Set
From: "Passin, Tom" <tpassin@xxxxxxxxxxxx>
Date: Tue, 28 Oct 2003 12:11:54 -0500

[ 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.


Tom P

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

Current Thread