Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT 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 May 4th, 2007, 09:28 AM
Friend of Wrox
 
Join Date: Jul 2006
Posts: 430
Thanks: 28
Thanked 5 Times in 5 Posts
Send a message via Yahoo to bonekrusher
Default SAXON - result-document

Hi,

I am recieving an error when using the result document function with SAXON 8.8.

Code:
<xsl:variable name="fname" select="subsequence(reverse(tokenize(document-uri(.), '//')), 1, 1)"/>
        <xsl:result-document href="file:///c:/temp/{$fname}">


I am trying to save to to C:\temp\{filename here}

I gewt the folloing error:

The filename, directory name, or volume label syntax is incorrect
net.sf.saxon.trans.DynamicError: Exception thrown by OutputURIResolver

Am I allowed to pass a variable to the result document function?


 
Old May 7th, 2007, 07:40 AM
Friend of Wrox
 
Join Date: Jul 2006
Posts: 430
Thanks: 28
Thanked 5 Times in 5 Posts
Send a message via Yahoo to bonekrusher
Default

Any ideas????


 
Old May 7th, 2007, 07:49 AM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

Sorry, I thought I responded, but I was on my travels.

If you want to raise questions about Saxon it's much better to use the saxon-help list or forum at SourceForge.

My only idea about this one is that the message means exactly what it says. Try printing out the URI that you are calculating and passing to result-document to see whether it looks valid.

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
 
Old May 7th, 2007, 08:27 AM
Friend of Wrox
 
Join Date: Jul 2006
Posts: 430
Thanks: 28
Thanked 5 Times in 5 Posts
Send a message via Yahoo to bonekrusher
Default

Thanks Michael,

I will pose this question to the forum at SourceForge.

Bones






Similar Threads
Thread Thread Starter Forum Replies Last Post
grouping and result-document help mrame XSLT 2 October 21st, 2008 11:01 PM
saxon:discard-document problem mrame XSLT 4 September 15th, 2008 05:08 AM
GridView and SQL More than one result = one result DarkForce ASP.NET 2.0 Basics 0 July 20th, 2007 04:29 AM
xsl:result-document instruction bonekrusher XSLT 3 April 12th, 2007 06:01 PM
Saxon variable go4java XSLT 1 July 6th, 2006 10:12 AM





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