Hi,
See the following test case which is a nice simple XSLT with CF
example (Thanks to Ben Nadel), the following BD Internal server error
gets thrown.
BlueDragon Internal Server Error
The page you were executing caused an internal BlueDragon server error
Request /testcase.cfm
File Trace C:/inetpub/wwwroot/icPixl8/testcase.cfm
Type Internal
Tag Context CFOUTPUT (C:/inetpub/wwwroot/icPixl8/testcase.cfm,
Line=95, Column=2)
Source
97 : #XmlTransform(
98 : xmlData,
99 : Trim( strXSLT )
100: )#
101: </cfoutput>
^ Snippet from underlying CFML source
Stack Trace
java.lang.NoClassDefFoundError: org/apache/xml/serializer/
ExtendedContentHandler
Test case below
<---
---------------------------------------------------------------------------------------
----
Blog Entry:
My First ColdFusion XML / XSLT Example
Author:
Ben Nadel / Kinky Solutions
Link:
http://www.bennadel.com/index.cfm?event=blog.view&id=942
Date Posted:
Sep 6, 2007 at 2:05 PM
----
---------------------------------------------------------------------------------------
--->
<!--- Define the ColdFusion XML document object. --->
<cfxml variable="xmlData">
<messages>
<message id="1">
<text>Hello World</text>
</message>
<message id="2">
<text>Eating kittens is just plain wrong!</text>
</message>
<message id="3">
<text>Honk if you love justice!</text>
</message>
</messages>
</cfxml>
<!--- Define the XSL Transformation (XSLT). --->
<cfsavecontent variable="strXSLT">
<!--- Document type declaration. --->
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:transform
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!---
Bind this template to the root of the XML document
using the "/" match attribute.
--->
<xsl:template match="/">
<html>
<head>
<title>My ColdFusion XSLT Hello World</title>
</head>
<body>
<h1>
Messages
</h1>
<!--- Loop over each message node. --->
<xsl:for-each select="//message">
<p>
<!---
Output the ID of the
current
contextual message node.
--->
<xsl:value-of
select="@id"
/>:
<!---
Get the Text value of
the descendent
TEXT node of the
current contextual
message node.
--->
<xsl:value-of
select="text"
/>
</p>
</xsl:for-each>
</body>
</html>
</xsl:template>
</xsl:transform>
</cfsavecontent>
<cfoutput>
<!--- Output the transformed XML document. --->
#XmlTransform(
xmlData,
Trim( strXSLT )
)#
</cfoutput>
Many thanks
Alex
--
official tag/function reference: http://openbd.org/manual/
mailing list - http://groups.google.com/group/openbd?hl=en