param

Is it possible to pass a parameter to XSLT through a URL when using a browser to transform XML?

When using a browser to transform XML (Google Chrome or IE7) is it possible to pass a parameter to the XSLT stylesheet through the URL? example: data.xml <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/xsl" href="sample.xsl"?> <root> <document type="resume"> <author>John Doe</author> </document> ...

Struts2: Adding parameters from a map to a URL tag

I want to add a variable list of parameters to a Struts2 URL tag. I have a map of the parameters (name value pairs) in an object in the session. I'm struggling to find a good approach to this. Here is the relevant JSP code: <s:iterator value="%{#session['com.strutsschool.interceptors.breadcrumbs']}" status="status"> <s:if test=...

sifr text not being displayed when params are on the end of swf url

Hi I am having issues with the CMS I am using and sIFR 3, revision 432. It seems to be down to the CMS adding a URL parameter to all asset URLs. For example, the URL for the Flash movie for my font resembles /site/rockwell.swf?key=value. Is this a known issue and expected behaviour? Many thanks for looking at my question. ...

C++ file parse number of arguments

Hi all! I got a pack of c++ files with static source code (already developped, not needed to do anything to them). There is an program/lib/way to get a list of the number of params each function withing one of those files? I mean, getting a result like: #File a.cpp ##a() -> 3 paramss ##foo() -> 0 params (void) #File b.cpp ##test() -...

XSL: How do I assign the value of an XML element to a variable (minimal change to page below)?

See http://stackoverflow.com/questions/1468522/xslt-to-operate-on-element-value-before-displaying for the original XML and XSL. I got an answer to my question there. My other question on this same XML/XSL is: if I would like to capture the value of an element (such as the "title" element) in an XSL local variable, and then operate on it...

XSLT: Apply templates with conditional parameters?

I'd like to apply a template with different parameters based on the result of a conditional. Something like this: <xsl:choose> <xsl:when test="@attribute1"> <xsl:apply-templates select='.' mode='custom_template'> <xsl:with-param name="attribute_name" tunnel="yes">Attribute no. 1</xsl:with-param> <xsl:...

T-SQL's equivalent of Oracle's %TYPE operator?

When writing a procedure in PL/SQL, I can declare a parameter's type as myTable.myColumn%TYPE so that when I alter myColumn's type from say varchar2(20) to varchar2(50) I don't have to change the procedure's parameter type. Is there something similar in T-SQL? ...

Richfaces tooltip componentcontrol param

I have a table where each cell click opens a tooltip using the componentControl tag, this works. But I wanted to pas a parameter to the tooltip, which is different per table cell. <rich:toolTip id="tooltip" attached="false" mode="ajax"> <ui:include id="projectDetailInclude" src="projectDetail.xhtml"> <ui:param name="projectDetail" v...

Passing String parameter into Javascript

Hi all, I am passing String parameter into javascript . But it is not being called. this is my script: function downloadPopup(testing){ alert(testing); } I am calling the javascript like this from my jsp page: <% String testing = "DSfsdsfd" ; %> <a href="javascript:downloadPopup(<%=testing%>)" > Click </a> How to resolve it?...

xsl:param and multiple filters

Hi, I'm trying to pass parameters (through c#) to the following XSLT to build a query with multiple filters but it is not working. What am I doing wrong and what is the correct way to do this? (The filter works with hard-coded values and the parameter values are getting through to the XSLT) Thanks! <?xml version="1.0" encoding="utf-8"...

How set a parameter type as inout when using rpc with gwt ?

Hi I've a sample gwt2 rpc service & i need to set some of it's parameters as out or inout (like out or ref parameter types in microsoft wcf), but i could not find anything about it in gwt documents or related forums :( Can anybody help me please ?! ...

XSL check param length and make a choice

I need to check if a param has got a value in it and if it has then do this line otherwise do this line. I've got it working whereas I don't get errors but it's not taking the right branch The branch that is wrong is in the volunteer_role template <?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet version="1.0" xmlns:xsl="htt...

struts2 result param not working

I am trying to figure out what is going on here... I have an action class with the standard getters/setters and lets say i have one for a property called 'category'. in my result mapping for the action in the struts.xml file, i am trying to add the value of this property to the URL for an action redirect. in my action class, i can ...

Flash question on param name

What are the following lines for? <param name="AllowScriptAccess" VALUE="always"/> <param name="AllowNetworking" VALUE="all"/> ...

Change bgcolor param value on mouse over?

I have a .SWF email submit form. The background color is set via: `<param name="bgcolor" value="#000000" />` and in the embed: `<embed src="FILE.swf" flashvars="STUFF" quality="high" **bgcolor="#000000"** width="260" height="32" name="WidgetMailBlack" align="middle" swLiveConnect="true" allowScriptAccess="sameDomain" type="applic...

XSLT: Define a param with & ampersand

Hi, I need to define a xsl:param with a string that contains & character for further processing. For example: <xsl:param name="greeting" as="xs:string">Hi & Bye</xsl:param> Important Notice: I am using a xslt converter component in a webservice tool. What I do, is that I just initialize the param and as the webservice is called the...

sorting flash overlap problem wmode='opaque'

Hi every one, im trying to fix the flash overlap using regular expressions. here is an example of markup im trying to convert to my needs <object width="440" height="300" data= "http://www.youtube.com/v/dMH0bHeiRNg&amp;amp;color1=0xb1b1b1&amp;amp;color2=0xd0d0d0&amp;amp;hl=en_US&amp;amp;feature=player_embedded&amp;amp;fs=1" typ...

Can a HTML <param> tag's value parameter contain newlines?

Can a HTML tag's value parameter contain newlines? Context: I want to pass a map to a C++ activex <object> tag via <param>s, and it seems most straightforward to encode the map using spaces and newlines. ...

Is it possible to apply a template on xsl parameter before applying the tempates on the xml.

Hi All, I have a xsl parameter which a string. I want to parse that string, split it and for each substring value I want to apply the template in the xsl. Is this possible? If so, Can you please advise an optimistic solution? Thanks ...

How to select specified element using XSLT by its index?

Hi,everyone. I have a xml file here: <DM_Function Function="attribute value"> <DM> <DM_Source SourceID="id1" SourceTitle="Title1" SourceContent="content1"> </DM_Source> </DM> <DM> <DM_Source SourceID="id2" SourceTitle="Title2" SourceContent="content2"> </DM_Source> </DM> <DM> <DM_Source SourceID="id3" Sourc...