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

Re: 2.1 Must Allow Matching on Default Namespace Witho

Subject: Re: 2.1 Must Allow Matching on Default Namespace Without Explicit Prefix
From: "Dave Hartnoll" <themainman@xxxxxxx>
Date: Thu, 22 Feb 2001 13:02:03 -0000
xsl xmlns transform namespace
> okay, so something like:
>
> <xsl:stylesheet match-on-default="yes"...

I haven't thought through all the practicalities of this, but how about
something along the lines of:
   <xsl:stylesheet xmlns:xsl="..." xsl:xmlns="some_uri" ...

This could then be applied to individual templates or any other element if
needed, and would be expected to apply to all XPaths in the element's scope
unless overridden by a descendent element:
    <xsl:template match="/foo/bar" xsl:xmlns="some_uri">
        <!-- count baz children in the some_uri namespace -->
        <xsl:value-of select="count(baz)"/>
        <!-- count baz children in the null namespace -->
        <xsl:value-of select="count(baz)" xsl:xmlns=""/>
    </xsl:template>

I can see that the use of xsl:'xmlns' might cause parser compatibility
problems, but some other name like xsl:xpathns would work almost as well.

Dave Hartnoll.



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.