[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
> 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
|
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
|