Skip to main content
doggonemess
Known Participant
July 14, 2014
Answered

problem cf10 installation xml error - Conflicting values for output property method

  • July 14, 2014
  • 1 reply
  • 3677 views

We just completed a ColdFusion 10 installation on Windows Server 2008 R2. After taking care of some configuration issues, we're now faced with a problem that we can't figure out. Searches on Google for the error returned almost nothing.

The error occurs when xmltransform is called in a CFC file. The error we get from CF is:

An error occured while Transforming an XML document

             Failed to compile stylesheet. 1 error detected.            

It's not very helpful. In the coldfusion-error.log file, we have this entry:

Error at xsl:output on line 2 column 193

  XTSE1560: Conflicting values for output property method

Anyone have any ideas how to fix this? Is it something simple that we overlooked, or a fundamental difference in the way CF10 handles xmltransform?

Thanks,

Jamie Carter

This topic has been closed for replies.
Correct answer BKBK

Sorry, no dice. Good thought, though. I had a feeling that might produce a different result, but nope, more of the same.

Error at xsl:output on line 2 column 45

  XTSE1560: Conflicting values for output property method


This is telling us that there is another xsl:output element defined elsewhere. Have you checked the included XSL files?

1 reply

doggonemess
Known Participant
July 14, 2014

The issue appears to be related to this post on StackOverflow: xslt - ColdFusion - pass XML as parameter to xmlTransform() in CF10 - Stack Overflow.

I tried creating a very simple XML/XSL to transform, and used Adobe's example files. I got the output column headers in the example without an error, but did not show any data. In reviewing Adobe's example, it appears that the files have conflicting info, like they were made for two different examples. So that's not terribly helpful.

BKBK
Community Expert
Community Expert
July 15, 2014

If the issue is related to the Stackoverflow post, then you could solve it by coverting the XML and XSL to string before using them to call calling xmlTransform. Also, if you use the third parameter in the function xmlTransform, ensure that it is a structure that contains key-value pairs, the values being of simple type.

doggonemess
Known Participant
July 15, 2014

Thanks very much for the suggestion. I used toString() to convert the input to string, but I'm getting the same error:

Error at xsl:output on line 2 column 193

  XTSE1560: Conflicting values for output property method

I tested the XML/XSLT functionality using example code, and it worked fine. The problem must lie somewhere else.

This is the code we're using:

        <cfset xsltFileCorrected = trim("../" & this.xsltFile)>

        <cfset xsltFileCorrected = REReplace( xsltFileCorrected, "^[^<]*", "", "all" )>

        <cfset thisXmlDom = tostring(this.xmlDom)>

        <cfset xsltFileCorrected = tostring(xsltFileCorrected)>

        <cfset this.pageOutput=xmltransform(thisxmlDom,xsltFileCorrected,parameters)>

Is there anything malformed about this code? Would it help to see a dump of the XML and XSLT input?