This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: namespaces and copying trees


> But what if I want to allow metadata to appear at arbitrary places in
> the XHTML document? I think there must be a more elegant way to say
> "Take everything from this namespace, forget everything from all other
> namespaces."


<xsl:template match="*" priority="1">
  <xsl:copy>
  <xsl:copy-of select="@*"/>
  <xsl:apply-templates/>
  </xsl:copy>
<xsl:template>

<xsl:template match="foo:*" priority="2"/>

Mike Kay
Software AG

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]