Subject: RE: [xsl] How to import multiple stylesheets into one xsl file? From: Zhen Jiang <zjwsun@xxxxxxxxx> Date: Thu, 19 Aug 2004 06:35:08 -0700 (PDT) |
My xslt files need to import header, footer, and 2 menu bars because I have so many xslt files and each one of them has the same structure. Let me give an example of the xslt file. ... <xsl:stylesheet> <xsl:import href="footer.xsl"> <xsl:import href="menubarv.xsl"> <xsl:import href="menubarh.xsl"> <xsl:import href="header.xsl"> <xsl:output> <xsl:template match="/"> <xsl:apply-imports/>(should be the header) ... <xsl:apply-imports/>(should be horizontal menubar ) ... <xsl:apply-imports/>(should be vertical menubar ) ... ... <xsl:apply-imports/>>(should be the footer) </xsl:template> </xsl:stylesheet> I thought the imported files would appear in the opposite order that they are imported but only the header printed 4 times. I couldn't find answer anywhere. Thanks a lot, Zhen --- Michael Kay <mhk@xxxxxxxxx> wrote: > > I'm trying to import 4 stylesheets into one xsl > file > > but what I get is the content of one file printed > 4 > > times. How do I import them all? > > I don't think I saw an answer to this question. You > are doing something > wrong, but you haven't shown us your code, so no-one > can tell you what you > are doing wrong. > > Michael Kay > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] How to import multiple st, Michael Kay | Thread | RE: [xsl] How to import multiple st, Michael Kay |
RE: [xsl] Encoding base64 with XSLT, Michael Kay | Date | [xsl] Node implementation, xptm |
Month |