I dunno... your XSLT skills must be pretty good if you are managing to get instances of those entities to appear in the output document. So, I think this article answers your question and should be easy for you to follow.
Brian R. Wainwright
Joined: Aug 12, 2003
Thanks for the kudos Paul! I know enough to get suckered into doing things like this! I had read that article already and it didn't quite seem like what I wanted to do, so I ended up using <xsl:text> tags to write out the DOCTYPE declaration manually. This made more sense since some fo the info I had in the <!ENTITY> declarations I needed to generate would have to be retrieved on the fly. For anyone interested, as far as I could find out, you can't do this any other way. Here's what I did....