[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Saxon9, XMLSpy2009, and result-document href=

Subject: RE: Saxon9, XMLSpy2009, and result-document href=
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Wed, 28 Oct 2009 12:15:59 -0000
RE:  Saxon9
> While developing my XSLT 2.0 transformation files using 
> XMLSpy 2009, I was able to save output to the result-document 
> @href value of "C:/folder/file.xml" but when using Saxon9 
> this doesn't work.  Saxon9 seemed to only work if I used 
> "file:////C:/folder/file.xml" instead (Which doesn't work 
> with XMLSpy).  
> 

The specification states that it must be a URI. Many products accept Windows
filenames in places where the W3C specs mandate a URI, but in general, Saxon
doesn't.

It should be file:///C:/folder/file.xml or possibly file:/C:/folder/file.xml
- but I'm not surprised you got away with ////, the specs for the file: URI
scheme are pretty fuzzy.

You might find that the most portable solution is to use a relative URI
(e.g. file.xml). This is interpreted relative to the base Output URI, which
will generally be the destination of the primary output of the
transformation.

Regards,

Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay 

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2011 All Rights Reserved.