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>
...
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=...
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.
...
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() -...
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...
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:...
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?
...
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...
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?...
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"...
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 ?!
...
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...
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 ...
What are the following lines for?
<param name="AllowScriptAccess" VALUE="always"/>
<param name="AllowNetworking" VALUE="all"/>
...
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...
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...
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;color1=0xb1b1b1&amp;color2=0xd0d0d0&amp;hl=en_US&amp;feature=player_embedded&amp;fs=1"
typ...
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.
...
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
...
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...