This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Imbbeding text files
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] Imbbeding text files
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Thu, 31 May 2001 16:21:12 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
> I have used the document() function to access data from a
> separate xml file.
> Is there a way to have the document() function read the data
> in a simple
> text file and imbed this data as text for an element in the
> output file?
As an alternative to the suggestions based on using entities (which require
the text to avoid special characters such as "&"), why not read the content
of the file into a string from your calling application, and pass that
string into the transformation as a parameter?
Mike Kay
Software AG
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list