Brendan Ganning wrote:
I'm not sure it would work in this situation (and I haven't used it in so long I'm not even sure if its available), but have you looked into using the xml parser to find the values?However, how do I pass all of the attributes? I could either A) Create 3 more regular expressions to find the values of refId, refType, and class (not a big fan of this) B) Create a url string to pass to an include C) Create an attribute collection to pass into a cfmodule. I cannot even get hard coded values like you have to find the template (get the same error as you mentioned for using #myQryString#). Have you tried perhaps settingProblems with B: I have successfully set myQryString = "refId=1&refType=activity&class=tr". When processing the statement <cfinclude template="getRef.cfm?#myQryString#"> I receive an error cannot find page. I have also tried getRef.cfm?x=&#myQryString# still no go. But, if I were to try <cfinclude template="getRef.cfm?refId=1&refType=activity&class=tr"> this works, but my values are hard coded. <cfset cgi.query_string=cgi.query_string & "&#myQueryString#" > and then just including the template? Those values should still be available then... Of course, I've never tried it, but it could work! And if that doesn't work, you could always just set them explicitly before calling the template. Problems with C: Similar issue. I can set myQryString = "refId=1&refType=activity&class=tr" and call <cfmodule template="getRef.cfm" myQryString="#myQryString#"> But this leaves me having to write some sort of regex to parse the attributes on the calling page. Ideally in this case I would like to send an attribute collection. The biggest issue is that I end up having a string that is a queryString or 'refId="1" refType="activity" class="tr"'. Which I need to convert into 3 variables. I know this should be so easy, and I am embarassed to ask for help on this one, but I am at a loss. Thanks Peter and Sammy for your previous help. Brendan -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Sammy Larbi Sent: Monday, July 17, 2006 11:25 AM To: [email protected] Subject: Re: [CFCDev] Coldfusion and XSLT Transformation Sorry about my last post - I suggested the same thing but hadn't yet read this one. (Was doing research for too long before downloading the new messages). Peter Bell wrote: ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com). An archive of the CFCDev list is available at www.mail-archive.com/[email protected] |
- [CFCDev] Coldfusion and XSLT Transformation Brendan Ganning
- RE: [CFCDev] Coldfusion and XSLT Transformation Peter Bell
- RE: [CFCDev] Coldfusion and XSLT Transformation Brendan Ganning
- RE: [CFCDev] Coldfusion and XSLT Transformation Peter Bell
- Re: [CFCDev] Coldfusion and XSLT Transformati... Sammy Larbi
- Re: [CFCDev] Coldfusion and XSLT Transformation Tom Chiverton
- Re: [CFCDev] Coldfusion and XSLT Transformation Sammy Larbi
- RE: [CFCDev] Coldfusion and XSLT Transformation Brendan Ganning
- Re: [CFCDev] Coldfusion and XSLT Transformation Sammy Larbi
- RE: [CFCDev] Coldfusion and XSLT Transformation Brendan Ganning
