External entity file and formatting with stylesheet
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
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format