XSLT Node-set Parameter



Category : ASP & ASP.net

I'm making a survey tool. Each respondent will be asked to answer questions on (for example) cakes. The number and types of cake will be different for each respondent. The format of the survey will be saved in a file called survey.xml. So the survey may be like the following:

Rates these cakes fool.
Birthday 0 1 2
Christmas 0 1 2
Lovely 0 1 2

Anyway, I want to pass these cakes into XSLT as a temporary XML document. E.g.:

<cakes> <cake>Birthday</cake> <cake>Christmas</cake> <cake>Lovely</cake></cakes>

I save that in a string and throw it in an XDocument like so:


View Replies

Related to : XSLT Node-set Parameter


XSLT Node-set Parameter
Category : ASP & ASP.net

I'm making a survey tool. Each respondent will be asked to answer questions on (for example) cakes. The number and types of cake will be different for each respondent. The format of the survey will be saved in a file called survey.xml. So the survey may be like the following:

Rates these c


View Replies


set current node to a parameter value in XSLT
Category : ASP & ASP.net

I have the following XSLT file which using a for-each loop puts all the images on the page in an a href with the image title as a parameter so when the image is clicked the &nbsp;page loads with the image title in the url and using this variable displays the image title and description for th


View Replies


XSLT 1.0 - Create node set and pass as a parameter
Category : Web Design

Using XSLT 1.0, I'm trying to essentially create a small node set and then pass it as a parameter to a template, something like the following:


<xsl:call-template name="widget">
<xsl:with-param name="flags">
<items>
<item>widget.rec

View Replies


Store name of the node in a variable or parameter using xslt 1.0
Category : Web Design

How can store a node name in a variable?


For example.


<A>
<BB>123</BB>
<CC>456</CC>


so if i want to store the node name <CC> in a variable then how can i achieve it using xs


View Replies


Concatinating 2 tags inside the same node with xslt XSLT
Category : Development
Hi All,
I just started working with XSLT, so this question might be obvios for some; im struggling trying to concatenate 2 tags inside the same node. I will be receiving one XML file and my output is another XML file.
This is a sample of the xml i will be receiving:
Expand|Select|

View Replies


XML to HTML using XSLT without Hardcoding Node names in XSLT
Category : Development

Hi All,

I am new to XML,XSLT. I have been assigned to task of Generating HTML pages based on the XML file & the condition is No Hardcoding of Nodes and other details.

My XML file is of the below struct:

Node inside Nodes , and those nodes would contain any number of attri


View Replies


xslt select grandparent node depending on an attribute value of its grandchild node
Category : Programming Languages

I'm trying to add different tags to a node depending on an attribute value of its grandchild node.


Sample Input (a 1x3 table):


<table>
<row>
<cell row="1" column="1" >heading text one</cell>
</row>
&l

View Replies


XSLT: move sibling text node into selected node for XLIFF fix
Category : Programming Languages

After a few hours research into XSLT, I am admitting defeat! I need to fix a large number of .xlf XLIFF translation files that have returned to us mangled from an unnamed translation tool. Ideally I would apply the XSL transform to them using a batch tool.


Below is a snippet of one of


View Replies


How to find the relative xpath notation from a node to its child node in xslt ?
Category : Programming Languages

I am relatively new to xslt, but I have had some luck styling a huge xml file. Now i am stuck in a place and not able to proceed. Lets say the structure of the xml file is somewhat like


<xxx>
.......
.......
.......
<Field id="123" type="fld" elem="3"

View Replies


XSLT - Concatenate All Similar Sube Node Child Values and Pass at Node Lavel
Category : Programming Languages
I have similar issue in my XML Logic I have created XSLT for my XML requerd output which is working fine but there is one point which I am not able to filx I am not so good in XSLT but I am trying using net help.   My Source file is abelow www.HM.com CHM

View Replies


2012 / 2017 Copyrights BigHow , All Rights Reserved .