Skip navigation
umuayo
Currently Being Moderated

XML to XSL

Aug 20, 2012 12:04 PM

I am strugling to output my xml document in an xsl format.

My xml document is created in a function, and I have another function that takes the xml and transform it to an xsl document... something is wrong somewhere the output to xsl is not happening.

 

My question is, how would I transform an XML document to an XSL. The outputs for both are created on the fly, thus the function returns the xml which I am using to create the xsl and saved in a cfsavecontent and then output to html. no files are saved to the drive

 
Replies
  • Currently Being Moderated
    Aug 20, 2012 2:56 PM   in reply to umuayo

    Can you clarify what you mean?  An XSL file is already intrinsically XML, so your question is "ambiguous" if you don't show us a before and after of the requirement, as well as the code you've been working on to try to effect the solution.

     

    Are you perhaps meaning you're trying to use XSL to transform XML into [whatever the XSL defines the transformation to be]?  Again, without getting a better idea of the inputs and the outputs, it's difficult to say.

     

    The basic form of performing an XSL transformation in CF is:

     

    result = smlTransform(anXmlDoc, anXslDoc);

     

    It doesn't matter if the XML or XSL are strings containing the XML / XSL, file paths that contain them, or anything else that returns either of those.

     

    --

    Adam

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points