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?
Provisory asked 4/4, 2015 at 6:13

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...
Consign asked 8/5, 2015 at 9:59

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...
Hadrian asked 18/4, 2014 at 14:50

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...
Overlive asked 10/6, 2021 at 14:6

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?
Capri asked 20/12, 2010 at 4:26

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...
Telephone asked 7/1, 2011 at 20:31

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...
Auspicious asked 26/11, 2008 at 19:24

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...
Orms asked 8/10, 2018 at 17:37

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...
Amatory asked 7/10, 2017 at 20:26

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"/...
Cribbing asked 27/7, 2016 at 5:29

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...
Episode asked 20/6, 2013 at 11:31

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...
Outmarch asked 29/6, 2010 at 14:48

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...
Inestimable asked 25/7, 2017 at 17:7

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...
Jacintha asked 28/6, 2017 at 8:4

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...
Vegetable asked 12/5, 2011 at 23:18

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...
Oceanic asked 24/12, 2016 at 21:40

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> ...
Salina asked 5/3, 2009 at 18:3

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>...
Maccaboy asked 2/12, 2016 at 5:42

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...
Shushan asked 8/9, 2016 at 9:20

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...
Carbonate asked 20/7, 2016 at 13:43

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...
Blinni asked 5/5, 2009 at 16:45

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...
Querida asked 9/1, 2014 at 15:2

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...
Grallatorial asked 22/2, 2016 at 13:3

© 2022 - 2024 — McMap. All rights reserved.