xsl-list
[Top] [All Lists]

External entity file and formatting with stylesheet

2006-02-09 12:44:29

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


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>