hi ross,
you have to do like this:
- specify the DTD in an external file(say 'foo.dtd')
- parse the document with a parser that allows you to add a <!DOCTYPE to an
XML file (the drawback, however, is that you must parse the document only
for adding the DTD)...
but if you can tell me what you want to do in detail i can help u in a
better way...
anyway the idea is to create an external DTD to addto an XML file
regards
marco
> -----Original Message-----
> From: EXT Ross Bleakney [mailto:rossb@xxxxxxx]
> Sent: 08. December 1999 1:41
> To: xsl-list@xxxxxxxxxxxxxxxx
> Subject: Dynamically specifying the DTD
>
>
> Is there a way to dynamically specify a DTD file (for an XML
> file). I was
> planning on using a DTD with entities to localize my output.
> I can simply
> specify a set DTD within my XML file and then copy over the
> DTD file for the
> specific language but I am hoping for a nicer solution. Any ideas?
> Thanks,
> Ross
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|