Altova Mailing List Archives


RE: [xsl] That old song "document() with text-files"

From: "Michael Kay" <mhk@--------->
To:
Date: 4/25/2003 9:20:00 AM
You can use the XSLT 2.0 function unparsed-text() in Saxon 7.4.

Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx 

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx 
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of 
> Alexander Johannesen
> Sent: 25 April 2003 11:55
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: [xsl] That old song "document() with text-files"
> 
> 
> Hi,
> 
> I've got a problem with importing data from text-files. Of 
> course it isn't supposed to work, but my question is more; 
> does anyone have any idea of how to solve the problem of 
> reading documents that aren't XML, as pure CDATA? Using 
> document() is for XML docs only, but maybe some 
> vendor has made some extension to this common problem? All I 
> need is a CDATA copy-of of a file; no parsing or anything, a 
> pure copy.
> 
> The text-input files are generated elsewhere, and I don't 
> have the option 
> to add XML-wrapper to it, nor making the little HTML inside XHTML.
> 
> I *could* use ENTITIES and define these, but filenames come 
> in during parsing in a variable $filename, so it can't work 
> that way. Any ideas anyone?
> 
> 
> Alexander
> -- 
> ___________________ ______________________ 
> _____________________________
>                    |                      |
> http://shelter.nu/ | alex at shelter . nu | 
> http://shelter.nu/xsiteable/ 
> ___________________|______________________|___________________
> __________
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Disclaimer

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.