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 December 7th, 2007, 09:35 AM
Registered User
Join Date: Dec 2007
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default File Manipulation in DP

I have a 2 requirement to manipulate file in XSLT.

I need to read a file and process it for specific purpose, say to read property server entry.

Once i process a file, i have few information to be stored under a specific location , say sort of logging.

Please advise File manipulation process using XSLT


Old December 7th, 2007, 10:05 AM
Friend of Wrox
Join Date: Nov 2007
Posts: 1,243
Thanks: 0
Thanked 245 Times in 244 Posts

XSLT 1.0 and 2.0 can read in XML documents using the XSLT function named 'document' http://www.w3.org/TR/xslt#document.
XSLT 2.0 also has a function named 'unparsed-text' http://www.w3.org/TR/xslt20/#function-unparsed-text to read in text documents. You can then for instance process/parse the text with regular expressions.

Old December 7th, 2007, 10:26 AM
Friend of Wrox
Join Date: Nov 2007
Posts: 1,243
Thanks: 0
Thanked 245 Times in 244 Posts

As for logging information to a file, with XSLT 2.0 you can use xsl:result-document http://www.w3.org/TR/xslt20/#creating-result-trees

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sequential File Manipulation chandan8888 BOOK: Professional Visual Studio 2008 ISBN: 978-0-470-22988-0 1 January 14th, 2013 05:02 PM
file manipulation rajuru Pro PHP 0 November 7th, 2006 11:18 PM
Help with a report manipulation arishy Excel VBA 0 January 1st, 2006 12:51 AM
VB and BMP file manipulation. xorprime Beginning VB 6 1 March 2nd, 2005 02:59 PM
Text manipulation Thomas82 Classic ASP Databases 2 February 26th, 2004 04:17 AM

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