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

Re: strip-spaces

Subject: Re: strip-spaces
From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx>
Date: Wed, 6 Feb 2008 10:38:46 +0000
Re:  strip-spaces
On 06/02/2008, David Carlisle <davidc@xxxxxxxxx> wrote:
>
> > Is that an accurate view of whats going on?
>
> yes

:0)

After 8 years or so of XSLT now, the "a-ha" moment only came to me the
other day when I saw a post with xmlns on xsl:template:

<xsl:template match="foo" xmlns="abc">

It looked odd and illegal, but then I realised its perfectly fine
because XSLT is XML - and it's that reason that determines the
namespaces of LREs.

So the golden rule for dealing with xmlns="" is to look at your
stylesheet as XML and it should be clear where the problem is.

It seems so obvious now, but it will go down as yet-another-xslt-a-ha-moment...

cheers
-- 
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-2011 All Rights Reserved.