Questions tagged [exslt]

EXSLT is an extension library for XSLT, mainly for XSLT 1.0. It includes functionality to provide missing language features such as set operations, node-set coercion, date methods, math functions, and type checking. Note that with XSLT 2 and 3 none of these are usually needed as the languages themselves and/or their underlying standards like the XPath 2 or 3 type system or the XPath 2 or 3 function library have all and more integrated and standardised.

The EXSLT project defines the namespaces for the library. To make use of one of these functions or extension elements, the appropriate namespace must be declared on the xsl:stylesheet element and your processor must have support for the particular function or extension element.

158 questions
3
votes
2 answers

how do i not repeat repeated logic in my xslt code?

what's a better way to write this code:
Pacerier
  • 86,231
  • 106
  • 366
  • 634
3
votes
2 answers

How can we use EXSLT without downloading its source?

XSLTSL seems to claim that we can use EXSLT without downloading its source: Import or include either the main stylesheet, or the stylesheet module you wish to use, directly from the library website; http://xsltsl.sourceforge.net/modules/. The…
Pacerier
  • 86,231
  • 106
  • 366
  • 634
3
votes
1 answer

java exslt date-time() producing unintended output

While doing xslt transformation the timezone is serialized in a weird way I tried switching implementations between xalan and jaxen but no change was observed. Tried to look into formatting the date manualy but can't seem to find the way to add time…
Lakshay Chhikara
  • 186
  • 2
  • 12
3
votes
1 answer

Namespaces are removed on Reading an XSLT in a TextArea

I have following StyleSheet information in a XSLT file located in my project directory, am reading this file and storing it inside a TextArea in HTML and then later i read the Textarea using javascript. When i read the Text Area in IE9+ browsers…
user2918673
  • 141
  • 1
  • 9
3
votes
2 answers

XSLT IE6 default processor

What is the default XSLT processor for IE6. Does it support EXSLT? Is there anyway to make it support it?
Colin
3
votes
0 answers

Cannot find a matching 0-argument EXSLT function named {http://exslt.org/dates-and-times}date-time()

I am using the IntelliJ IDEA 13. The XSLT processor is SAXON. I need to convert date and time a in my transformation. I have decided to use EXSLT. Here is what I've added to my transformation:
Sergey Shafiev
  • 4,205
  • 4
  • 26
  • 37
3
votes
2 answers

XSLT 1.0: replace new line character with _

I am having this below variable d e d and I have this function:
green_tea2009
  • 209
  • 2
  • 4
  • 10
3
votes
1 answer

EXSLT String Tokenizer Context

What is the current node context inside an EXSLT Tokenizer for-each loop? I do not seem to be able to query any nodes in the documents. example:
srini.venigalla
  • 5,137
  • 1
  • 18
  • 29
3
votes
3 answers

What does exsl:node-set treat as the root node?

I am having trouble understanding how the exsl:node-set function works. I have some XML which I am expanding and using to dynamically populate an exsl:node-set. Let's say it currently is in this format:
Alex B
  • 1,009
  • 3
  • 18
  • 26
3
votes
1 answer

Using exslt extentions be used in javascript xpaths

I would like to use javascript XPaths in a web app using exslt extensions, but I can't figure out how to do this. Pretend I've got an html doc with some divs in it. I want to run…
underrun
  • 6,713
  • 2
  • 41
  • 53
2
votes
3 answers

xslt cannot assign a param with a boolean value within ``

this code is giving me the output test when the expected output should be nothing.. Is it something wrong with my XSLT processor or..? :
Pacerier
  • 86,231
  • 106
  • 366
  • 634
2
votes
1 answer

What's the rationale behind result tree fragments?

XSLT 1.0 adds an additional data type to those provided by XPath 1.0: result tree fragments. This additional data type is called result tree fragment. A variable may be bound to a result tree fragment instead of one of the four basic XPath…
wizzwizz4
  • 6,140
  • 2
  • 26
  • 62
2
votes
3 answers

Exception loading external XSLT

I have a load of XSLT from a third party which i need to use to transform some data. If I use xsltproc it works fine and outputs data as expected. I have the following C# code to try and use it in-process: sXML is the lump of…
Gordon Thompson
  • 4,764
  • 8
  • 48
  • 62
2
votes
1 answer

How to do multiple XSL transformation passes in Firefox?

I am attempting to transform an XML document with an included stylesheet in multiple passes, however whenever I attempt to include exsl:node-set to make the variable I have placed the transformed XML into usable Firefox fails parsing with the notice…
hyperfekt
  • 169
  • 2
  • 9
2
votes
2 answers

Umbraco and EXSLT sets do not work

I'm creating some xslt's using Umbraco 4.5.2 and I want to add de set:distinct function from EXSLT.org (http://www.exslt.org/set/functions/distinct/index.html) however, when I reference the set:distinct I get the…
riffnl
  • 3,248
  • 1
  • 19
  • 32
1
2
3
10 11