|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Dynamically specifying the DTD
Hi Marco, I think what ross really want is "Macro" :-)
Forgive me,
you can define <!ENTITY % X Y>,
which is aliasing X to Y to reuse Y's definition.
But also keep X's name to be content related.
The only problem is that you can not aliasing directly
like this <!ELEMENT A (B, C, %X; )>.
Actually you might have to do it in two seperate steps.
Is that right ross?
Thanks!
Gene
Marco.Mistroni@xxxxxxxxx wrote:
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
--
Jingwen "Gene" Wang
Sr. Software engineer
StockMaster.com
20300 Stevens Creek Blvd., Ste. 400
Cupertino, CA
tel/ 408.861.3463
fax/ 408.861.3401
wang@xxxxxxxxxxxxxxx
http://www.stockmaster.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
|

Cart








