If you're averse to XSLT (hard to debug, interop-challenged, unreasonably
difficult to implement procedural logic, etc) you should check out some of
the ASP-style codegen/template languages out there...  like Eric Smith's
CodeSmith tool, or my X-Code .NET tool.  Both freeware.

http://www.ericjsmith.net/codesmith/
http://www.arithex.com/xcc.html

These tools are derivative of Gen<X>, a now extinct software product from
DevelopMentor.  There, our slogan was "it's like mailmerge for your code".
:)

Right now, they're both just command-line tools.  But I've been meaning to
properly componentize X-Code .NET for quite some time -- I'd like to see
more single-purpose codegen apps (like NDoc, DeKlarit, XSD.exe, Visual
Studio, etc.) expose their templates to end-users in some friendly
(non-XSLT) format.

Feel free to ping me, off-list, if you'd be interested in that.
-S

-----Original Message-----
From: Joshua Perry [mailto:[EMAIL PROTECTED]
Sent: Monday, October 06, 2003 08:51
Subject: Re: Unanswered - Mail Merging within an application - best
approach?

We were using a Word based merging system a while back, and we also found
that it lacked the latitude that we required in our autogenerated documents.
We have since been working on an XML/XSLT solution that is going rather
well.  One thing that I wanted to mention is that you can run C# in-line in
the XSLT so it makes it rather powerful dynamically.

Josh

-----Original Message-----
From: Julian Voelcker [mailto:[EMAIL PROTECTED]
Sent: Friday, October 03, 2003 8:00 AM
To: [EMAIL PROTECTED]
Subject: Unanswered - Mail Merging within an application - best approach?

OK, I posted this to the Any Questions list a few days back, but haven't had
a response so am trying here.

I am considering recreating an application as either a desktop or web based
solution written in .Net.

The application is broken down into two parts, a 'wizard' style facility
that gathers data from the user and then a 'mail merge' style module where
documents are created by merging the data collected with a template
document.

The current application has been assembled using a program called HotDocs,
but it has got to the point that we no longer feel that this is a flexible
enough solution.

I am looking at various solutions for the doing the mail merging,
concentrating on either writing our own mail merge module or looking at some
sort of XML/XSLT solution.

I know that there are some MS Word style addins, but none of these seem to
have the mail mergeing flexibility that I require.

At the moment I am wondering how feasible it would be to store the data in
XML format and then use XSLT to do the merging?

One of the key issues is that the final documents are legal documents
containing multiple clauses and each clause needs to be numbered and is
often cross referenced.

During the merge process the collected data is checked to determine which
clauses are to be included and are assembled, with some clauses including
further merging with the collected data.

OK, so far I think this would be possible.

The tricky bit is that all the assembled clauses (and sub clauses) will have
to be renumbered from the top and then any cross references (where there is
a reference in one clause to another one) need to be updated.
This is something that I am unsure about.

Do you think that this is achievable?  If not, do you have any alternative
suggestions?

--
Cheers,

Julian Voelcker
The Virtual World (UK) Limited
Cirencester, United Kingdom

===================================
This list is hosted by DevelopMentor(r)  http://www.develop.com NEW! ASP.NET
courses you may be interested in:

2 Days of ASP.NET, 29 Sept 2003, in Redmond
http://www.develop.com/courses/2daspdotnet

Guerrilla ASP.NET, 13 Oct 2003, in Boston
http://www.develop.com/courses/gaspdotnet

View archives and manage your subscription(s) at http://discuss.develop.com

===================================
This list is hosted by DevelopMentor.  http://www.develop.com NEW! ASP.NET
courses you may be interested in:

2 Days of ASP.NET, 29 Sept 2003, in Redmond
http://www.develop.com/courses/2daspdotnet

Guerrilla ASP.NET, 13 Oct 2003, in Boston
http://www.develop.com/courses/gaspdotnet

View archives and manage your subscription(s) at http://discuss.develop.com

===================================
This list is hosted by DevelopMentor�  http://www.develop.com
NEW! ASP.NET courses you may be interested in:

2 Days of ASP.NET, 29 Sept 2003, in Redmond
http://www.develop.com/courses/2daspdotnet

Guerrilla ASP.NET, 13 Oct 2003, in Boston
http://www.develop.com/courses/gaspdotnet

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to