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

Re: Matching on elements from namespaces

Subject: Re: Matching on elements from namespaces
From: James Clark <jjc@xxxxxxxxxx>
Date: Fri, 22 Oct 1999 09:41:36 +0700
Re: Matching on elements from namespaces
zun@xxxxxxxxxxxxxx wrote:

> For future versions of XSLT/XPath, what do you feel should be the best way
> to reduce the clutter?  How about an inputns attribute, so I can write
> something like:
> 
> <xsl:template match="/html/body" inputns="http://www.w3.org/TR/xhtml1/strict">
>   <xsl:copy-of select="text()|*"/>
> </xsl:template>
> 
> or an input-prefix attribute:
> <xsl:template match="/html/body" input-prefix="xhtml">
>   <xsl:copy-of select="text()|*"/>
> </xsl:template>

It's on the list in the PR: "an attribute to control the default
namespace for names occurring in XSLT attributes".

> The second issue relates to my desire for having a separate stylesheet per
> namespace.  Right now, both xsl:include and xsl:import must be top-level
> elements.  If I have several hundred namespaces this can get unwieldy and
> so I would like to have a facility to include only those stylesheets which
> are currently applicable to the document at hand.  That is, perhaps a top
> level element to indicate a mapping between namespace and stylesheet.

Isn't this more something that belongs as part of the language linking
the document to one or more stylesheets rather than as part of the
stylesheet language itself?  

James



 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.