Top "Xslt-2.0" questions

Use this tag for questions specific to XSL Transformations version 2.0 and no other version.

How to parse string to date in xslt 2.0

Is it possible to convert strings like 30042013 (30 April 2013) to a date format? So I can use it later in functions …

string date xslt xslt-2.0
XSLT Remove leading and trailing whitespace of all attributes

How can I create an identical XML sheet, but with the leading and trailing whitespaces of each attribute removed? (using …

xml xslt xslt-2.0
How to get maximum value under same node in xslt

I have a xml like below : <Report xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.…

xml xslt xslt-1.0 xslt-2.0
How to show page number (N of N) using xslt in PDF Report

I am using XSLT to generate PDF report. My requirements are to display page number in the format of Page …

pdf xslt-2.0 xsl-fo
Assign to <xsl:variable> after thedecleration

I am using the below way to assign value to a variable. <xsl:variable name="NewValue"> <xsl:…

xslt xslt-2.0
How to select saxon TransformerFactory in Java

In my web application I need to use Saxon TransformerFactory in order to use XSLT 2.0 but I can't use setProperty …

java tomcat servlets sax xslt-2.0
Finding the difference between 2 dates in xslt

Is there a less then kludgey way of finding the difference in days between 2 dates in xslt? If so can …

xslt xslt-2.0 xpath-2.0
How can I calculate the absolute value of a number in XSLT?

I have <xsl:value-of select="DifferenceInDays" /> DifferenceInDays has a value that can be a negative or a positive …

xslt xslt-1.0 xslt-2.0
How to convert ticks into a readable datetime with XSLT?

I have an XML with timestamps like this: <node stamp="1236888746689" /> And I would like to display them in …

datetime xslt xslt-2.0
XSLT User Defined Function

I am new to XSLT 2.0. I am intrigued by User Defined functions ( <xsl:function ). In particular, I'd like to …

xml xslt xslt-2.0