Subject: Re: Matching on elements from namespaces From: James Clark <jjc@xxxxxxxxxx> Date: Fri, 22 Oct 1999 09:41:36 +0700 |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Matching on elements from namespace, zun | Thread | OT: XML Server dream, Eric van der Vlist |
Re: XSL FOs -> PDF using InDesign, James Robertson | Date | limitations of preceding-sibling an, Earl Bingham |
Month |