[xsl] Testing if attribute node
Subject: [xsl] Testing if attribute node|
From: Marcus Andersson <marcan@xxxxxxx>
Date: Tue, 20 Jan 2004 02:17:17 +0100
I'm genenerating stylesheets (with XSLT) from the following XML fragment
Those rules gives me templates after a transform:
I want to do some conditionals inside the templates based on whether the
current node is an attribute or not. Is that possible to do?
My alternative, as I see it, is to parse the match attribute when I
generate the stylesheet and put a variable inside the templates but I
really don't want to do that.
Any suggestions are welcome (even those that completely alters my
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list