I have next xml:
<page>
<document>
<id>1001</id>
<cur>USD</cur>
<date>01.01.2009</date>
<amount>10</amount>
</document>
<document>
<id>1001</id>
<cur>USD</cur>
<date>02.01.2009</date>
<amount>15</amount>
</document>
<document>
<id>1001</id>
<cur>JPY</cur>
<...
I have 3 XSL files which have paths in them to something like C:\templates\Test\file.pdf
This path isn't always going to be the same and rather than having it hard coded in the XSL, I'd like it so that the path C:\templates\test\ is replaced with a tag [BASEPATH] and when I read in the xsl file into the XSLTransform object (yes I know i...
I'm writing an XSL transform in Visual Studio. It is reporting that the semicolon in the following is an "unexpected token":
<xsl:param name="delimiters" select=";#" />
Does anyone know how to escape the semicolon? It hasn't shown up on any character lists I've found so far.
...
I am using XSLT to convert a very large XML document into (X)HTML. For some of the tags I am converting them to a <div>. I would like to be able to create a unique id for these tags, using an incremented integer to form part of the unique id.
An example of the rule I am using is:
<xsl:template match="bookcoll/book">
<div class="b...
Errors:
Warning: XSLTProcessor::importStylesheet() [xsltprocessor.importstylesheet]:
Undefined variable in /transform.php on line 24
Warning: XSLTProcessor::importStylesheet() [xsltprocessor.importstylesheet]:
compilation error: file /protocols.xsl line 18 element template in /transform.php on line 24
Warning: XSLTProcessor::import...
Hi everyone,
I'm fishing for approaches to a problem with XSLT processing.
Is it possible to use parallel processing to speed up an XSLT processor? Or are XSLT processors inherently serial?
My hunch is that XML can be partitioned into chunks which could be processed by different threads, but since I'm not really finding any documentat...
I want to display a text with a bigger font in the leftmost column of an <fo:table>. The columns to the right however should consist of a couple of rows with smaller text.
This is how the XSL code looks like before adding any leftmost column with larger text:
<xsl:template name="printAddress">
<xsl:param name="subDocument" />
<fo:t...
Hi,
I really need an answer to this question. I am working on a project which uses XML to make pages, then XSLT to produce it to a web page. Here is a code sample:
public function transform ($xml) {
$proc = new XSLTProcessor;
$proc->importStyleSheet ($this->xsl);
$output = $proc->transformToXML ($xml);
return $output;
}
the...
I often see people asking XML/XSLT related questions here that root in the inability to grasp how CDATA works (like this one).
I wonder - why does it exist in the first place? It's not that XML could not do without it, everything you can put into a CDATA section can be expressed as "native" (XML-escaped).
I appreciate that CDATA potent...
I have a huge xml file. And it's being transformed to html table with xsl. In browser it's a single page with vertical scrollbar.
But when I want to print the document I can see about 10 pages. I want to add table headers to every printed page.
Sample xml:
<page>
<document>
<id>100</id>
<name>SomeName</name>
<dat...
Hi folks,
I need your help in the following scenario :
<xsl:variable name="var1" select="'SOME_DATA1'" />
<xsl:if test="'some_condition'">
<xsl:variable name="var2" >
<xsl:value-of select="'SOME_DATA2'"/>
</xsl:variable>
</xsl:if>
<data> <!-- I need here to contact var1 with var2, pl...
I wrote a simple package installer in WinBatch that needs to update an XML file with information about the package contents. My first stab at it involved loading the file with Msxml2.DOMDocument, adding nodes and data as required, then saving the data back to disk. This worked well enough, except that it would not create tab and CR/LF wh...
Currently I have 2 varieties, LXML and libXML2 that both seem to work. I have tried benchmarking both, specifically for parsing memory string and files into XML and importing XSLT stylesheets and applying them. While pure performance based tests indicate that LXML comes on top (applying stylesheets specifically) libxml2 seems to have bee...
I'm trying to create a bar chart using dataview formated using xsl. The list to chart contains data about number of hours spend on certain project. The project column is of type lookup, which points to a list on the other subsite (simpler: cross site lookup column). The fist data source that I connected to dataview points to the first li...
I'm trying to sum the qty field in my xml using xslt 2.0 and it's outputting the qty of one of my pieces of equipment with multiple entries without summing by the equipment group. Any ideas about how this can be fixed?
This is the XSLT I'm using:
<xsl:for-each-group select="//node()" group-by="*[local-name()='lin_id']/text()">
<Re...
Simple question, but is the solution?
I have a typical C# Application that runs "new XslCompiledTransform.Transform(...);" I am passing it param arguments, all of type string.
I want to pass it a param that is of type array: strings, or even lets say an array of objects.
I am using C# I am being limited to XSL 1.0.
How am I able to ...
I'm trying to compose xml elements into each other, and the problem I am having is when there's the same IDs. Basically what I need to do is mangle all the IDs in an xml file, as well as the references to them. (I'm doing this with SVGs to add a little context)
Say I have:
<bar id="foo"/>
<baz ref="url(#foo)"/>
<bar id="abc"/>
<baz re...
I would like to make certain lines of a DocBook table of contents bold based on whether the particular <section> has a certain attribute defined. This is easy by adding an <xsl:if test="..."> statement to the DocBook XSL (fo/autotoc.xsl lines 187-230 -- this is for output to PDF using XMLMind).
I'm wondering, though, if it's bad practi...
Hi,
In my XSLT file, I have the following:
<input type="button" value= <xsl:value-of select="name">>
It's an error as it violates XML rule.
What I actually want is having a value from an XML file assigned to 'value' parameter in the HTML output. How do I do this? Thanks
...
I have some XML that I am trying to transform to HTML using XSLT, but I can't get it to work for the life of me. Can someone tell me what I am doing wrong?
XML
<ArrayOfBrokerage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.test.com/">
<Brokerage>
<BrokerageID>91</BrokerageID>
<LastYodleeUpdate>0001-01-01T0...