View comments | RSS feed
Contents > CFML Reference > ColdFusion Functions > XmlTransform PreviousNext

XmlTransform

Applies an Extensible Stylesheet Language Transformation (XSLT) to an XML document object that is represented as a string variable. An XSLT converts an XML document to another format or representation by applying an Extensible Stylesheet Language (XSL) stylesheet to it. For more information, see Using XML and WDDX in Developing ColdFusion MX Applications.

A string; an XML document after the XSLT is applied

Conversion functions, Extensibility functions, XML functions

XmlTransform(xmlString | xmlObj, xslString)

cfxml, IsXmlDoc, XmlChildPos, XmlChildPos, XmlFormat, XmlNew, XmlParse, XmlSearch

ColdFusion MX: Added this function.

Parameter

Description

xmlString | xmlObj

A string that represents the XML document, or a parsed object representation of it.

xslString

XSLT transformation to apply.


Contents > CFML Reference > ColdFusion Functions > XmlTransform PreviousNext

ColdFusion 9 | ColdFusion 8 | ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | Bug Reporting

Version 6.1

Comments are no longer accepted for ColdFusion MX 6.1. ColdFusion 8 is the current version.

Comments


No screen name said on Jul 21, 2004 at 9:03 AM :
Please, cann you offer the Path were we should put the xsl-Templates, wich we want to include, via xsl:include? We get only a transformer-Error.
spage said on Sep 24, 2004 at 8:38 PM :
There doesn't seem to be a way to specify values for <xsl:param> elements when you run the transform. E.g. some XSL processors let you pass "-PARAM testParam someValue" on the command line to give <xsl:param name="testParam" /> the value "someValue".

I guess one workaround is to alter the .xsl file before you run xmlTransform().
Jeff_C said on Nov 10, 2004 at 3:09 PM :
This is a flaw in the function xmlTransform() where it doesn't allow you to pass variables to the xslt (not sure why Macromedia dismissed that option since its widely used). Either way, until Macromedia fixes this (which should be really easy) you can use Mark Mandel's awesome xmltransform() UDF replacement. It works great and allows you to send variables to your xslt.

http://www.compoundtheory.com/?action=displayPost&ID=4
Curtis24 said on Jun 7, 2006 at 2:57 PM :
The XmlTransform tag only supports the http://www.w3.org/1999/XSL/Transform namespace. It does not support http://www.w3.org/TR/WD-xsl.
It also does not support the HTML or Coldfusion comment tag. Neither does it support the <FONT> tag.
Had to learn the hard way because I could find no documentation.

 

RSS feed | Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/coldfusion/6.1/htmldocs/funca127.htm