Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Including entity info in head of stylesheet

From: "AndrewF" <andrew@----------------------.--->
To: NULL
Date: 11/7/2005 4:17:00 AM
Hi there,


I have a bunch of XSL documents which are all ccomponents of a single
bigger one. Depending on certain critera different XSL templates are
called in and rules are broken down into different files so we end up
with a more object based approach.


Something that has come up is that we have had to define a bunch of
different entities which are are doing at the top of the XSL doc where
it is needed - thus:


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xsl:stylesheet [
        <!ENTITY copy "&#169;">
        <!-- copyright symbol -->
        <!ENTITY infin "&#8734;">
        <!-- infinity symbol -->
        <!ENTITY nbsp "&#160;">
        <!-- space -->
]>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"xmlns:fo="http://www.w3.org/1999/XSL/Format">



Is not an uncommon set of entities to find at the start of a document.
Originally I had thought if we put the entities at the top of the
master document then they would be used across all the subsequently
included ones as well but that isn't the case.


For the life of me though I can't find out how to "include" a doctype
set of entities that we can store in an external file, build up a
master list and then drop into every other file as a library.


Does anyone know how to do this? 


Cheers 
AndrewF



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent