Hello,
.NET 4.0
I am looking for the easiest way to generate a Word document on our server.
Limitations :
Server side
I don't want to install word on the server
Data source is XML
I tried to generate a DOCX with XSLT which is fast and easy but the only way I could find to validate the generated document is to open it with Word and...
Hi ,
I want to sort in xslt based on existing set of pattern .
Let me explain with the code:
<Types>
<Type>
<Names>
<Name>Ryan</Name>
</Names>
<Address>2344</Address>
</Type>
<Type>
<Names>
</Name>Timber</Name>
</Names>
<Address>1234</Address>
</Type>
<Type>
<Names...
Hi All,
I am trying to fetch CDATA section of XML node using XSL.
Node looks like;
<node id=1 text="Book Information" ><![CDATA[This is sample text]></node>
Does anyone have any idea about this?
Thanks in advance.
...
What is a good approach to handle different namespaces when transforming XSD files with import statements?
Is there an example of XSLT (1.0 or 2.0) Stylesheet that transforms XSD files with include multiple imports and namespaces?
...
hi,
if i want that some value from the xml insert into the text area in the label in the xsl. how can i do that?
for example if i want that the ID attribute inser into the label foreach ID.
...
The question seems to be little confusing. So let me describe my situation through an example:
Suppose I have an XML:
A.xml
<Cakes>
<Cake>Egg</Cake>
<Cake>Banana</Cake>
</Cakes>
Another XML: B.xml
<Cakes>
<Cake show="true">Egg</Cake>
<Cake show="true">Strawberry</Cake>
<Cake show="false">Banana</Cake>
</Cakes>
...
I have a variable containing:
<col p1="Newman" p2="Paul"/>
...
<col p1="Newman" p2="Paolo"/>
<col p1="Newman" p2="Paul"/>
i wold in output a table with in the first column the value of p2 and in the second the number of time it appear. For each value of p2 should i have only a row.
<table>
<tr><td>p2</td><td>num</td></tr>
<tr><td>Pau...
How to obtain document library name from the URL cqwp. For example,
http:///sites/site1/DocLib/Forms/AllItems.aspx
I know there is substring function with xsl
<xsl:param name="DocLibName">
select=substring(url) or whatever the code should be
</xsl:param>
...
I have some C++ projects running through cruisecontrol.net. As a part of the build process, we compile and run Boost.Test unit test suites. I have these configured to dump XML log files. While the format is similar to JUnit/NUnit, it's not quite the same (and lacks some information), so cruisecontrol.net is unable to pick them up. I ...
Why does
<xsl:if test="<XPATH to boolean value here>">
...
</xsl:if>
ALWAYS return true?
Since boolean can be 0,1,"false" and "true" by definition, the ONLY way to test for a boolean value is to do string comparison against these. This can't be right.
...
Hi,
I have a xml as below that I'd like to copy n times while incrementing one of its element and one of its attribute.
XML input:
<?xml version="1.0"?>
<header xmlns="http://test.com" >
<Batch>
<test document="dump" >
<Person position=1>
<properties>
<name>John</name>
<number>1</number>
</properties>
</Person>...
I need to take this xml…
<root>
<item id=’1’ parent_id=’0’>ONE</item>
<item id=’2’ parent_id=’1’>TWO</item>
<item id=’3’ parent_id=’1’>THREE</item>
<item id=’4’ parent_id=’2’>FOUR</item>
<item id=’5’ parent_id=’0’>FIVE</item>
</root>
And produce this xhtml…
<div class=’parent’>ONE</div>
<div class=’child’>
<div clas...
I have a xml document on the following format and want to transform it using a xsl template.
I'm a beginner at xsl transformations and I only need to know how to recurse trough the tree but a solution to the whole problem would be nice.
This is the xml document:
<?xml version="1.0" encoding="UTF-8" ?>
<nodes xmlns:xsi="http://www.w3....
Hi All,
I am trying to convert xml to csv. I am facing problem to get child node (like ProdIDT, IDV) as one line a tab delimeted txt file. Child node value is coming close without header. Please look at the below my input and XSL file.
XML
<Product>
<Record>1616200243</Record>
<Not>03</Not>
<ProductId>
<ProdIDT>02</ProdIDT>
<IDV>1616...
I have a problem. I get the data from xml then transform it with xslt.
Let us say I have a xml file:
<?xml version="1.0"?>
<root>
<row id="1" fname="Dan" lname="Wahlin">
<address type="home">
<street>1234 Anywhere St.</street>
<city>AnyTown</city>
<zip>85789</zip>
</address>
<address type="busines...
Hi All,
I am trying to convert xml to csv. I am facing problem to get child node (like ProdIDT, IDV) as one line a tab delimeted txt file. Child node value is coming close without header. Please look at the below my input and XSL file.
XML
<Product>
<Record>1616200243</Record>
<Not>03</Not>
<ProductId>
<ProdIDT>02</ProdIDT>...
hi, i have the folowing peace of code in my xslt-file:
<xsl:copy-of select="/root/Algemeen/foto/node()" />
In the xml-file the node /root/Algemeen/foto/ holds an html-image for example: <img src="somephoto.jpg" />
What i would like to is to add a fixed width to the image. But the folowing doesn't work:
<xsl:copy-of select="/root/Alg...
Hi, I'm trying to perform client-side XSL transformation in various browsers and found this code snippet from W3 Schools:
function loadXMLDoc(dname)
{
if (window.XMLHttpRequest)
{
xhttp=new XMLHttpRequest();
}
else
{
xhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xhttp.open("GET",dname,false);
xhttp.send("");
return xhttp....
My XSL source document looks like this
<Topology>
<Environment>
<Id>test</Id>
<Machines>
<Machine>
<Id>machine1</Id>
<modules>
<module>m1</module>
<module>m2</module>
</modules>
</Machine>
</Machines>
</Environment>
<Environment>
<Id>prod...
I have an XML element that looks something like:
<account year="2010">
<paymentDue>
<amount>0</amount>
</paymentDue>
<paymentDue>
<amount>752.00</amount>
</paymentDue>
</account>
I'm displaying the accounts grouped by year and I'm using the <xsl:choose> method to say if amount > 0, display a make paymen...