[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Why aren't ENTITY declarations in a main stylesheet v
Hi Folks, I have a "main" stylesheet that declares a bunch of entities: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE xsl:stylesheet [ <!ENTITY sidPROC "'2'"> <!ENTITY starPROC "'1'"> ... ]> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-result-prefixes="xs" version="3.0"> The main stylesheet xs:includes some supporting stylesheets: <xsl:include href="MAP-sid.xsl"/> <xsl:include href="MAP-star.xsl"/> Those supporting stylesheets use the entities, e.g., <xsl:assert test="$TRM_PAR_row/PROC eq &sidPROC;" /> When I run SAXON on my main stylesheet I get this error: SXXP0003 Error reported by XML parser: The entity "sidPROC" was referenced, but not declared. I thought that an xs:include is essentially a "macro substitution", in which case the entity declaration should be visible, yes? I don't want to have ENTITY declarations scattered around multiple files. What's the best way to deal with ENTITIES? /Roger
|
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
|