Hi,
I am trying to set the width variables <WIDTH> and <WIDTH1> within XSL which I am retriveing from the web.config within c# as below:
string Width1 = System.Configuration.ConfigurationSettings.AppSettings.Get("Width1");
string Width2 = System.Configuration.ConfigurationSettings.AppSettings.Get("Width2");
cslx.Xslt=@"<?xml vers...
Using XSLT and XPath 1.0, I have a string I want to escape for use on a URL, for example:
<description>one word & another</description>
So, the text() of the description element should get URL escaped.
How would I do this?
Using C# (XslCompiledTransform) the code would be:
string a = Server.UrlEncode("one word & another");
An...
I'm having some trouble to figure out how to make the "page load" architecture of a website.
The basic idea is, that I would use XSLT to present it but instead of doing it the classic way with the XSL tags I would do it with JavaScript. Each link link should therefore refer to a JavaScript function that would change the content and menu...
I don't understand output from this stylesheet:
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<xsl:apply-templates select="root/sub"/>
</xsl:template>
<xsl:template match="sub">
<xsl:variable name="seq">
<xsl:sequence select="*" />
...
Hello, I have XML that looks like this:
<ROW ref="0005631" type="04" line="1" value="Australia"/>
<ROW ref="0005631" type="00" line="1" value="John"/>
<ROW ref="0005631" type="02" line="1" value="Builder"/>
<ROW ref="0005631" type="01" line="1" value="Smith"/>
I need a solution in XSL to format it to look this this:
John Smith Builde...
In one of the propitiatory product on which I am working needs configuration to be setup using large XML files. So I am looking for a solution to easily edit the XML is a visual interface. Tried following
Visual Editor for XML VEX Eclipse Plugin (very early, so features missing)
Using XSLT (Ruled out, Considering the size of DTD's)
...
Hi,
I need to create an XSLT which tranforms an attribute in the source xml to a new element in the target xml with the element name assigned the "Name" value of the attribute in the source xml.
Eg:
Source:
<ProductType>Fridge</ProductType>
<Features>
<Feature Name="ValveID">somename</Feature>
<Feature Name="KeyIden...
I have a xsl file where i need to use parameters from an external source. I am using Java and my code looks something like this:
TransformerFactory transformerFactory = TransformerFactory.newInstance();
Transformer xsltTransformer = transformerFactory.newTransformer(xsltSource);
xsltTransformer.setParameter(parameterName, parameterValue...
I was over at the StarCraft2 website and decided to take a look at their source and saw this:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="layout/artwork.xsl"?>
<page lang="en_us">
<artwork/>
</page>
... and that's it. So I was wondering, what's the point in using an XSLT if you're just using 2 tag...
We have a site that does clientside xsl formatting. In IE8, when logging into the website, IE hangs 1 out of 4 times.
The random hang only occurs in combination with Response.Redirect.
LandingPage.asp post submits to Login.asp.
When credentials are correct: Login.asp does a Response.Redirect to PersonalDossier.asp.
When I post direct...
Here is the problem:
I'm looping over a set of nodes and based on their type i'd like to use the jQuery xslt plugin.
var options = {
type: "POST",
url: "api/dosomething/usefull",
data: "orderid=12345",
success: function(response) {
$(response).find("group").each(function() {
if ($(this).attr(type) ...
I am trying to write a page to host on godaddy and the code keeps throwing an exception. I believe that the problem is that the permissions on the server will not let the subclass of XmlUrlResolver get instantiated, but I'd love some help with this please...
This code does work on my local dev box, and if I use File.ReadAllText(Hosting...
EDIT:
User has informed me that he will accept PDF format also
I have to create a simple RTF or PDF document in server side code and save on a network driver for future downloading.
The letter will be populated from info that I have stored in a SQL Server (2005). I access the databse using a Linq-to-Sql model. The document will be ...
I am trying to find a reusable way of taking a CSV file and generating an XML file from it that conforms to a specified XSD. I haven't really found a reusable approach for this. I have used Altova MapForce which lets me import a CSV file and XSD, do the mapping than generate code from this, but the code needs to be regenerated whenever t...
Hi All,
I am calling one xml file from another.
<?xml version="1.0" encoding="utf-8"?>
<pp xmlns:xi="http://www.w3.org/2001/XInclude">
<xx>aa</xx>
<yy>bb</yy>
<xi:include href="A.xml" parse="xml"/>
</person>
But I am not sure how to t...
This is my problem: The code snippet below (inside the <xsl:choose>) does not reliably strip <p>, <div> or <br> tags out of a string using a combination of the substring-before() and substring() functions.
The string I'm trying to format is an attribute of a SharePoint SPS 2003 list item - text inputted via a rich text editor. What I i...
It has been suggested that I use CSS for displaying XML. I know in my heart that this is wrong, but cannot find the words to adequately convince others. Can anyone provide me with a list of pros/cons of using CSS and XSLT for displaying XML.
Thanks!
...
I have an XML document generated from an external application, but that application does not have access to some file information, namely a file checksum. The element is included in the ouptut, but the value is empty. I need to modify the XML via an XSL to include the checksum, but am having difficulty creating an XSL to do this.
In t...
I have an XML document with a section similar to the following:
<release_list>
<release>
<id>100</id>
<file_list>
<file>
<id>20</id>
</file>
<file>
<id>21</id>
</file>
</file_list>
</release>
<release>
<id>101</id>
<file_list>
<file>
<id>22</id>
</file...
How can I merge all sibling elements with the same name and the same attributes into a single element using XSLT? The transformation should also be applied recursively to children of elements that are being merged. This is the source document:
<?xml version="1.0"?>
<Root>
<Element id="UniqueId1">
<SubElement1/>
<SubElement2>...