Subject: [xsl] External entity file and formatting with stylesheet From: llobash@xxxxxxxx Date: Thu, 9 Feb 2006 14:44:29 -0500 |
I am incorporating one XML file as external entity into another using the following method: (From FAQ) Within your stylesheet, declare the entity within a DOCTYPE at the top of the page: <!DOCTYPE xsl:stylesheet [ <!ENTITY style SYSTEM 'style.xml'> ]> Then, at the point where you want to include the contents of that file, refer to the entity you've defined with an entity reference: <xsl:template match="/"> <html> <head> <title>My Page</title> <!-- CSS styles included here --> &style; </head> <body> ... </body> </html> </xsl:template> The contents of your style.xml file will then be included wherever you reference the entity. The file is included, however, formatting instructions in the stylesheet are not being applied to entity file. Anyone know what I am missing? Thank you, Lynn
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Selecting nodes with the , Michael Kay | Thread | Re: [xsl] External entity file and , David Carlisle |
RE: Re: [xsl] Translating XHTML or , cknell | Date | Re: [xsl] Stumped on XPath, Wendell Piez |
Month |