[xsl] External entity file and formatting with stylesheet

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