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: importing from txt file


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


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