xslcompiledtransform

XslCompiledTransform.Load() raises System.IO.FileNotFoundException

My webapp(asp.net 2.0) consumes a webservices( asmx on 1.1 framework) on the same machine. After getting xml in return, I pass it to XslCompiledTransform for transform xml to html and it works fine. Yesterday I got System.IO.FileNotFoundException frequently and don't know what causes this kind of problem. First look I thought it's ab...

StackOverflowException loading XsltCompiledTransform

Hi, i have some big xslt crashing iis (StackOverflowException) when loading an XslCompiledTransform while the old (deprecated) XslTransform works fine. Is there some known issue with big templates? Strangely enough, the same XslCompiledTransform loads successfully in a win32 application. ...

XslCompiledTransform vs. XslTransform and how about an OOM for good measure?

So for a while I've been using XslCompiledTransform because that's what Microsoft tells me I need to use as XslTransform is deprecated. Recently I had to use it with a transform that has nearly 100,000 lines (generated xsl - of course). When I used my application I was shocked to see an OOM pop up. No matter what I did - OOM is all I ...

problem with XslCompiledTransform debugging in c#

i've tried and tried and tried but i cannot manage to step into the XslCompiledTransform without having to load the stylesheet from disk (by passing a URI into the XslCompiledTransform.Load() method). I am fully aware that you can only step into the XslCompiledTransform.Transform() method if you loaded the stylesheet from disk via URI (...

Setting XslCompiledTransform Outputsettings

Hi, I am writing bit of code that relies on XslTransformation of one submodule. Since the XslTransformation exposes a XmlWriterSettings field called Outputsettings I thought it would be cool to expose the XmlWriterSettings field in my class too so I can use my IoC container to configure the XmlWriterSettings through the configuration....

fastest in-memory cache for XslCompiledTransform

I have a set of xslt stylesheet files. I need to produce the fastest performance of XslConpiledTransform, so i want to make in-memory representation of these stylesheets. I can load them to in-memory collection as IXpathNavigable on application start, and then load each IXPAthNavigable into singleton XslCompiledTransform on each request...

XSLT self-closing tags issue

Hi, I am using xslt to transform an xml file to html. The .net xslt engine keeps serving me self-closing tags for empty tags. Example: <div class="test"></div> becomes <div class="test" /> The former is valid html, while the latter is illegal html and renders badly. My question is : How do I tell the xslt engine (XslCompiledTrans...

How to resolve XSL includes in a Transformation that loads XSL from a String?

.NET 2.0/VS2005 I am trying to use the XslCompiledTransform class to perform a XSL Transformation. I have two XSL files, the first of which includes a reference to the other in the form of an <xsl:include> statement : Main.xsl: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt; <xsl:include href="Incl...

Need Information on XslCompiledTransform in Plain English

Does anybody have any links that explain proper implementation of the XSLCompiledTransform? Thanks ...

How come resolve-QName() is an unknown XSLT function when using XslCompiledTransform ?

I try to transform a WSDL 1.1 to WSDL 2.0 using the XSLT 2.0 stylesheet from W3.org WSDL 1.1 to WSDL 2.0 convertor. I'm working in .NET (C#) using the XslCompiledTransform. Anyone has an idea why I get the "resolve-QName() is an unknown XSLT function" exception ? Any workarounds ? Thx ...

In .NET, how do I write a UTF-16 XMLDocument to a string with a BOM

I am building an XmlDocument on the fly in .NET with an xml document. I then transform that with the Transform() method of an XslCompiledTransform. The Transform() method threw an exception because an invalid character for the encoding was found in the stream. When I copy/paste the string with the help of the TextVisualizer in Visual St...

XslCompiledTransform and Serialization

Hello, I am trying to implement some functions that will convert one object to another with XslCompiledTransform. I found some implementations for Serializing an object to XML string and DeSerialize the XML string to an object. Another function does the XslCompiledTransform from object1 to obejbct2. To generate the XSLT file i used t...

XslCompiledTransform output as XPathDocument

I am trying to use a XslCompiledTransform, and use the output as a XPathDocument. Any Ideas? ...

XslCompiledTransform causes grief with Infopath

I am not an infopath developer and this is my first real encounter with XSLT. Lately i've had to work on a project where i need to convert an infopath form uploaded to Sharepoint into html. Once in html we can use any thirdparty library to spit out any desired/supported format we want. What We Do In Code: We create an XslCompiledTrans...

Infopath Master Detail Section Lost after XslCompiledTransform

We have a web application which parses Infopath Xml forms hosted in Sharepoint environment and converts them to Html. We then convert to any desirable format using other third party libraries. I acquire the XmlDocument from sharepoint but when i Transform it using the XslCompiledTransform object I loose the Master/Details Section from ...

Passing parameters to XSLT Stylesheet via .NET

Hello, I'm trying to pass a parameter to an XSLT stylesheet, but all i'm getting is an empty xml document when the document is transformed using XSlCompiledTransform. This is the C# method used to add the parameters(after adding in people's suggestions) private static void CreateHierarchy(string manID) { string man_ID = m...

Dynamic XSL file

I have 3 XSL files which have paths in them to something like C:\templates\Test\file.pdf This path isn't always going to be the same and rather than having it hard coded in the XSL, I'd like it so that the path C:\templates\test\ is replaced with a tag [BASEPATH] and when I read in the xsl file into the XSLTransform object (yes I know i...

Exclude XML directive from XslCompiledTransform.Transform output

I'm using an XsltCompiledTransform to transform some XML into a fragment of HTML (not a complete HTML document, just a DIV that I will include in page generated elsewhere). I'm doing the transformation as follows: StringBuilder output = new StringBuilder(); XmlReader rawData = BusinessObject.GetXml(); XmlWriter transformedData = Xml...

XSLT transform with multiple XML input files

Is it possible to perform a transform on multiple input XML files? It doesn't appear to be possible using XslCompiledTransform, but is there an alternative way of applying an XSLT? ...

C# XslCompiledTransform using XmlDocument or XPathDocument when editing is required?

I'm going on a couple assumptions here: XPathDocument is not editable. XmlDocument is editable. XPathDocument is more efficient for XslCompiledTransform. That being the case (and please correct me if I am wrong), would it be better (more efficient) to: Make modifications using the XmlDocument, then convert to an XPathDocument befo...