Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: Question on flow [Thread Next] Re: Question on flowTo: NULL Date: 4/3/2008 4:54:00 PM tshad wrote: > and I do (if I read you correctly): > <xsl:template match="/*"> > <xsl:copy> > > I am copying copying the root Element, which in this case I assume is > <Report>. So I will copy everything from <REPORT> to </REPORT> No, xsl:copy does a _shallow_ copy of the _node_ so it will insert an element named 'REPORT' in the result tree. The contents of that element in the result tree is then filled by XSLT instructions and literal result elements inside of the xsl:copy. > If I do: > <xsl:template match="/"> > <xsl:copy> > > I am copying the whole document from <?xml...> to </REPORT> No, you are doing a shallow copy of a document node meaning when the xsl:copy has been executed the result tree has an otherwise empty document node that is then later filled by the XSLT instructions and literal result elements inside of the xsl:copy. -- Martin Honnen --- MVP XML http://JavaScript.FAQTs.com/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
