|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
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
|

Cart








