Wrox Programmer Forums
|
BOOK: Beginning XML, 4th Ed ISBN: 978-0-470-11487-2
This is the forum to discuss the Wrox book Beginning XML, 4th Edition by David Hunter, Jeff Rafter, Joe Fawcett, Eric van der Vlist, Danny Ayers, Jon Duckett, Andrew Watt, Linda McKinnon; ISBN: 9780470114872
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning XML, 4th Ed ISBN: 978-0-470-11487-2 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 July 24th, 2009, 04:21 AM
Registered User
 
Join Date: Jul 2009
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Default XSLT source other than XML

on Pp 288 of the text it states the following:

"In XSLT 1.0 the source had to be XML. In version 2.0 this restriction does not apply and you can transform other formats, such as CSV files, wherer the data is separated by commas and carriage returns, into different structures"

Does anyone have any examples of this implementation? I've searched the internet and all I've found were tools that perform the translation which leads me to believe that this may have been a misprint. If you have an example, I respectfully request that you post it. Thanks for entertaining this query.

-Jeff Williams
MOVES Curric 399-081
Naval Postgraduate School
 
Old July 24th, 2009, 07:07 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

The Saxon processor is a full XSLT 2.0 implementation. Look for the unparsed-text function in the docs.

It's basically used in the same way as the document function but the result is a plain string not an XML document.

It means you can bring in text documents, you still can't have a non-XML document as the primary source of the transformation.

I was fairly sure that there was also an example in the book you mentioned but perhaps I'm wrong.

Added: I think the example mentioned is in Chapter 8 in the XSLT 2.0 section. An old fashioned ini file is transformed into a more modern XML representation.
__________________
Joe
http://joe.fawcett.name/

Last edited by joefawcett; July 24th, 2009 at 07:17 AM.. Reason: Example found





Similar Threads
Thread Thread Starter Forum Replies Last Post
Regarding xml-html transformation of an xml string using xslt and javascript suprakash444 XSLT 1 January 12th, 2009 01:23 AM
Converting Source Xml into Target Xml Using XSL. alapati.sasi XSLT 3 May 14th, 2007 10:54 AM
xml and xsl templates as input to xslt gives xml rameshnarayan XSLT 5 August 3rd, 2005 01:58 AM
XSLT for complicated xml to xml transf. required doug@sirvisetti XSLT 3 June 17th, 2005 04:26 PM
merge two xml file and make new xml using xslt ketan XSLT 0 September 21st, 2004 08:48 AM





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