Problem using the print view XSL outside of InfoPath

K

Ken Ng

I extracted the prrint view XSL from the template and try to use it in my C#
code to transform the form XML into HTML. The problem is that all those
function-available failed, e.g.

<xsl:when test="function-available('xdFormatting:formatString')">

<xsl:if test="function-available('xdXDocument:GetDOM')">

The code I have is very simple:

XslCompiledTransform xslt = new XslCompiledTransform();
xslt.Load(xslPath);
xslt.Transform(xmlPath, outputPath);

My question is whether I need to load some specific object that have those
function defined for the transform to use?
 
S

Sachin Nema

Hey Ken

Would you like to tell us .. how are you handling the XSLT Path here. is
XSLT is part of your XSN package?

Are you accessing the XSLT with the HTTP path or what?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top