I'm trying to have a script automatically transform an xml file into several html files using different xslt style sheets. However, whatever I try, I get errors. I've tried it in both VBscript and JScript, and both give me errors. The xml file is 537 KB, and the xsl file is 5 KB.
Here's iteration 1 in JScript. This script works for one ...
Does anyone know of a resource which summarises which version of XSLT is supported in different versions of the major browsers?
...
Hello All. I'm new in xml, sorry for the dumb question. I'm trying to create xsl template to convert Source xml to Destination. Actually it's almost done but I don't know how to enumerate <creator>'s correctly (creator@affil in Destination xml).
Source:
<?xml version="1.0" encoding="iso-8859-1"?>
<CREATORS>
<PERSON ROLE="CONTACT">
...
I'm using the javax.xml.transform.Transformer class to perform some XSLT translations, like so:
TransformerFactory factory = TransformerFactory.newInstance();
StreamSource source = new StreamSource(TRANSFORMER_PATH);
Transformer transformer = factory.newTransformer(source);
StringWriter extractionWriter = new StringWriter();
String xml ...
I'm trying to output a CDATA section in the result of XSLT using Xalan 2.7.1. I have applied this XSL to the XML in a tool and the result contains CDATA. In the method below, no CDATA is in the result and no exception is thrown. I feel like I'm missing something here.
test.xml
<?xml version="1.0" encoding="UTF-8"?>
<parentelem>
...
When I have the following (default) declaration in my XSL file, everything works fine. when I type a "<" character, intellisense window pops up with all the xsl: namespace choices as expected.
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxsl="urn:schemas-microsoft-com:x...
I've got an xml feed that will be published in one location of our website, and would like to repurpose that for an RSS feed.
A few different pages on the website will also be referencing the same xml - all of those transformations are set up and working.
The base xml file (XMLTEST.xml) is using this structure:
<POST>
<item>
<P...
What advantages are there for using either XSLT or Linq to XML for HTML parsing in C#? This is under the assumption that the html has been cleaned so it is valid xhtml. These values will eventually go into a c# object to be validated and processed.
Please let me know if these are valid and if there are other things to consider.
XSLT...
Hi all,
I have an xml of the form:
<Set>
<Element name="Superset1_Set1_Element1"/>
<Element name="Superset1_Set1_Element2"/>
<Element name="Superset1_Set2_Element1"/>
<Element name="Superset2_Set1_Element1"/>
<Element name="Superset2_Set2_Element1"/>
</Set>
I wish to transform it to an xml of the form:
<Superset name=...
Hi,
I am looking into using XSLT to convert an XML based declarative language into pure JavaScript code as its output. The declarative language will be used for describing user interfaces similar to Mozilla XUL. I am fairly new to XSLT, and I am not sure how to properly handle all the attributes that the tags can contain. For instance,...
I have a customised Sharepoint results xsl, and I've added new columns before (via Metadata mappings etc), this one has me stumped.
We have a document type, that can either be a 'Document' or a 'Link to a document'.
When I search I want to check the URL INSIDE the 'Link to a document' (what it points to), but I only get the actual URL fo...
I am writing an XSLT transformation in which I wish to use the Replace function to do a regex match and replace.
However, Visual Studio 2008 reports that
'replace()' is an unknown XSLT function.
The bit of code itself is:
<xsl:otherwise>
<td style="border: solid 1px black; background-color:#00CC66;">
<xsl:variable...
I added a folder to the Code Snippets Manager, opened the Parent.snippet file for use as a template, edited it as below, and saved it to my "XML Snippets" folder.
Now, whenever I try to use a snippet, the editor inserts a comment (<!-- -->) instead of the snippet contents... FOR ANY snippet, the VS2008 original snippets, my snippet - do...
I have a XSLT 1.0 file to transform a XML file using XSLT 1.0. It works fine with IE 6.0, Firefox 3.0.11. However, PHP 5.2.6 XSL XSLTProcessor (providing XSLT 1.0) and Qt C++ QXmlQuery (providing only XSLT 2.0) give blank output.
I'm thinking of 2 ways:
Convert it to XSLT 2.0
Extract Firefox part to parse.
I prefer the 1st one. Plea...
Please help, I’m an XSLT newbie and I’m trying to transform one XML format into another.
I need to extract unique attribute values and transform the values into a new format. The example XML below shows the original and new/target format.
I've spent ages trying to do this without any enjoy. Can anyone help out or give me some pointer...
I need to document an application that serves as a facade for a set of webservices. The application accepts SOAP requests and transforms these requests into a format understandable by the underlying web service. There are several such services, each with its own interface. Some accept SOAP, some HTTP POST, some... other formats not menti...
I've got some XML which declares a namespace which is only used for attributes, like this:
<?xml version="1.0" encoding="UTF-8"?>
<a xmlns:x="http://tempuri.com">
<b>
<c x:att="true"/>
<d>hello</d>
</b>
</a>
I want to use XSL to create a copy of selected nodes and their values - getting rid of the attributes. So m...
I have an XPath engine implementation that needs to be tested.
Is there a set of standard conformance tests that we can apply to validate that conforms to the XPath specification (in relation to XSLT).
What would be perfect would be XML documents XPath expression and expected results.
...
In continuation of the question I had asked concerning "How to create subsets of a single set of elements with XSLT?"
I wish to take my problem one step further:
I had originally given the following XML as the original:
<Set>
<Element name="Superset1_Set1_Element1"/>
<Element name="Superset1_Set1_Element2"/>
<Element name="Sup...
For unknow reason max funtion doesn't work.
XML input file:
test.xml
<?xml version="1.0" encoding="UTF-8"?>
<numbers>
<number>3</number>
<number>5</number>
<number>10</number>
<number>1</number>
</numbers>
XSL input file
test.xsl
<?xml version="1.0"?>
<xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org...