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=...
Hello.
I'm thinking of the way I'd generate a university newspaper both in PDF and HTML (a website) where every news would contain picture(s) and wonder if there any tools to approach this problem declaratively so that unexperienced users would prepare structured data (text + pictures) and get PDF and website on output on their own with...
<ROWS>
<ROW oid="28439">
<EFL eid="8" fid="27672" count="2" Name = "A : bbb">
<MK id="3" val="0"/>
<MK id="11" val="0578678"/>
</EFL>
</ROW>
</ROWS>
I have the above xml, i want to have the following loop in XSL
if Name attribute in EFL tag Exists And Not Empty Then
Display the v...
<table border="1" id="table1">
<tr>
<th>Data</th>
<th>Numero</th>
<th>Cliente</th>
<th>P_iva Cliente</th>
<th>Imponibile</th>
<th>Iva</th>
</tr>
<tr>
</tr>
<xsl:for-each select="fatture/fattura">
<tr>
...
can array's be created and used in xslt? If so are there suitable examples online to study? If not is there a way to store values in a way that mimics an array?
...
I tried to perform XSLT transform of a XSD file. My goal is in the end to create SQL from XSD. So far so good, this is what I have:
void Convert()
{
XPathDocument xpathDoc = new XPathDocument(@"myschema.xsd");
string xslPath = @"convert.xsl";
XslCompiledTransform transform = new XslCompiledTransform()...
Hi,
Please find the 2 XML's
Input XML-
<feed xmlns:es="http://ucmservice">
<element>
<es:RepositoryDetails>
<es:Repository Type="DatabaseRepository" />
<es:ConnetionDetails>
<es:Param MigrationSetId="439" />
</es:ConnetionDetails>
</es:RepositoryDetails>
<es:DocProperties>
<es:UniqueDocId Value="_1_15"...
I am transforming some XML data to fit into document that is in a format of"Excel XML Spreadsheet 2003"
It all works ok, but I have a problem with generating the proper header of the result file.
It should basically be in a form of:
<?xml version="1.0"?>
<?mso-application progid="Excel.Sheet"?>
<Workbook xmlns="urn:schemas-microsoft-co...
The generated HTML page contains reference links that sometimes doesn't exist in my page. I should display this link as a simple label.
Currently this is done:
<xsl:choose>
<xsl:when test="$nb_action != 0">
<a href="#action">Action (offensive, defensive, reconnaissance)</a>
</xsl:when>
<xsl:otherwise>
Action (offensive, defensive...
Now I have an XML file as below:
<DM Name="A DM">
<DV id="SQL:Select something from db" Name="DV 1">
<Sample aid="SQL:Select something from db" />
</DV>
<DV id="SQL:Select something from db" Name="DV 2">
<Sample aid="SQL:Select something from db" name ="DC">
good
</Sample>
</DV>
</DM>
I want to us...
I need to say; I'm pretty green in xslt so, most likely, that's the main problem; nonetheless been on it for hours and can't get it.
I want to fill a column on my main template with the 5 most recent newsitems. These newsitems should be shown regardless of the currentpage.
I've tried this:
<xsl:template match="/">
<xsl:for-each s...
using xslt how do i test if a date was within the last (say) 15 days?
input:
date in format dd/mm/yy
X number of days
output:
if the date occured within X days of now
eg recent('02/07/10',30) would return true iff 02/07/10 was 30 days in the past
some steps i got:
main func
<xsl:function name="custom:monthtodays">
<x...
Using XSLT, I'm wondering how to get the output to use my stylesheet's namespace prefixes rather than the input document's prefixes. By way of example, given this very simplified document:
<?xml version="1.0"?>
<a:node xmlns:a="urn:schemas:blah:"/>
And the following XSL transform:
<?xml version="1.0"?>
<xsl:transform xmlns:xsl="htt...
Hi,everyone.
I have a xml file here:
<DM_Function Function="attribute value">
<DM>
<DM_Source SourceID="id1" SourceTitle="Title1" SourceContent="content1">
</DM_Source>
</DM>
<DM>
<DM_Source SourceID="id2" SourceTitle="Title2" SourceContent="content2">
</DM_Source>
</DM>
<DM>
<DM_Source SourceID="id3" Sourc...
Hi,
I am trying to convert an XML into another desired format XML through XSL. However, I am not able to apply any proper logic to get that. Please llok into it and suggest something-
Input XML-
<feed xmlns:es="http://ucmservice">
<element>
<es:RepositoryDetails>
<es:Repository Type="DatabaseRepository" />
<es:Connetion...
Hi,
Take the below xml
<?xml version="1.0"?>
<?xml-stylesheet href="desktop.xsl" type="text/xsl"?>
<desktop>
<tag name="h1" caption="hello"/>
</desktop>
I have an XSLT that will take the name attribute of the tag element and create the appropriate html element
Snippet from the xsl
<xsl:stylesheet version="1.0"
xmlns:xsl="http:...
I have this XSL file:
< ?xml version="1.0" encoding="utf-8"?>
< xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl script" xmlns:script="script">
< msxsl:script implements-prefix="script" language="C#">
< ![CDATA[
public string...
how to convert NEWLINE into <BR/> with XSLT?
I have
<text>
some text with
new lines
</text>
I want to have
<p> some text with <br /> new lines </p>
...
Hi everyone,
Just a quick question. I have one XML and I was hoping to tranform only a section of it without changing anything else. Here is a quick example of what I am looking to do:
Input:
<?xml version="1.0" encoding="UTF-8"?>
<dita xmlns:ditaarch="http://dita.oasis-open.org/architecture/2005/" xmlns:xsi="http://www.w3.org/2001/XM...
I'm trying to write some xsl to style an RSS feed. The problem I'm running into is that I need to trim the first 10 characters off the title of each item and I can't get it to work.
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="/rss">
<u...