xslt-2.0 Questions
7
Solved
I need to process XSLT using python, currently I'm using lxml which only support XSLT 1, now I need to process XSLT 2 is there any way to use saxon XSLT processor with python?
2
Solved
I have a scenario in which we need to increment 1 day in existing date. Like In <subscriptionDate>2015-05-06</subscriptionDate> I want to increase 1 day and map its value to <termina...
2
Solved
I have an XML file which stores data. I am using an XSL to generate HTML files from that XML file. When I try to do that I get the error Illegal HTML character: decimal 150
I am not allowed to cha...
3
Solved
I am trying to generate XML using XSLT, I want to generate a string when two consecutive nodes has an attribute value as Position="A", I want to add a hyphen(-) in the string, otherwise I...
3
Solved
I am using Apache FOP 1.1.I want to change current apache Xalan XSLT processor to other for supporting XSLT 2.0.
Currently it is not supporting XSLT 2.0.
Please help me how to solve this problem.
...
Wonderwork asked 15/10, 2013 at 10:36
3
Solved
In
<xsl:template name="temp_name" mode="mode">
What is the meaning of mode? I searched many many resource, but i couldn't find example for that. So can anybody explain with an example?
4
Solved
I have follwing set of files:
SourceFile.xml:
<?xml version="1.0" encoding="utf-8" ?>
<Employees>
<Employee id="1">
<firstname relationship="headnote">Atif</firstn...
2
Solved
I have a lot of XML files which have something of the form:
<Element fruit="apple" animal="cat" />
Which I want to be removed from the file.
Using an XSLT stylesheet and the Linux command...
5
Solved
I am using javax.xml.transform API to do XSL transformation . The API only allows one XML document as an input to apply transformation as below .
DocumentBuilderFactory factory = DocumentBuilderFa...
Thermoplastic asked 23/1, 2019 at 21:1
2
I have an XPath expression as shown below.
if(replace(//p[1]/text(),'H','h') = 'hello') then //p[1]/text() else if(//p[1]/text() = 'world') then //p[2]/text() else 'notFound'
I want to display w...
2
Solved
According to this SO question it should be possible to use parameters in the XPath expression for match. However it does not seem to work if xsl:param of a xsl:template is to be used in the same te...
4
Solved
I have an XML file which includes some dates with start and end points, like shown as follows:
<start time="2016-02-21T00:59:06+02:00"/>
.....
.....
<end time="2016-02-22T02:24:38+02:00"/...
3
Solved
For example, I want to add an attribute to this node:
<Party>
So it will look like:
<Party role="this should be set using XPath">
Attribute value has to come from XPath.
The foll...
4
Solved
Given a form number like:
ABC_12345_Q-10
I want to end up with:
ABC12345
So I need to find the position of the second underscore
Note that there is no standard pattern or length to any of th...
1
Solved
I've been looking for a node module that supports XML to HTML/XSL version 2.0 transformations via XSLT. I'm confined to developing in a windows environment, and have researched many alternatives in...
1
The general java code i use to process XSLT and XML files are :
public static final String transformXmlDocument(String inputXmlString,
File xsltFile) {
TransformerFactory factory = TransformerF...
5
Solved
How can I preserve entity references when transforming XML with XSLT (2.0)? With all of the processors I've tried, the entity gets resolved by default. I can use xsl:character-map to handle the cha...
1
I am able to use XSLT 1.0 in Java as shown in the folllowing example :-
copy.xml
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="identityxfm.xsl"?>
<catalog>
<b...
8
Solved
I have an XML document, and I want to change the values for one of the attributes.
First I copied everything from input to output using:
<xsl:template match="@*|node()">
<xsl:copy>
...
1
Solved
I have a sample xml file like this,
<doc>
<p>text1 text2 </p>
<p>text1 text2 </p>
<p>text1 text2 </p>
</doc>
this sample xml, first <p>...
1
Solved
I am currently working on a pure XSL-Transformation with Saxon-Processor in various versions. Below is my short stylesheet, simplified for the needs of my question:
<?xml version="1.0" encoding...
2
Solved
I have a basic condition that checks if a variable is empty and if it is set the variable to a specific value like so.
<xsl:variable name="PIC" select="avatar"/>
<xsl:choose>
<xsl...
14
Solved
How can I check if a value is null or empty with XSL?
For example, if categoryName is empty? I'm using a when choosing construct.
For example:
<xsl:choose>
<xsl:when test="categoryName...
2
i am trying to put my data and table into the center of page as shown in below table. but i have done only the table stuff remaining data alignments and adjustments i am not able to do, as i am not...
0
I have been looking for a suitable solution for conversion of an HTML table to LaTeX. I have found the following questions which is similar to my requirement:
XML table to LaTeX
Converting XHTML t...
1 Next >
© 2022 - 2024 — McMap. All rights reserved.