[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: xsl:apply-templates to all but...
> The issue: if element w has content model (x,y,z) and I want > to output its > contents in (y,z,x) order, I could do this: > > <xsl:template match="w"> > <xsl:apply-templates select"y"/> > <xsl:apply-templates select"z"/> > <xsl:apply-templates select"x"/> > </xsl:template> Or, in 2.0, <xsl:apply-templates select"y, z, x"/> > > But if something later gets added to that content model, this template > rule will ignore it. So you could do <xsl:apply-templates select"y, z, * except (y, z)"/> Michael Kay http://www.saxonica.com/
|
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
|