xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] Catch ALL | Failed template rule


Subject: RE: [xsl] Catch ALL | Failed template rule
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Tue, 22 Mar 2005 19:59:15 -0000

> I guess I was looking for the
> cleanest way to exercise this.  I guess it would be this:
> <xsl:apply-template select="not(foo/bar[@a='b'])" 
> mode="unmatchedresults"/>

No, the result of the selection has to be a set of nodes, it can't be a
boolean.

The idea in your head of invoking a template rule if something isn't there
is not a ridiculous one, but it's something that the language doesn't
support, and couldn't be made to support without introducing some new
fundamental concepts. So the best one can say is: it ain't going to happen;
find another route to your destination.

Michael Kay
http://www.saxonica.com/


Current Thread
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor