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 March 9th, 2010, 04:50 PM
Authorized User
 
Join Date: Jan 2010
Posts: 12
Thanks: 2
Thanked 0 Times in 0 Posts
Default result-document: capital letter or not

Hello,

could anyone give me a hint how to handle that issue:

Creating files in a windows-environment with

Code:
<xsl:result-document href="Test.xml">
will create a file named Test.xml.

Code:
<xsl:result-document href="test.xml">
will create a file named test.xml, if there is no file Test.xml
will create a file named Test.xml, if there is a file Test.xml

As result-document does not care about any existing file and would overwrite it anyway this behaviour looks strange to me. Is there any work-around? Like: Can I delete a file from within a stylesheet?

(The problem accurs when building URLs out of XML-attribute-values for UNIX-environment, where upper and lower case matters.)

Best regards

Christian
 
Old March 9th, 2010, 04:59 PM
Authorized User
 
Join Date: Jan 2010
Posts: 12
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Hello,

please close that thread again - my fault. I am still wondering, but it seems to be a standard windows behaviour: Pasting one file on another existing file will overwrite the file, but will keep the original name in case it only differs in upper or lower cases.

Best regards

Christian
 
Old March 9th, 2010, 06:53 PM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

Yes, Windows has some odd behaviours in this area, but it's nothing really to do with XSLT.
__________________
Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer\'s Reference





Similar Threads
Thread Thread Starter Forum Replies Last Post
Unknown XSLT element:result-document nisargmca XSLT 2 January 6th, 2010 07:34 AM
Using <XSL:Result-Document> to post to a URL over HTTP ITEpicurean XSLT 1 December 15th, 2009 06:56 PM
grouping and result-document help mrame XSLT 2 October 21st, 2008 11:01 PM
SAXON - result-document bonekrusher XSLT 3 May 7th, 2007 08:27 AM
xsl:result-document instruction bonekrusher XSLT 3 April 12th, 2007 06:01 PM





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