[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: importing from txt file
john wa wrote:
in my xsl i need to reference an external document which is a text file. You can use xml's external entities, e.g. place at the prolog of your stylesheet entity declaration: <!DOCTYPE xsl:stylesheet [ <!ENTITY text SYSTEM "file://c:\text.txt"> ]> and then in a template you can output it this way: <xsl:text>&text;</xsl:text> But be warned: non-validating xml parser may not resolve external entities at all, in fact ie5 does resolving but mozilla doesn't. -- Oleg Tkachenko Multiconn International 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
|