Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 23rd, 2010, 04:21 PM
Registered User
 
Join Date: Jun 2010
Posts: 5
Thanks: 1
Thanked 0 Times in 0 Posts
Default How to include the content of a text file inside another text file using xslt.

Hi,

I am parsing a source xml file to generate a text file. Now I have a requirement in which I have to display few section of the output text page that has to come from a dynamic text file.

I tried using document('filename.txt') and parsed it but getting the below error:
"Error reported by XML parser: Content is not allowed in prolog."

Could you please tell me the possible solution for the above scenerio.

Thanks,
avarma.
 
Old June 23rd, 2010, 04:25 PM
samjudson's Avatar
Friend of Wrox
 
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

You want the XSLT 2.0 unparsed-text() function:

http://www.w3.org/TR/xslt20/#function-unparsed-text
__________________
/- Sam Judson : Wrox Technical Editor -/

Think before you post: What have you tried?
The Following User Says Thank You to samjudson For This Useful Post:
avarma (June 23rd, 2010)
 
Old June 23rd, 2010, 05:10 PM
Registered User
 
Join Date: Jun 2010
Posts: 5
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Hi Sam,

It worked. Thank you so much.

- avarma





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to save an web page content into RTF/text file khatu_jec ASP.NET 2.0 Professional 4 November 27th, 2007 04:52 AM
extract text and image content from .ppt file pratik28 C# 0 May 11th, 2006 06:20 AM
Include file in HTML content itHighway Classic ASP Basics 1 July 25th, 2005 05:44 PM
Extract text from text file & put in dropdown box tsukey Beginning PHP 5 July 20th, 2004 09:49 PM
include php inside the asp file karib Classic ASP Databases 2 November 25th, 2003 03:51 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.