Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: Help! How Import XML Using xsl:copy-of & document()? >Thread Next - Re: Help! How Import XML Using xsl:copy-of & document()? Re: Help! How Import XML Using xsl:copy-of & document()?To: NULL Date: 2/4/2006 9:47:00 AM "PaddyInHR" <pmbarnes@g...> wrote in message news:1139007617.611950.318400@g...... > Please note that in header.xsl, the <Header> element is not part of the > ExcelML schema. But I had to have a root node. This may be my problem, > but I couldn't see how to fix this. > I think myou need to modify the transform because you have two templates matching /, only one will be called. If you give the header one a mode then call that one from your main template, e.g. Header.xsl: <xsl:template match="/" mode="header"><!-- rest of code --> </xsl:template> Main.xsl: <xsl:template match="/"> <xsl:apply-templates select="." mode="header"/> <!-- rest of code --> </xsl:template> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk/html/37b7ba50-3bb9-4354-995b-7625c3ef31e5.asp?frame=true -- Joe Fawcett - XML MVP https://mvp.support.microsoft.com/profile=8AA9D5F5-E1C2-44C7-BCE8-8741D22D17A5 | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
