• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

SOT XSLT Content is not allowed in prolog.

LEGEND ,
Aug 30, 2006 Aug 30, 2006

Copy link to clipboard

Copied

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))>
TOPICS
Advanced techniques

Views

276

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 30, 2006 Aug 30, 2006

Copy link to clipboard

Copied

LATEST
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)>

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation