[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: XML transformation based on parameters

Subject: Re: XML transformation based on parameters
From: Andrew Welch <andrew.j.welch@xxxxxxxxx>
Date: Wed, 15 Apr 2009 11:04:59 +0100
Re:  XML transformation based on parameters
>> why have this
>>  <xsl:template match="*[local-name()='param']">
>> which is likely to be slower to execute and harder to read than
>>  <xsl:template match="param">
>
> Because it must be namespace agnostic! Is there an other way
> to ignore namespace prefix?

Either:

match="*:param"

or

do a two stage transform where the first stage strips any namespaces
(or puts everything in the same namespace) and the second stages
processes that output.

The "two stage transform" can still take place inside a single
stylesheet to begin with, so it's not much effort (and some might say
preferable to * in every match pattern and xpath...)


--
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.