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
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: CF in XSL, passing variables
Yep, :) -Original Message- From: Matt Liotta [mailto:[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 This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. http://www.cfhosting.com
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 Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm
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
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: > > > > > > ...Data > > > > > > > > 2323221 > > Oil Filter > > > > > > > > > > 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.. > > >#url.item# > > > > > >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
CF in XSL, passing variables
oh well - I DID IT, see my post dated 08.26.2003 for some reason it didn't group with this lot.. used addParameter method with an url variable, CF 5.0 yet.. chao- 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 Get the mailserver that powers this list at http://www.coolfusion.com
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: > > > ...Data > > > > 2323221 > Oil Filter > > > > > 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.. > >#url.item# > > > >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: 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 [mailto:[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. wotta MESS - can't say I'm in love with XML/XSL at the moment... - Flashlight -Original Message- From: Bryan F. Hogan [mailto:[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 [mailto:[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 [mailto:[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: ...Data 2323221 Oil Filter 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.. >#url.item# > >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: 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. wotta MESS - can't say I'm in love with XML/XSL at the moment... - Flashlight -Original Message- From: Bryan F. Hogan [mailto:[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 [mailto:[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 [mailto:[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: ...Data 2323221 Oil Filter 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.. >#url.item# > >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: CF in XSL, passing variables
> Massimo's solution is a little more elegant since he uses the native Java > parser to do the transformation. Thanks for the kind words Dan, let me say that your solution is a great example of lateral thinking. When I first saw your UDF I said "Wow! That's a clever way to work around it". No kidding, I was really impressed :-) Massimo Foti Certified Dreamweaver MX Developer Certified Advanced ColdFusion MX Developer http://www.massimocorner.com/ ~| 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
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 [mailto:[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 [mailto:[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: ...Data 2323221 Oil Filter 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.. >#url.item# > >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: 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 [mailto:[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: ...Data 2323221 Oil Filter 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.. >#url.item# > >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 Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm
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: ...Data 2323221 Oil Filter 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.. >#url.item# > >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: CF in XSL, passing variables
Ciaran, > 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. Actually you can do this in CFMX--although it's not built-in functionality. Not sure why Macromedia didn't think it was necessary to include. Fortunately, there are a couple of workarounds to this problem. First, both of the solutions I'm aware rely on the tag. The in layman terms allows you to declare a variable with a default value. Both solutions can then parse the XSL document, but before parsing will replace the tags with the supplied value. The first solution is a UDF I wrote a while back: http://blog.pengoworks.com/blogger/index.cfm?action=blog:9 This solution should work for anyone using CFMX, as it uses all built-in CFML functions and tags to do its work. It essentially dynamically parses the XSL style sheet and replaces the values on the fly and then transforms the XML document using the new temporary XSL stylesheet. The second solution is by Massimo Foti. Which you can find at the following URLs: http://www.cfmentor.com/code/index.cfm?action=script&id=123 http://www.massimocorner.com/demos/xslTransformPlus.zip Massimo's solution is a little more elegant since he uses the native Java parser to do the transformation. I have done any performance testing between the two, but I'd suspect Massimo's is a more efficient--but you may not be able to use his UDF on some ISP's as a I believe it uses the createObject() function, which could be disabled. - Dan ... : Name: Dan G. Switzer, II: : E-mail: [EMAIL PROTECTED] : : Blog: http://blog.pengoworks.com/ : :...: ~| 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
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: ...Data 2323221 Oil Filter 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.. >#url.item# > >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 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
Re: CF in XSL, passing variables
> Oh my, this looks promising, - am I ok running this under CF 5.0 w/ msxml, > win2k server w/iis? No, it use the JAXP API, I guess you could make it run with CF 5 and JRE 1.3 or 1.4, but it's designed for CF MX and the code use (it may be convereted in ) > I can use a dif xml processor if you recommend I should. > Also, all the empty attributes in the example, are those optional? > Some of those aren't intuitive to me. Which attributes, in which tags? Are you talking about CFML or XSLT? Massimo Foti Certified Dreamweaver MX Developer Certified Advanced ColdFusion MX Developer http://www.massimocorner.com/ ~| 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
RE: CF in XSL, passing variables
hmmm would add an extra step, like produce another xsl stylesheet to output the html, I'll look at it, thanks for sure. I'm running CF 5.0 & msxml, do xml freaks simply not pass variables? chao, ratkiller -Original Message- From: Ciaran Archer [mailto:[EMAIL PROTECTED] Sent: Thursday, August 21, 2003 2:56 AM 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: ...Data 2323221 Oil Filter 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.. >#url.item# > >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 Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm
RE: CF in XSL, passing variables
Oh my, this looks promising, - am I ok running this under CF 5.0 w/ msxml, win2k server w/iis? I can use a dif xml processor if you recommend I should. Also, all the empty attributes in the example, are those optional? Some of those aren't intuitive to me. Thank you thank you, - Bruno -Original Message- From: Massimo Foti [mailto:[EMAIL PROTECTED] Sent: Thursday, August 21, 2003 8:59 AM To: CF-Talk Subject: Re: 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. If all you want to do is to pass paramaters to the XSLT template, you can access JAXP directely, I wrote an UDF that wrap everything for you: http://www.cfmentor.com/code/index.cfm?action=script&id=137 You can see it in action here: http://www.massimocorner.com/demos/xslTransformString.zip Massimo Foti Certified Dreamweaver MX Developer Certified Advanced ColdFusion MX Developer http://www.massimocorner.com/ ~| 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
Re: 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. If all you want to do is to pass paramaters to the XSLT template, you can access JAXP directely, I wrote an UDF that wrap everything for you: http://www.cfmentor.com/code/index.cfm?action=script&id=137 You can see it in action here: http://www.massimocorner.com/demos/xslTransformString.zip Massimo Foti Certified Dreamweaver MX Developer Certified Advanced ColdFusion MX Developer http://www.massimocorner.com/ ~| 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
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: ...Data 2323221 Oil Filter 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.. >#url.item# > >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 Get the mailserver that powers this list at http://www.coolfusion.com
Re: CF in XSL, passing variables
What do you mean by "xsl page"? Neither XSLT nor XSL-FO in and of themselves have any concept of a url variable... -- mailto:[EMAIL PROTECTED] Wednesday, August 20, 2003, 7:44:15 PM, you wrote: BRR> Hello all, BRR> I am trying to pass an url variable from one xsl page to another and USE it. BRR> How could I... BRR> a.) invoke the url-variable in xsl.. BRR> OR BRR> b.) output Cold Fusion in the XSL page, like.. BRR> #url.item# BRR> this has gotten me NO replies in various XSL forums, BRR> gawd - can't you pass a bloody variable in XSL, what a pain in the a** BRR> all thanks - flashlight BRR> ~| 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 Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm
CF in XSL, passing variables
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.. #url.item# 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 Get the mailserver that powers this list at http://www.coolfusion.com