- From: Kay Michael <Michael.Kay@icl.com>
- Date: Tue, 20 Jul 1999 11:29:57 +0100
- To: "'xsl-editors@w3.org'" <xsl-editors@w3.org>
When processing secondary documents using document(), it would be useful to be able to apply predicates to determine which template to execute, for example, if "intray" is a set of references to invoices and purchase-orders, one might write: <xsl:apply-templates select="document(intray/@href)"/> <xsl:template match="/[invoice]"> ... </xsl:template> <xsl:template match="/[purchase-order]"> ... </xsl:template> But there seems to be no way of applying a predicate to a pattern that matches the root node of a document. I can't see any intrinsic reason for this restriction. Mike Kay
Received on Tuesday, 20 July 1999 07:49:46 UTC