Skip to main content
Inspiring
August 30, 2006
Question

SOT XSLT Content is not allowed in prolog.

  • August 30, 2006
  • 1 reply
  • 323 views
Can anybody point out where I have content in a prolog?

<cfsavecontent variable="articleXSL">
<xsl:stylesheet xmlns:xsl=" http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:output method="text"/>

<xsl:template match="/">
<xsl:for-each select="articles/child::*">
<xsl:value-of select="@id" />,
</xsl:for-each>0
</xsl:template>

</xsl:stylesheet>
</cfsavecontent>

That is used in this line.
<cfset tempXML = xmlParse(xmlTransform(session.xmlobj,articleXSL))>
This topic has been closed for replies.

1 reply

Inspiring
August 30, 2006
That is used in this line.
<cfset tempXML = xmlParse(xmlTransform(session.xmlobj,articleXSL))>

It took me an hour to realize I needed to remove the xmlParse function
from this line. I was trying to parse the text and/or html I was
returning from my xslt back into an xml object.

<cfset tempXML = xmlTransform(session.xmlobj,articleXSL)>