xsltprocessor

How to apply an XSLT Stylesheet in C#

I want to apply an XSLT Stylesheet to an XML Document using C# and write the output to a File. Edit: @Rob Cooper: Yes, I am aware of that. But I couldn't find it in SO. The Idea of this site is to collect answers to any question a developer could have, right? I had this question today and thus posted an answer. Next time I look (this i...

javascript XSLTProcessor occasionally not working

The following javascript supposes to read the popular tags from an XML file and applies the XSL Stylesheet and output to the browser as HTML. function ShowPopularTags() { xml=XMLDocLoad("http://localhost/xml/tags/popular.xml?s=94987898"); xsl=XMLDocLoad("http://localhost/xml/xsl/popular-tags.xsl"); if (window.ActiveXObject...

What is the best XSLT engine for Perl?

I would like to know what of the many XSLT engines out there works well with Perl. I will use Apache (2.0) and Perl, and I want to obtain PDFs and XHTMLs. I'm new to this kind of projects so any comment or suggestion will be welcome. Thanks. Doing a simple search on Google I found a lot and I suppose that there are to many more. ...

XSLT Transform Efficiency

I am a support engineer and our company's product allows XSLT transforms to customize outputs. I made a xsl transform for this purpose. It works well for source files of typical size (several 100k), but occasionally a really huge (10M) source file will come by. In such case, the output is not generated even if I let it grind several day...

Is there any online XSLT processing service available?

(This might not seem strictly programming related, but I figure it's about deployment of an XSLT solution, and XSLT is a programming language, right?) I have this cunning plan for customizing a podcast that I subscribe to so the titles and other parts of the feed fit more to my liking. I figure I can devise some XSLT that expects the or...

can you get XmlCompiledTransform progress?

Hello, I want to read an xml file, apply a transform, then write to another file. The best way I can think of is this: using (XmlTextReader reader = new XmlTextReader(new FileStream(_source, FileMode.Open))) using (XmlTextWriter writer = new XmlTextWriter(new StreamWriter(_destination))) { _xslTransform.Transform(reader, writer); } ...

mozilla client side XSLT not displaying. (Using jQuery too)

I want to use firebug to debug and help be quickly finish some XSLT layout issues, but I cannot get the following code to perform and display the client side XSLT in Firebox (everything is fine in IE): $().ready(function() { var oXMLHTTP var oXSLT if ($.browser.mozilla){ oXMLHTTP = document.implementation.createDocument(...

Java XSLT processors supporting XPath 2.0

What are the currently available XSLT processors supporting XPath 2.0 standard? ...

Open-source java XSLT 2.0 implementation?

I'm currently looking into using XSLT 2.0, but I cannot find any open-source java implementations (Saxon-B seems to fit the bill, but isn't schema-aware). Am I missing something? ...

TransforMiiX (XML/XSLT)

If you have a look at www.PollDaddy.com you will see that for every question you add a resulting xml and xslt file are requested and when recieved they are transformed. Then when you save your page you will see that the adjusted xml file (your filled in question data) is send back to the server to be saved to the database. I would lik...

SAXON.NET XSLT 2.0 Processor

I am using the open source Saxon XSLT processor for .NET to execute some 2.0 transforms. I reference the saxon9api.dll as I would any other dll, and can compile code against this. However Visual Studio does not show any intellisense making the IDE as useful as notepad. The saxon9api.dll is using the IKVM Java for .NET platform, and I w...

How Do You Prevent A javax Transformer From Escaping Whitespace?

I'm using the javax.xml.transform.Transformer class to perform some XSLT translations, like so: TransformerFactory factory = TransformerFactory.newInstance(); StreamSource source = new StreamSource(TRANSFORMER_PATH); Transformer transformer = factory.newTransformer(source); StringWriter extractionWriter = new StringWriter(); String xml ...

can xsltproc be used to parse non UTF 8 xml files

I have written a bash shell script that reads a directory and parses all the XML files in it in a for loop. I am taking each XML file and feeding it to xsltproc along with a xsl style sheet. The problem is some xml files are having non UTF 8 characters and the parser is unable to open those files. Parser error is thrown saying that UTF 8...

.NET 3.5 RSS and XML Stylesheets

Can you add an XML-stylesheet to the RSS feed generated through the new System.ServiceModel.Syndication namespace? ...

Processing FOP with parameters

HI, I want to use FOP to prepare a XML document for printing (ps/pdf). Is it possible to send parameters to FOP to do conditional formating as exist in xsl processors XSL: <xsl:param name="isDuplicate">no</xsl:param> .... <xsl:if test="$isDuplicate='yes'"> <h2 align="center">Copy</h2> </xsl:if> .... ...

Outputting XHMTL with xsltproc

Background: We've created a client portal that selects desired data points from our database and outputs them as XML. The client has provided us with their desired format in the form of an XSLT stylesheet. So our deliverable to them is preferably the most user-friendly format possible, preferably a PDF. Our service is in Perl, so we've ...

PHP Warning in XSLTProcessor::importStylesheet() despite near empty XSL stylesheet

Hi, I'm trying to use the following code # LOAD XML FILE $XML = new DOMDocument(); $XML->loadXML( $exporteddatatransformed ); # START XSLT $xslt = new XSLTProcessor(); $XSL = new DOMDocument(); $XSL->load( 'xsl/'.$xsltemplatefileid.'.xsl', LIBXML_NOCDATA); $xslt->importStylesheet( $XSL ); <-- LINE 549 #PRINT print $xslt->tr...

Using xsl:include with AJAX/XSLT

I am using Javascript to load XML and transform it with XSLT. Everything works until I try to use <xsl:include>. Is it possible to include files this way? Here is the relevant XSLT code. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt; ... <xsl:include href="another_xslt.xsl"/> </xsl:stylesheet> And ...

How do I run an XSLT file?

Alright this seems like a stupid question but I can't figure it out. I'm writing an XSLT file to translate an XML document into an XHTML document. I've used both Visual Studio and XML Notepad 2007 to preview the results of my XSLT file, but now I want to actually write out a real XHTML file so I can see how it looks in other browsers. ...

Why don't all XSLT templates get executed at once?

Refer to: http://stackoverflow.com/questions/1613454/retrieving-one-element-and-filter-by-another In the above linked posting, I don't understand why the two template blocks don't get executed upon in the incoming XML at the same time. As far I can can see, the XSL risks the second template executing for every Document element whether i...