Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
TinkerToy__ #1
Passing parameters to XSLT parsing...
Hi all
I''m a bit stuck with this and worst of all I know it's part of CFMX 7 (which
I am now using) but I can't get it to work :(
My code is reading an XML document, an XSL document, creating a Java hashmap
of params and passing everything into the XmlTransform function.
In my XSL I have the following:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:variable name="vCountry">EN</xsl:variable>
....
I expected this variable to take the value of the passed variable but no joy,
it always remains as 'EN'.
Any ideas: here is my CF code:
<cfset xsltParams = createObject("java", "java.util.HashMap").init()>
<cfset xsltParams.put("vCountry", ListGetAt(iLocale, 1, "_"))>
<cfset sHTML = XmlTransform(Trim(sXML), Trim(sXSLT), xsltParams)>
Any help or tips suggested would be great!
Ciaran.
TinkerToy__ Guest
-
Passing Parameters To CFC
I am testing how to return data from a CFC within Flash Forms. I have a simple <cfselect> tag that will hold data returned from a CFC. This CFC... -
Parsing Search Parameters
I'm splitting the following: "Custom Report" +Red -Green to get a list like "Custom Report" AND|Red NOT|Green -
Passing Parameters into NEW()
Is there any way that the NEW() of a web service can accept parameters ? I would like to pass a boolean to indicate to the webservice that I am in... -
xslt for validating in parameters
Hi, I would like to create a filter of some sort for applying an xsl to the incoming soap request before it reaches my webmethod. I found no easy... -
Parsing Parameters not working
For some reason when I call one ASP program from another, I am not parsing out the parameters correctly. Caling ASP has <a... -
tkrussel #2
Re: Passing parameters to XSLT parsing...
Try using <xsl:param ...> in your xsl rather than <xsl:variable>
tkrussel Guest
-
tkrussel #3
Re: Passing parameters to XSLT parsing...
Sorry. The : p got parsed into a emoticon. I meant to say:
<xsl:param name="vCountry">EN</xsl:param>
tkrussel Guest
-
TinkerToy__ #4
Re: Passing parameters to XSLT parsing...
Thanks very much that did the trick. What was I thinking with <xsl:variable> ?? :D
TinkerToy__ Guest



Reply With Quote

