Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - simple xsl question [Thread Next] Re: simple xsl questionTo: NULL Date: 7/20/2008 1:08:00 PM
vanSkier wrote:
> The xsl result includes text from the printsettings nodes: "1none",
> and since this was not included in the select attribute.
> <xsl:template match="/">
> <HTML>
> <BODY>
> <xsl:apply-templates/>
Here you process the child nodes of the root node so in your sample XML
then 'template' element is processed by a matching template. As you have
not provided one yourself the default template is used which processes
all child nodes of the context node, in that case the 'printsettings'
element and the 'columns' element. As you have not provided a matching
template for 'printsettings' yourself the default tempate is used and
that way, you end up with the text contents of child elements output to
the result tree.
To fix that, use
<xsl:apply-templates select="template/columns/colrange"/>
above, instead of the <xsl:apply-templates/> that you have.
--
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
