Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ColdFusion / Advanced Techniques / August 2006



Tip: Looking for answers? Try searching our database.

SOT XSLT Content is not allowed in prolog.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ian Skinner - 30 Aug 2006 19:29 GMT
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))>
Ian Skinner - 30 Aug 2006 20:04 GMT
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)>
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.