xsl-list
[Top] [All Lists]

RE: [xsl] Saxon9, XMLSpy2009, and result-document href=

2009-10-28 08:16:48

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 


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>