[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: test context node existence
> From: max toro q [mailto:maxtoroq@xxxxxxxxx] > Sent: Friday, June 27, 2008 5:26 PM > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: test context node existence > > Hello list, > I have a stylesheet that sometimes run using an initial context node > and other times using an initial named template. > What I need is a way to test if a context node exists, or else I get a > dynamic error when a call apply-templates, or when I do any kind of > node test. Why can't you say: <xsl:if test="exists(foo:node)"> <xsl:apply-templates select="foo:node" /> </xsl:if> Andy.
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|