Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - xi:include and global entity >Thread Next - Re: xi:include and global entity Re: xi:include and global entityTo: NULL Date: 9/2/2004 12:06:00 AM In article <pan.2004.09.01.23.56.04.678211@g...>, Thomas Sommer <mawa15@g...> wrote: >Basically I want to insert my programlisting from a global entity. Why do you need to put the contents of the file in an entity? Why not just do <xi:include href="http://localhost/dummy/test" parse="text"/> ? An ugly trick is to do something like this: <!ENTITY % test PUBLIC "BLA" "http://localhost/dummy/test"> <!-- NB test is a parameter entity! --> <!ENTITY source "<![CDATA[%test;]]>"> This won't work if your source contains ]]> of course. -- Richard | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
