[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Structuring templates

Subject: Re: Structuring templates
From: "Joseph L. Casale jcasale@xxxxxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 1 Sep 2017 16:57:16 -0000
Re:  Structuring templates
-----Original Message-----
From: Martin Honnen martin.honnen@xxxxxx [mailto:xsl-list-
service@xxxxxxxxxxxxxxxxxxxxxx]
Sent: Friday, September 1, 2017 10:47 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  Structuring templates

> Are you aware that XslCompiledTransform supports extension objects as
> well as inline code? If you encapsulate your C# code in a class and pass
> that as an extension object with e.g.
> https://msdn.microsoft.com/en-
> us/library/system.xml.xsl.xsltargumentlist.addextensionobject(v=vs.110).as
> px
> when you run XSLT then you don't depend on inline script compilation and
> execution and I think it should also solve the problem you have with
> sharing the C# code.
>
> Obviously that way you need to write and compile the C# separately
> instead of having XslCompiledTransform doing it for the inline code, I
> am not sure whether it is an option.

Yeah, I am constrained by the WIX toolset and it doesn't offer the facility
to pass the code in as a compiled library which I am certain you are correct
in that it would likely solve the issue. I wish xsl v1 and all of msxsl could
just
be banished:)

Thanks,
jlc

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.