This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: importing from txt file
- To: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] importing from txt file
- From: Bas Alberts <bas dot alberts at group2000 dot nl>
- Date: Mon, 3 Sep 2001 13:25:31 +0200
- Reply-To: xsl-list at lists dot mulberrytech dot com
John,
Perjaps you could tell the list a bit more about your environment.
For example, if you are using a JSP environment, you could include the text
file in an XML document, and then perform the XSL on that document.
The XML file could be composed as follows in JSP:
<?xml version="1.0"?>
<myTextNode>
<%@include file="myFile.txt" %>
</myTextNode>
Just in case,
bas.alberts@group2000.nl
-----Original Message-----
From: john wa [mailto:jonni@gmx.co.uk]
Sent: Monday, September 03, 2001 12:03
To: xsl-list@lists.mulberrytech.com
Subject: [xsl] importing from txt file
in my xsl i need to reference an external document which is a text file.
i try to do something like <xsl:copy-of select="document('eg.txt')/" />
but obviously, because eg.txt isn't an xml file it won't work. is there
another way to import a file but treat the whole file as CDATA?
thanks.
--
Sent through GMX FreeMail - http://www.gmx.net
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list