Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 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 Search this Thread Display Modes
  #1 (permalink)  
Old June 26th, 2010, 01:29 AM
Registered User
 
Join Date: Jun 2010
Location: Kolkata, India
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..
Reply With Quote
  #2 (permalink)  
Old June 27th, 2010, 03:00 PM
mhkay's Avatar
Wrox Author
Points: 18,487, Level: 59
Points: 18,487, Level: 59 Points: 18,487, Level: 59 Points: 18,487, Level: 59
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2004
Location: Reading, Berks, United Kingdom.
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
Reply With Quote
The Following User Says Thank You to mhkay For This Useful Post:
ovlique (June 28th, 2010)
  #3 (permalink)  
Old June 27th, 2010, 03:06 PM
samjudson's Avatar
Friend of Wrox
Points: 8,687, Level: 40
Points: 8,687, Level: 40 Points: 8,687, Level: 40 Points: 8,687, Level: 40
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2007
Location: Newcastle, , United Kingdom.
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?
Reply With Quote
The Following User Says Thank You to samjudson For This Useful Post:
ovlique (June 28th, 2010)
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
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



All times are GMT -4. The time now is 09:40 PM.


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