I'm learning XML and integrating it wit CFMX at the same time. We are doing a prototype application here, recreating our Intranet phone directory in XML. The idea is to create one XML file that is stored for 1 week, (we generally only get new employees on Mondays, so it will refresh each Monday) Creating this XML document with the CFXML tag and saving it with CFFILE is very straight forward. Things start getting a little confusing when I start trying to integrate a XSL document so that we can display the directory. There are six views we want to provide, so that translates into six variations of the XSL document.
In our first attempt, we created the XSL document in a second CFXML tag. This went well, but we ran into trouble when we tried to combine the two with a XMLTransform() function. AT first this would not return a well formed XML string. We had some <br/> tags in our XSL document, but these where transformed into <br> tags in the output from the XMLTransform function. If we removed the <br> tags, we could get an XML document, but it was not XHTML. If you sent to IE, the display was just an XML tree, not the formatted output we desired. So after all that, what are the best practices for working with XML and ColdFusion. And when would you want to? Can you use XSLT to transform the XML, or do you just load into CF and process it on the server? We did get something that worked, we wrote the XML and the XSL documents to the drive and then use CFLocaton to send the client to the XML file. This was the document we rendered into the display we wanted. But this seems a bit kluge to me? -------------- Ian Skinner Web Programmer BloodSource Sacramento, CA ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

