Hi,
I have values stored in the database describing panels, combos, textboxes, labels etc...to be dynamically generated based on what the user set it up to be on a setup form, mainly used for input, including validation rules and datatypes to be specified during the setup of the form.
Problem is, I need to render the "Form" in both w...
Is it possible in XSLT to sort in alphabetical order, with 5 items as "preferred".
i.e. given
<teams>
<team id="142" name="Scotland" />
<team id="110" name="Liverpool" />
<team id="13" name="Manchester United" />
<team id="123" name="England" />
<team id="84" name="Chelsea" />
<team id="295" name="Wales" />
<team id="49" name="Arsenal"...
Simple query - I am looking for recommendations for a .NET library that supports XSLT 2.0 (if one exists).
Thanks.
...
Using xslt/xpath, I need to be able to select the two elements which have the lowest attribute value and merge them, in a way. Lets say for example I have:
<root>
<integer val="14"/>
<integer val="7"/>
<integer val="2"/>
<integer val="1"/>
<integer val="4"/>
<integer val="8"/>
</root>
I want to select the two lowest values (1 a...
I am trying to transform XML file twice with different XSLT files (Two step view). Is it possible to do so?
Example:
data.xml -> transformed by first.xsl -> result of first transformation (XML) -> transformed by second.xsl -> result of second transformation (HTML)
...
Hello,
I've read with interest the techniques available on the web to extract a unique list of items from a XML file containing duplicates using XSL.
These range into 2 categories:
1) The Muenchian method (example: http://www.jenitennison.com/xslt/grouping/)
2) Or the previous-sibling look-up
These both rely on an XPath expression to s...
I'm having problems understanding xslt. In my source document I have to find the inner text from a <p> tag with the class attribute that is equal to "deck".
In my source xml somewhere:
<body>
<p class="deck">Text here</p>
... ... cut ... ... ...
In my xsl file
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0"...
We are using XSL-FO to generate PDF in our project. What we would also like to do is to generate HTML from XSL-FO for user's preview. Is there any way to do this using C#?
...
I am trying to build an XPath select just the 'Phone' number from the following:
<element identifier="ContactPoint" version="Local">
<qualifier name="Phone" type="refining"/>
01234 567890
</element>
<element identifier="ContactPoint" version="Local">
<qualifier name="Email" type="refining"/>
[email protected]
</element...
When using XSLT how do you test to see if a locally scoped variable exists, or is this even possible?
...
Consider this simple xml element example:
<parent foo="1" bar="2" foobar="3">
<child/>
</parent>
In the xsl file, I am in the context of "parent" (i.e. within the <template match="parent">). I want to select a node set (in the example, only one attribute) based upon a string variable. For example i want to select a node-set which ...
How can I add stylesheet reference with XSLT?
I'm trying to strip down some large input XML with the first transform, and need the second transform to be applied on the client. Thus the first transform has to output the correct reference, e.g.:
<?xml-stylesheet type="text/xsl" href="client.xsl"?>
To recap it's XML->transform1(server...
I have some very basic XML:
<ArrayOfString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<string>One</string>
<string>Two</string>
</ArrayOfString>
How can I translate this into:
<ul>
<li>One</li>
<li>Two</li>
</ul>
Using XLST?
Previously I've worked with a:vlaue but thes...
Considering the following XSLT, which I know is not correct.
I want to extract some data from the database into an XML file and using this XSLT to obtain a HTML table. I am doing the following.
extract in a IDataReader - an ojbect[3] containing:
"ALFKI"
"Obere str.57"
a byte[14205] (id and picture)
I load the IDataReader into a Me...
Hi all,
I have an tag, and need to assign value to it's attribute within my XSLT
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="/">
I need to assign value to the trId attribute, but the way I have it now don't work,
what is the righ...
Hallo,
first of all, i am not very familiar when it comes to xml and similiar, so please dont punish me with my beginner question :D
I have a xml file looking like this :
<?xml version="1.0" encoding="utf-8" ?>
<mainstuff>
<category_major>
<project_name>Dream</project_name>
<project_attribute>Version 1.0</project_attribut...
I am running on windows vista 64 bit operating system. Geografikos is a large project created as a masters thesis project by Jeremy Witmer. It is all coded in JRuby. I am currently expanding the project under his guidance however I cannot run his program. The following gems have been installed:
C:\work\Code\geografikos>jruby -S gem list...
I have an XSLT function which checks whether the sent parameter is in YYYYMMDD format or not, in some conditions i am not getting any value to the function, during these conditions SAXON throwing below error
**"An empty sequence is not allowed as the first argument of cda:isValidDate()"**
any suggestions how to handle this sit...
According to Google trends, XSLT is declining fast: http://www.google.com/trends?q=xslt
If we extrapolate it as straight line, it will reach zero in 3 years (though it's probably curving, so it will asymptote to zero).
XML itself is also declining, at a similar rate, but seems to have leveled off a lot already: http://www.google.com/tr...
I have an XML some thing like
<V>
<W>
<X>1</X>
</W>
<W>
<Y>1</Y>
</W>
<W>
<X>1555</X>
</W>
<W>
<X>1</X>
</W>
</V>
i want to make it something like this
<entity ID="start">
<f ID="NewField">0001</f>
<f ID="NewField">0001</f>
<f ID="NewField">0002</f>
<f ID="NewField">0003</f>
</enti...