Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: Question on flow >Thread Next - Re: Question on flow Re: Question on flowTo: NULL Date: 4/2/2008 5:42:00 PM tshad wrote: > But then what is happening as to the use of "/*" vs "/" vs "REPORT" in my > first template line. > > Both "/*" and "REPORT" give me the same results. But if I have "/" and > <xsl:copy>, I don't get a root tag. If I do "/" and "<REPORTING> (in place > of the <xsl:copy>), it works fine with <REPORTING> as my root tag. > > It seems the "/" drops the root node (with copy) and "/*" (with copy) uses > the existing root node. > > I assume the reason "/" and <REPORT> work is because "/" is dropping the > root (document) node but I am supplying my own. > > <xsl:template match="/"> > <xsl:copy> > > doesn't work (missing root node) The root node in the XSLT/XPath model is the document node, it is different from the root element. So <xsl:template match="/"> matches the root node and you can copy that if you want but it is different from <xsl:template match="/*"> which matches the root element. -- Martin Honnen --- MVP XML http://JavaScript.FAQTs.com/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
