XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Kurt WaldSubject: X14 Saxon document uri problem
Author: Kurt Wald
Date: 05 Dec 2011 08:30 AM
Hi,

there seems to be a problem with Saxon 9.3 bundled with X14 Enterprise - the document function does not work. The code fragment:

---------------------------------------------------------------
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-result-prefixes="#all">
<xsl:param name="MAILCONFIG" select="'R:\Temp\mailconfig.xml'" as="xs:string"/>
<xsl:output method="xml" encoding="UTF-8" indent="yes"/>
<xsl:template match="/">
<xsl:variable name="v_MailDatei" select="document($MAILCONFIG)"/>
<xsl:variable name="v_host" select="string($v_MailDatei/Ini/Section[1]/host)" as="xs:string"/>
---------------------------------------------------------------

produces FODC0002: Exception thrown by URIResolver for $MailDatei. Using 'file:///R:\Temp\mailconfig.xml' or 'file:///R:/Temp/mailconfig.xml' or 'file:///R|/Temp/mailconfig.xml' as parameter for the document() function does not change anything. For Saxon configuration see attached png.

With Saxon 9.1 inside Stylus Studio 2011 Enterprise everything works fine.

Kurt Wald


Imagesaxopt.png
Saxon Configuration

Postnext
Ivan PedruzziSubject: X14 Saxon document uri problem
Author: Ivan Pedruzzi
Date: 05 Dec 2011 10:26 AM

Hi Kurt,

I tried to reproduce the error without success, see screenshot attached

What do you see in the output windows (click View -> Output Window)?

Could you try setting a dummy XML document as main input in the scenario dialog?


Hope this helps
Ivan Pedruzzi
Stylus Studio Team

Postnext
Kurt WaldSubject: X14 Saxon document uri problem
Author: Kurt Wald
Date: 06 Dec 2011 04:27 AM
Hi Ivan,

the mapping has an input file in the scenario and the output is created correctly. The document function is used to open a second file containing SMTP configuration data for sending email notifications from inside the mapping through an extension function (see attached png). As I already mentioned this works with Saxon 9.1.0.5 inside Stylus Studio 2011 and as compiled stylesheet with Saxon 9.1.0.8 standalone.

Kurt


Imageprj.png

Postnext
Ivan PedruzziSubject: X14 Saxon document uri problem
Author: Ivan Pedruzzi
Date: 07 Dec 2011 05:49 PM
Originally Posted: 06 Dec 2011 03:42 PM
After discussing offline we have determined that activating the Stylus Studio URI resolver fixes the warning, unfortunately we could not replicate the problem in house.

Hopefully Kurt will provide a simple test case sometime in the future.


Ivan Pedruzzi
Stylus Studio Team

Posttop
Ivan PedruzziSubject: X14 Saxon document uri problem
Author: Ivan Pedruzzi
Date: 20 Jan 2012 11:19 AM


Thanks to Kurt, we have identified the problem and fixed it, you can find the X14 maintenance release build 1814a at http://www.stylusstudio.com/update/X14.html

Ivan Pedruzzi
Stylus Studio Team

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.