Something like:
<xsl:template match="myns:@* | myns:*">
<xsl:copy>
<xsl:apply-templates select="@*"/>
<xsl:apply-templates/>
</xsl:copy>
</xsl:template>
<xsl:template match="node()"/>
<xsl:template match="*">
<xsl:apply-templates/>
</xsl:template>
-Rob
On Wed, 2008-02-06 at 08:03 -0800, Steven Ericsson-Zenith wrote:
On Feb 6, 2008, at 2:38 AM, Andrew Welch wrote:
After 8 years or so of XSLT now, the "a-ha" moment only came to me the
other day ...
This, of course, is a problem that language designers should consider.
I assume that namespaces, from my experience with xsd more than xsl,
are things that are meant to be observed by translators. I now begin
to wonder how I specify operations on elements in a particular name
space but from what Michael has said it seems they are simply
"syntactic sugar" to enable unique identification (avoid naming
conflicts) in single passes. Is there a way to specify that a style
sheet processes only the elements of a particular name space? I don't
think there is, but it sounds like something I could use for code
modularity.
With respect,
Steven
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--