xsltprocessor

Problem with php's XSLTProcessor

I'm trying to use the XSLTProcessor class in php to generate xhtml from a .dita file based on the DITA Open Toolkit's xslt files. The XSLTProcessor is working with simple xml and xslt files (e.g. with the samples on wikipedia), but it fails with the Open Toolkit's xsls. The intresting part is that everything works well, if I use xsltpr...

MSXML - Namespaces info not persisting

I am using MSXML 6.0 to perform a transform of my own XML into another XML format. I am not sure if I maybe just don't understand exactly how MSXML works, but I believe I have noticed some strange behaviour with it.... I am adding in the namespaces to my XML doc using the setProperty method e.g. XmlDocument.setProperty('SelectionNamesp...

Select the current value in a dropdownlist using XSL and SharePoint

I'm using the row edit template below. The problem I have is that the current value is not selected when the row edit XSL template is used. The value defaults to the first item in the list. What is the best way to get the current value to be the selected item in the template below? I thought having DataValueField="{@type}" and DataTe...

XSLT, JSTL e JSF

I have a xml file which I want to transform in a jsf code page. To do that I've created a xsl file. xml: <?xml version='1.0' encoding='ISO-8859-1'?> <questionario xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:noNamespaceSchemaLocation='Schema2.xsd'> <componente nome='input'> <id>input1</id> </...

Passing arguments to Visual Studio's XSLT debugger

I'm debugging a transform with Visual Studio. The application that uses the transform normally also passes in some parameters: XslTransform xslTransform = new XslTransform(); xslTransform.Load(myXslt); XsltArgumentList transformArgumentList = new XsltArgumentList(); transformArgumentList.AddParam(paramName1, String.Empty, paramValue1); ...

XSLT libray for v8/Node.js

After some quick Googling, I found that there are some XML libraries available for v8/Node.js: http://github.com/ry/node/wiki/modules#parsers-xml However, after drilling down into these modules, it seems that they only provide support for parsing XML documents, and manipulating them with DOM. I'm wondering if anyone is aware of an XSLT ...

xslt support in go

Dear fellow go enthusiasts, I would need xslt support in a go program. As far as I know there will be no xslt library in the the near future and currently there is no binding to a xslt library in go. What is the FASTEST library on linux or cross platform to do 1) xslt 1.0 transformation 2) xslt 2.0 transformation ...

Cannot set a breakpoint in "main" XSLT file

This is a very irritating bug/behaviour in Visual Studio. I am hoping that someone can tell me how to fix it or what we are doing wrong. The scenario is that we have a program that runs some XSLT over some XML (see code below). There is nothing particularly strange about the code as far as I can tell. This code is run on a new Thread...

Using XSLT document() on a dynamicly generated XML in PHP

Hi, In my XSLT file. I use the document() function <xsl:variable name="Publicity" select="document('./publicity.xml')" /> and that works but if I try to link a PHP script that generate the XML dynamically, <xsl:variable name="Publicity" select="document('./publicity.php')" /> I get a Warning: XSLTProcessor::transformToXml() [xsl...

XSLT stylesheet does not reload

Hey, I got a static page which uses an XSLT stylesheet and pulls in the overall menu from a separate menu.xml. Usually, the menu wont change, neither will the stylesheet. However, at some point they may, because the content is modified. In any case, the auxiliary styling files are not reloaded when you reload the main page. Essentially...

How to output HTML file from XML and XSLT stylesheet

Hi, I've created a XML data document and an XSLT stylesheet, and I want to output an HTML document based on the two. My stylesheet has the tag, and my XML document has the processor instuction (along with various "xsl:value-of" references). My question is, what are the actual "mechanics" of getting the XSLT processor (which, I understa...

Viewing the output of Visual Studio's XSLT debugger

I'm using Visual Studio to debug a transform. If I am viewing the transform and select XML > Start XSLT Debugging, VS automatically opens the output file and as I step through the transform I can observe the output being written. In my case however, because the transform is performed by an application that first sets some parameters, I...

XSLT : Cannot convert the operand to 'Result tree fragment'.

Hello, I work on an xslt stylesheet, and I should receive as parameter two additional XML. I get an error when I use the node-set() method (from namespace ms, microsoft). The contents of the XML is correct. The parameters are send with classic ASP. Here's the header and the call in xslt: <?xml version="1.0" encoding="utf-8"?> <xsl:styl...

Conflict by combining jQuery Accordion with GallerificPlus

Hi All I'm trying to combine the official jQuery accordion plugin with another JQ plugin called 'GallerificPlus' (Gallerific & Lightbox in 1). Unfortunately it doesn't work for me. The GallerificPlus is the one that doesn't work, the accordion works fine. Firebug reports no errors, so this could be anything. It's really frustrating. ...

Update XML using XSLT in C# - How to update the same file

My requirement is to update an XML file (some elements identified via a parameter, with new attribute values again identified via a paramenter). I am using XSLT to do the same via C# code. My code is as below: XslCompiledTransform xslt = new XslCompiledTransform(); xslt.Load(f_Xslt); XmlReader xr = XmlReader.Create("SourceXML.xml")...

XSLT help running in java.

Im new to the XSLT world, I am basically trying to run the JSON convertion from HERE However if I use this method: TransformerFactory tFactory = TransformerFactory.newInstance(); Transformer transformer = tFactory.newTransformer(new StreamSource("src\\json\\xml-to-json.xsl")); transformer.transform(new StreamSource("src...

XSL Transform cannot invoke user defined Java Method

Hi, I have the following XSL which defines a namespace for my Java Class. In a nutshell I'm trying to point to a different resource bundle depending upon a value in my XML file (I know Resource Bundles are really for internationalization but why re-create the wheel?): <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/...

Sorting subentities in a complex XML in BizTalk

I get some data from a WebService, which looks like this Building Address -> Office Name CreationDate -> Worker Name HiringDate Before doing further processing and transforms on this message, I need to sort the sub-nodes ("Office" and "Worker") so that all Offices are s...

Saxon and character encoding: experiences and errors

Recently I ran some tests on xslt transformations with Saxon. My main focus was file encoding and character sets. But I was interested also in impact of different Saxon versions and Java VM x86 vs. x64. The insights are not spectacular still I'd like to share them and ask for comments. On xml file encoding: In general, you have to disti...