Questions tagged [xsltc]

xsltc is short for the compiled working mode of (at least) the xalan xslt processor

Unfortunately xalan in compiled mode behaves differently from xalan in interpreted mode. If you do not want headaches, either try your stylesheets in compiled mode often, or forget compiled (or better: all) xalan. There are better xslt processors, like saxon. Some of the problems I have encountered with xsltc (taking two workdays to get a stylesheet which works properly in interpreted mode to work buggy in compiled xalan):

  • node-set() behaves differently
  • cannot cope with xpath expressions with multiple indirections (try nested fors instead)
  • distinct() does not work
8 questions
2
votes
1 answer

Precompiled XSLT, ReBase and NGEN

Advanced performance question here. Here's my scenario: I have a database that contains thousands of XSLT documents. One for each page of a website so these translate XML into HTML. An ASP.NET web server (farm) loads the XSLT documents from the…
motormal
  • 158
  • 1
  • 11
2
votes
2 answers

XSLTC.EXE MSBuild Task

I have several XSLTs used in my ASP.NET web application. I want these files to be compiled to dll whenever I build the project. Currently, I'm compiling the xslts manually by invoking xsltc.exe from vs2010 tools command prompt. How can I add msbuild…
techknowfreak
  • 259
  • 4
  • 18
1
vote
0 answers

exslt distinct() does not work with xalan compiled (but works in interpreted)

I have this: If I uncomment the second line, it does not work1 when…
Árpád Magosányi
  • 1,394
  • 2
  • 19
  • 35
1
vote
1 answer

How to include assembly info to xsltc-compiled dll?

I need to include assembly info on my dll which I manually compiled the XSLT files using command prompt with XSLTC.exe. Anyone knows how? ILmerge?
HH.
  • 57
  • 6
1
vote
0 answers

XSLTC redirect:write file= does not respect Ant task destdir attribute

I have an Ant xslt task that looks like this:
orwell
  • 11
  • 1
0
votes
1 answer

How to reference a static class from dll at runtime

I'm using xsltc.exe create A.dll from A.xslt. Then refenrence A.dll in my project and do the transform: XslCompiledTransform xslt = new XslCompiledTransform(); xslt.Load(typeof(A)); // A is a public static class from A.dll xslt.Transform(RootPath +…
David4866
  • 43
  • 7
0
votes
3 answers

The XML code runs properly, but junit fails with NoClassDefFound

I am upgrading my environment from eclipse 3.3.1 and java 1.4 to eclipse 3.4.1 and java 1.5. My unit tests are in jUnit 3. eclipse java version 1.5.0__17 stand alone env version 1.5.0__12, or 1.5.0-17, both work. I have a method on a class that…
Aaron
  • 874
  • 3
  • 17
  • 34
0
votes
1 answer

XSLTC creating classes with illegal method names

I'm trying to compile an XSLT transformation using XSLTC, but the resulting class is not useable, because it contains methods with illegal names. For illustration purposes, here is a (simplified) version of the stylesheet I use: