Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: XSL translation required PLEASE [Thread Next] Re: XSL translation required PLEASETo: NULL Date: 7/31/2009 3:03:00 PM Az wrote:
> How can I ignore the EXP element in my translation (for future
> reference) ?
> Do I need to change this line : <xsl:template match="*[*]">
You could change it to
<xsl:template match="*/*[*]">
that way the template will only process elements that have a parent
element and so the root element (not having any parent) will simply be
processed by the default template (which does nothing but process child
elements).
If the root template needs to be copied or transformed then you will
need an additional template; to copy:
<xsl:template match="/*">
<xsl:copy>
<xsl:apply-templates/>
</xsl:copy>
</xsl:template>
to transform e.g.
<xsl:template match="/*">
<foo>
<xsl:apply-templates/>
</foo>
</xsl:template>
--
Martin Honnen --- MVP XML
http://msmvps.com/blogs/martin_honnen/
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
