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
Conferences Close Tree View
+ Stylus Studio Feature Requests (1192)
- Stylus Studio Technical Forum (14621)
-> + Stylus Studio - Registrar en o... (2)
-> + Can a pipeline send a file by ... (2)
-> + After Updateing WIN10 to WIN11... (12)
-> + Where do I add the custom java... (3)
-> + Where is the Diagram tab? (5)
-> + Applying XSLT to Word DOCX/XML (2)
-> - CSV conversion via ConvertToXM... (1)
-> + Text symbols in SS not same as... (4)
-> + Exposing xquery as webservice ... (6)
-> + Syntax Identifier (2)
-> + Saving a Converted XML as an X... (5)
-> + Output document cannot be pars... (4)
-> - Archiving output from conversi... (1)
-> + EDIFACT guideline from Stylus ... (3)
-> + CSV file putting all the data ... (5)
-> + Can't install Home version 64b... (5)
-> + presale - Can I covers this sc... (5)
-> + Problem with UNB (5)
-> + Splitting EDIFACT files pipeli... (4)
-> + Problem with SAXO processor - ... (5)
-> + PDF Format Help (4)
-> + License check unreliable (3)
-> - XML related issue (1)
-> + Need help regarding pipeline o... (2)
-> + Error converting XML to EDIFAC... (4)
-> + XSLT Profiling for XSLT 1.0 s... (2)
-- [1-20] [21-40] [41-60] Next
+ Website Feedback (249)
+ XSLT Help and Discussion (7625)
+ XQuery Help and Discussion (2017)
+ Stylus Studio FAQs (159)
+ Stylus Studio Code Samples & Utilities (364)
+ Stylus Studio Announcements (113)
Topic  
Postnext
Mark MaltbySubject: Processing Error
Author: Mark Maltby
Date: 04 May 2006 06:41 AM
I am using MSXML 4 processor when going live with my stylesheets. When testing i used the built in processor and it works.

When using the msxml processor i get the following error:

External XSLT processing started...

Error occurred while executing stylesheet 'c:\Dev\RiskRegisterXMLReports\StyleSheets\STY916.xsl'.

Code: 0x80004005
Reference to variable or parameter 'month' must evaluate to a node list.
...done
Preloading schema file file://c:\Dev\RiskRegisterXMLReports\Schemas\RiskRegisterSchema.xsd

C:\DOCUME~1\MARK~1.PER\LOCALS~1\Temp\RES917.html:4,3: FATAL ERROR: Expected end of tag 'META'

The XSL output is valid


Any ideas?

Postnext
(Deleted User) Subject: Processing Error
Author: (Deleted User)
Date: 04 May 2006 09:35 AM
Hi Mark,

Did you try the XSLT with MSXML 4 processor from within Stylus Studio? If not, try it and see if you have the same issue.

Regards
- Srini

Postnext
Mark MaltbySubject: Processing Error
Author: Mark Maltby
Date: 04 May 2006 10:29 AM
The problem is there as well. I have narrow the problem down to this part of code

<xsl:call-template name="GET_3MONTH">
<xsl:with-param name="month">
<xsl:call-template name="GET_MONTH">
<xsl:with-param name="date">
<xsl:value-of select="$date"/>
</xsl:with-param>
</xsl:call-template>
</xsl:with-param>
</xsl:call-template>

<xsl:template name="GET_3MONTH">
<xsl:param name="month"/>

<xsl:choose>
<xsl:when test="$month[number()=01 or number()=1]">
<xsl:text>Jan</xsl:text>
</xsl:when>
<xsl:when test="$month[number()=02 or number()=2]">
<xsl:text>Feb</xsl:text>
</xsl:when>
<xsl:when test="$month[number()=03 or number()=3]">
<xsl:text>Mar</xsl:text>
</xsl:when>
<xsl:when test="$month[number()=04 or number()=4]">
<xsl:text>Apr</xsl:text>
</xsl:when>
<xsl:when test="$month[number()=05 or number()=5]">
<xsl:text>May</xsl:text>
</xsl:when>
<xsl:when test="$month[number()=06 or number()=6]">
<xsl:text>Jul</xsl:text>
</xsl:when>
<xsl:when test="$month[number()=07 or number()=7]">
<xsl:text>Jul</xsl:text>
</xsl:when>
<xsl:when test="$month[number()=08 or number()=8]">
<xsl:text>Aug</xsl:text>
</xsl:when>
<xsl:when test="$month[number()=09 or number()=9]">
<xsl:text>Sep</xsl:text>
</xsl:when>
<xsl:when test="$month[number()=10]">
<xsl:text>Oct</xsl:text>
</xsl:when>
<xsl:when test="$month[number()=11]">
<xsl:text>Nov</xsl:text>
</xsl:when>
<xsl:when test="$month[number()=12]">
<xsl:text>Dec</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text>Dec</xsl:text>
</xsl:otherwise>

</xsl:choose>

</xsl:template>

<xsl:template name="GET_MONTH">
<xsl:param name="date"/>

<xsl:value-of select="substring($date,6,2)"></xsl:value-of>

</xsl:template>

Postnext
Mark MaltbySubject: Processing Error
Author: Mark Maltby
Date: 04 May 2006 11:04 AM
The problem is caused the Choice function. The processor believes that the template should return a list node. Any ideas on how to correct this?

Postnext
(Deleted User) Subject: Processing Error
Author: (Deleted User)
Date: 04 May 2006 11:29 AM
Hi Mark

Try changing it to

<xsl:when test="$month='01' or $month='1'">

Use straight comparison.

Regards
Srini

Postnext
Mark MaltbySubject: Processing Error
Author: Mark Maltby
Date: 04 May 2006 11:41 AM
What is the difference?

Posttop
(Deleted User) Subject: Processing Error
Author: (Deleted User)
Date: 04 May 2006 12:06 PM
With MSXML 4, looks like the GET_MONTH template is returning back a string 'literal', not a 'node'. In the GET_3MONTH template you are using a node expression, while you are passing in a string.

Regards
Srini

   
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.