exslt

XSLT XALAN Example

Hi, I want yo use the EXSLT - DYN:EVALUATE in a style sheet. I have added the names pace but I don't know where the .xsl file I need to import is. I don't believe I have XALAN installed to point the import to. How would I install this? Once installed and I point it to the .xsl will it pick up the function and apply it? I am running Wind...

XSLT IE6 default processor

What is the default XSLT processor for IE6. Does it support EXSLT? Is there anyway to make it support it? ...

XPath 1.0 max function on variables using EXSLT

Hi, I am serching an XPath function that works like the XPath 2.0 fn:max function. A function that returns the maximum of several parameters. After searching a lot I figured out this way: <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:math="http://exslt.org/...

Using/implementing exsl function node-set() in SSIS's XML Task

Hi there. I'm attempting to apply an XSL transform to an XML file inside an SSIS package XML Task. All well and good, but unfortunately my XSL is slightly less "portable" than normal as I need to use the function node-set(). A simplified example of my XSL is: <xsl:for-each select="msxsl:node-set($familyNames)/token"> <xsl:call-templa...

How does one use EXSLT modules in XMLSpy?

I'm trying to use the EXSLT modules (specifically, math), in an XQuery document. How do I enable support for this in XMLSpy? Where would I place the downloaded EXSLT libraries to make XMLSpy aware of them? ...

"Unrolling" a string with XSL

We have an application which has a heirarchical group structure. Some of the groups are passed in this format: /Geography/NA/US/California I would like to "unroll" this string so that I can get a node set like the following: /Geography /Geography/NA /Geography/NA/US /Geography/NA/US/California I know I can use str:tokenize and get ...

Jruby LoadError: Could not open any of [xml2, xslt, exslt] WINDOWS

I am running on windows vista 64 bit operating system. Geografikos is a large project created as a masters thesis project by Jeremy Witmer. It is all coded in JRuby. I am currently expanding the project under his guidance however I cannot run his program. The following gems have been installed: C:\work\Code\geografikos>jruby -S gem list...

XSL add a duration (exslt date)

I have an xsl where I want to display a default expiry date (now+1 month) I can display the current date with this (using: xmlns:date="http://exslt.org/dates-and-times" extension-element-prefixes="date") <xsl:variable name="currentdate" select="date:date()"/> <!-- add one month to $currentdate--> <xsl:value-of select="date:format-date(...

How to use embedded EXSLT from XSLTProcessor?

XSLTProcessor::hasExsltSupport() returns true. Now what do I have to modify so I can use it? I have <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:date="http://exslt.org/dates-and-times" extension-element-prefixes="date"> Transformation what I'm tr...

XSLT1.0: replance new line character with _

I am having this below variable <xsl:variable name="testvar"> d e d </xsl:variable> and I have this function: <xsl:choose> <xsl:when test="not($str-input)"> <func:result select="false()"/> </xsl:when> <xsl:otherwise> <func:resul...

EXSLT syntax problem

No doubt this will be something obvious, but the following code has 2 errors on the marked line: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:date="http://exslt.org/dates-and-times" extension-element-prefixes="date"> <xsl:import href="date/date.xsl" /> <xsl:template match="//day"> ...

EXSLT func:return problems in xsl:for-each "loop" and func:function

My problem: I have a wealth of atom RSS feed files which have many different atom entries in them and a few overlapping entries between files. I need to find and return an entry based on a URL from any one of the RSS feeds. Technologies: This code is being run through PHP 5.2.10's XLSTProcessor extension, which uses XSLT 1, has support ...

XSLT: Calculating year based on non January start

I'm trying to calculate a year based on a year starting 6th April. Using EXSLT I can get the year based on a normal January start: date:formatDate(date:add(date:date(), '-P6Y'), 'yyyy') How can I do the same but for a year starting 6th April. Thanks. ...

How to solve XML to XML problem using Exslt - set:distinct

This extends from http://stackoverflow.com/questions/2133459/xml-to-xml-using-xsl-problem I managed to import exslt and modified my codes according to the solution (thanks to Kyle Butt) given as follows: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:func="http://exslt....

exslt.org extensions

I am trying to use an exslt extension in one of my transformations. I got an example off this site about how to concatenate xml files into one. I have implemented the namespace and the element prefix correctly, but every time I try and run it from my command line I recieve the following error... Cannot find a matching 1-argument functi...

Concatenating XML

I have three files of xml <step> <Products> <Product UserTypeID="Country"> <Name>Cyprus</Name> <Product UserTypeID="Resort"> <Name>Argaka</Name> <Product UserTypeID="Property"> <Name>Villa Tester</Name> </Product> </Product> <Product UserTypeID="Reso...

Implementing exslt.dynamic.evaluate in c# (XslCompiledTransform)

Hi, I have a stylesheet that makes use of exslt:dynamic module and more precisely, it only uses the evaluate function. I know the XslCompiledTransform from .NET 2.0 does not implement this module (just like the ExslTransform from Mvp.Xml). Any idea how to solve this problem? ...

Sorted exsl:node-set. Return node by it position.

Good afternoon, gentlemen. Help me solve a very simple task. I have a set of nodes <menuList> <mode name="aasdf"/> <mode name="vfssdd"/> <mode name="aswer"/> <mode name="ddffe"/> <mode name="ffrthjhj"/> <mode name="dfdf"/> <mode name="vbdg"/> <mode name="wewer"/> <mode name="mkiiu"/> <mode name="yhtyh"/> and so o...

EXSLT date:format-date template without document() XSLT 1.0

Hello guys, I'm using date:format-date template EXSLT file I'm using XSLT 1.0 and MSXML3.0 as the processor. My date:format-date template EXSLT file's declaration is: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:date="http://exslt.org/dates-and...

xsl:variable contains nodeset. How to output nth node of variable?

I am transforming an XML document. There is an attribute @prettydate that is a string similar to "Friday, May 7, 2010". I want to split that string and add links to the month and the year. I am using the exslt:strings module and I can add any other necessary EXSLT module. This is my code so far: <xsl:template match="//calendar"> ...