[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: importing from txt file

Subject: RE: importing from txt file
From: Bas Alberts <bas.alberts@xxxxxxxxxxxx>
Date: Mon, 3 Sep 2001 13:25:31 +0200
jsp import text 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@xxxxxxxxxxxx



-----Original Message-----
From: john wa [mailto:jonni@xxxxxxxxx]
Sent: Monday, September 03, 2001 12:03
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject:  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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.