This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: propagating entities definitions into resulting XML


>Does anybody know how I could this, then :
>Have an file with my entities included (by a parameter file entity) in my 
>result XML doc ?
>Would something like this work, for example :
><!DOCTYPE test SYSTEM "test.dtd" [
>   <!ENTITY % myent PUBLIC "-//ME//MYENT//EN" "myent.ent">
>   %myent;
>]>

Using an output element like this

  <xsl:output method="xml" doctype-system="test.dtd"/>

you could output 

  <!DOCTYPE test SYSTEM "test.dtd">

but I know of no way to output an internal DTD subset (the stuff in the
square brackets) with it. If test.dtd includes a general parameter entity
reference to myent.ent, that may serve your needs.

Bob DuCharme          www.snee.com/bob           <bob@  
snee.com>  "The elements be kind to thee, and make thy
spirits all of comfort!" Anthony and Cleopatra, III ii


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]