Wrox Programmer Forums
|
BOOK: XSLT 2.0 and XPath 2.0 Programmer's Reference, 4th Edition ISBN: 978-0-470-19274-0
This is the forum to discuss the Wrox book XSLT 2.0 and XPath 2.0 Programmer's Reference, 4th Edition by Michael Kay; ISBN: 9780470192740
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: XSLT 2.0 and XPath 2.0 Programmer's Reference, 4th Edition ISBN: 978-0-470-19274-0 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 26th, 2010, 01:29 AM
Registered User
 
Join Date: Jun 2010
Posts: 1
Thanks: 2
Thanked 0 Times in 0 Posts
Default how to actually transform an XML with XSLT?

I'm only starting out with XSLT (I'm following XSLT 2.0 and XPath 2.0 Programmer's Reference if you are wondering why I'm posting this here) and I can understand this is obviously a very stupid question.

I have a simple XML 1.0 file whose elements and attributes need to match another data-system with a separate naming convention and I have managed to write a fairly simple XSLT to form a new XML conforming to these rules.

Currently I'm doing the coding in Dreamweaver CS4 and attaching the XML to the XSL and then finally viewing the changed XML as a temporary htm file in the browser. when I attach the XML to the XSL, DW adds the following syntax to the XSL:

Code:
<!-- DWXMLSource="frthe110.xml" -->
so I'm led to believe that there is some kind of XSLT processor/parser inside DW that's doing the job. but these files are temporary and I have do a bulk transformation of some 120 odd files.

So my question is this:
I'm contemplating purchasing Saxon or Altova XMLspy, but I'm not sure if these products are just some sort of development environments or if they can actually run the transformations. I guess they're not, right? In that case can anybody tell me how to do the actual transformations and if I need to purchase anything additionally?

Thanks,
ovlique.

Last edited by ovlique; June 26th, 2010 at 02:01 AM..
 
Old June 27th, 2010, 03:00 PM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

Altova is a full XML development environment that includes an XSLT 2.0 processor as one of its components.

Saxon is essentially a bundle containing an XSLT processor, and XQuery processor, and an XML Schema processor.

If you install either product, you will be able to run XSLT 2.0 transformations without installing anything else.

As the author of the book I refrain from comparing the products, but as the author of the Saxon product, I'm happy to explain its benefits on a different forum!

Note that the way you are currently doing transformations using Dreamweaver and a web browser means (a) you are probably limited to XSLT 1.0, and (b) you will probably get rather poor diagnostics.
__________________
Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer\'s Reference
The Following User Says Thank You to mhkay For This Useful Post:
ovlique (June 28th, 2010)
 
Old June 27th, 2010, 03:06 PM
samjudson's Avatar
Friend of Wrox
 
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

I'll just point out that Altova also provide their XSLT processor as a stand alone component, AltovaXML which is free (windows only).

As is the free version of Saxon (Java - will run inside any recent JVM).

If you want an easy way to use Saxon you could get Kernow for Saxon, an open source IDE for Saxon.
__________________
/- 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:
ovlique (June 28th, 2010)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Using XSLT to transform one XML format to other sivakumar_g01 XSLT 3 June 14th, 2010 09:45 AM
XML/XSLT Transform Error in ASP kwilliams Classic ASP XML 2 October 9th, 2007 02:26 AM
Transform SQL server 2005 XML with xslt bonekrusher XSLT 0 July 11th, 2007 07:45 PM
Transform XML with XSLT in JavaScript Mozilla Spankmaster79 Javascript 3 January 18th, 2006 07:31 AM
XSLT read through XML to transform another XML dendenx2 XSLT 8 July 7th, 2005 08:18 PM





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