xsl-list
[Top] [All Lists]

Re: [xsl] test context node existence

2008-06-27 22:02:18
"Max" == max toro q <maxtoroq(_at_)gmail(_dot_)com> writes:

    Max> Hello list, I have a stylesheet that sometimes run using an
    Max> initial context node and other times using an initial named
    Max> template.  What I need is a way to test if a context node
    Max> exists, or else I get a dynamic error when a call
    Max> apply-templates, or when I do any kind of node test.

Perhaps you can pass a global parameter to the transformation,
indicating which situation is active.
-- 
Colin Adams
Preston Lancashire

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>