Re: RE: CF in XSL, passing variables
Eh? MSXML is a COM component that implements XML functionality (XSLT, XPath, etc). Earlier versions didn't really follow the W3C specs, but the latest version is supposed to suck less. - Original Message - From: Bryan F. Hogan [EMAIL PROTECTED] Date: Tuesday, August 26, 2003 3:36 pm Subject: RE: CF in XSL, passing variables MSXML will only work on Windows. It is the same thing as There may be a few 3rd party tools that can help with this. Just keep in mind if you don't know already that MSXML is not part of the specification of XML and XSLT. It's just like the CFML solutions that people posted. -Original Message- From: Bruce Rojas-Rennke [EMAIL PROTECTED] Sent: Tuesday, August 26, 2003 5:25 PM To: CF-Talk Subject: RE: CF in XSL, passing variables Hello all, Just cracked it - using CF 5.0, MSxml 3.0, win2k server guess it can be done.. used an url variable addparameter method in the transformation with MUCH trial and error on syntax and components. wottaMESS - can't say I'm in love with XML/XSL at the moment... - Flashlight -Original Message- From: Bryan F. Hogan [EMAIL PROTECTED] Sent: Tuesday, August 26, 2003 2:00 PM To: CF-Talk Subject: RE: CF in XSL, passing variables Bruce it is not possible to pass a variable to your stylesheet with the current implementation of XSLT. I have seen posts on xml.com regarding XSLT2 where this is in the works for the next version of XSLT. There may be a few 3rd party tools that can help with this. The first place I would check is xml.com, I remember seeing a solution to your problem awhile back but don't remember where I had seen it. -Original Message- From: Bruce Rojas-Rennke [EMAIL PROTECTED] Sent: Tuesday, August 26, 2003 11:12 AM To: CF-Talk Subject: RE: CF in XSL, passing variables Hey thanks for the post, Actually I'm wanting to generate HTML, not XML with my XSL transform. does that negate the below approach? thanks- Flashlight -Original Message- From: Ciaran Archer [EMAIL PROTECTED] Sent: None To: CF-Talk Subject: CF in XSL, passing variables I think I know what you are trying to do, and it's simply not possible. You want to be able to access a variable like a URL variable in a HTML page from within your XSL page. There is a way to do this in Java's implementation of XSL, but not the flavour that Cold fusion have given us. I even went to CF_Europe and cornered a guy about it and he says that MM weren't planning to allow that functionality, and to essentially move on and find another way :( But I did, even though it's a bit of a pain. What I did (this assumes you are using your XSL to render a XML document)was insert a generic node set under the root node of the doc I was trying to render, like so: yourXmlDoc ...Data !-- Insert immediatley before render -- passedParams param name=productID2323221/param param name=ProductNameOil Filter/param /passedParams /yourXmlDoc The values are totally up to you. Since you then know in your XSL that you have a generic nodeset under the root node of your XML document, you can create hidden variables in your HTML from these, and then use them like form variables. Hope this helps your situation :) Ciaran Hello all, I am trying to pass an url variable from one xsl page to another and USE it. How could I... a.) invoke the url-variable in xsl.. OR b.) output Cold Fusion in the XSL page, like.. cfoutput#url.item#/cfoutput this has gotten me NO replies in various XSL forums, gawd - can't you pass a bloody variable in XSL, what a pain in the a** all thanks - flashlight ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. http://www.cfhosting.com
Re: RE: CF in XSL, passing variables
To witch part is Eh? in reference too? MSXML is just a parser for XML with MS add-ons. It is not part of the XML, XSLT specification. - Original Message - From: [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Tuesday, August 26, 2003 7:18 PM Subject: Re: RE: CF in XSL, passing variables Eh? MSXML is a COM component that implements XML functionality (XSLT, XPath, etc). Earlier versions didn't really follow the W3C specs, but the latest version is supposed to suck less. - Original Message - From: Bryan F. Hogan [EMAIL PROTECTED] Date: Tuesday, August 26, 2003 3:36 pm Subject: RE: CF in XSL, passing variables MSXML will only work on Windows. It is the same thing as There may be a few 3rd party tools that can help with this. Just keep in mind if you don't know already that MSXML is not part of the specification of XML and XSLT. It's just like the CFML solutions that people posted. -Original Message- From: Bruce Rojas-Rennke [EMAIL PROTECTED] Sent: Tuesday, August 26, 2003 5:25 PM To: CF-Talk Subject: RE: CF in XSL, passing variables Hello all, Just cracked it - using CF 5.0, MSxml 3.0, win2k server guess it can be done.. used an url variable addparameter method in the transformation with MUCH trial and error on syntax and components. wottaMESS - can't say I'm in love with XML/XSL at the moment... - Flashlight -Original Message- From: Bryan F. Hogan [EMAIL PROTECTED] Sent: Tuesday, August 26, 2003 2:00 PM To: CF-Talk Subject: RE: CF in XSL, passing variables Bruce it is not possible to pass a variable to your stylesheet with the current implementation of XSLT. I have seen posts on xml.com regarding XSLT2 where this is in the works for the next version of XSLT. There may be a few 3rd party tools that can help with this. The first place I would check is xml.com, I remember seeing a solution to your problem awhile back but don't remember where I had seen it. -Original Message- From: Bruce Rojas-Rennke [EMAIL PROTECTED] Sent: Tuesday, August 26, 2003 11:12 AM To: CF-Talk Subject: RE: CF in XSL, passing variables Hey thanks for the post, Actually I'm wanting to generate HTML, not XML with my XSL transform. does that negate the below approach? thanks- Flashlight -Original Message- From: Ciaran Archer [EMAIL PROTECTED] Sent: None To: CF-Talk Subject: CF in XSL, passing variables I think I know what you are trying to do, and it's simply not possible. You want to be able to access a variable like a URL variable in a HTML page from within your XSL page. There is a way to do this in Java's implementation of XSL, but not the flavour that Cold fusion have given us. I even went to CF_Europe and cornered a guy about it and he says that MM weren't planning to allow that functionality, and to essentially move on and find another way :( But I did, even though it's a bit of a pain. What I did (this assumes you are using your XSL to render a XML document)was insert a generic node set under the root node of the doc I was trying to render, like so: yourXmlDoc ...Data !-- Insert immediatley before render -- passedParams param name=productID2323221/param param name=ProductNameOil Filter/param /passedParams /yourXmlDoc The values are totally up to you. Since you then know in your XSL that you have a generic nodeset under the root node of your XML document, you can create hidden variables in your HTML from these, and then use them like form variables. Hope this helps your situation :) Ciaran Hello all, I am trying to pass an url variable from one xsl page to another and USE it. How could I... a.) invoke the url-variable in xsl.. OR b.) output Cold Fusion in the XSL page, like.. cfoutput#url.item#/cfoutput this has gotten me NO replies in various XSL forums, gawd - can't you pass a bloody variable in XSL, what a pain in the a** all thanks - flashlight ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. http://www.cfhosting.com
RE: RE: CF in XSL, passing variables
To witch part is Eh? in reference too? MSXML is just a parser for XML with MS add-ons. It is not part of the XML, XSLT specification. Well, of course not - no software from any vendor is part of a specification, but it's intended to implement the specification. As far as I can tell, MSXML 4 provides a pretty complete implementation, too. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. http://www.cfhosting.com
Re: RE: CF in XSL, passing variables
Shh, it's open source and written in Java, therefore it must be good :) - Original Message - From: Bryan F. Hogan [EMAIL PROTECTED] Date: Wednesday, August 27, 2003 9:26 am Subject: RE: CF in XSL, passing variables Yep, :) -Original Message- From: Matt Liotta [EMAIL PROTECTED] Sent: Tuesday, August 26, 2003 11:28 PM To: CF-Talk Subject: Re: CF in XSL, passing variables The true irony here is that Apache Xalan has significantly more proprietary extensions to the XSLT specification than MSXML does. Matt Liotta President CEO Montara Software, Inc. http://www.MontaraSoftware.com (888) 408-0900 x901 ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Get the mailserver that powers this list at http://www.coolfusion.com
RE: RE: CF in XSL, passing variables
That is not always my opinion. ;) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 27, 2003 12:16 PM To: CF-Talk Subject: Re: RE: CF in XSL, passing variables Shh, it's open source and written in Java, therefore it must be good :) ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm