Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > XML > XSLT
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old December 7th, 2007, 08:35 AM
Registered User
 
Join Date: Dec 2007
Location: , , .
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

Reg
Ramanujam



Reply With Quote
  #2 (permalink)  
Old December 7th, 2007, 09:05 AM
Friend of Wrox
Points: 6,648, Level: 34
Points: 6,648, Level: 34 Points: 6,648, Level: 34 Points: 6,648, Level: 34
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2007
Location: Germany
Posts: 1,238
Thanks: 0
Thanked 244 Times in 243 Posts
Default

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.



Reply With Quote
  #3 (permalink)  
Old December 7th, 2007, 09:26 AM
Friend of Wrox
Points: 6,648, Level: 34
Points: 6,648, Level: 34 Points: 6,648, Level: 34 Points: 6,648, Level: 34
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2007
Location: Germany
Posts: 1,238
Thanks: 0
Thanked 244 Times in 243 Posts
Default

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

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 04:02 PM
file manipulation rajuru Pro PHP 0 November 7th, 2006 10:18 PM
Help with a report manipulation arishy Excel VBA 0 December 31st, 2005 11:51 PM
VB and BMP file manipulation. xorprime Beginning VB 6 1 March 2nd, 2005 01:59 PM
Text manipulation Thomas82 Classic ASP Databases 2 February 26th, 2004 03:17 AM



All times are GMT -4. The time now is 10:49 PM.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.