[Top] [All Lists]

Re: Custom content formatter which extends the XSLT formatter

Subject: Re: Custom content formatter which extends the XSLT formatter
From: Joe Webb
Date: Sat, 09 Dec 2006 08:57:35 -0600
Newsgroups: microsoft.public.sqlserver.notificationsvcs
I haven't tried exactly what you're describing, but I've been
considering do exactly that for one of my clients. 

In the past, rather than subclassing I've called the XSLT
programmatically. Not sure if this will help you or not, but FWIW here
is the code I used: 

TextReader textReader = new StringReader(this.GetXmlString(uid, pwd));
XmlTextReader xmlTextReader = new XmlTextReader(textReader);
XPathDocument xPathDocument = new XPathDocument(xmlTextReader);

string fileName = ConfigurationSettings.AppSettings["XsltPath"];
XslTransform xslt = new XslTransform();

StringBuilder sb = new StringBuilder();
TextWriter tw = new StringWriter(sb);


return sb.ToString();



Joe Webb
SQL Server MVP

Get up to speed quickly with SQLNS 

I support PASS, the Professional Association for SQL Server.

On 8 Dec 2006 14:57:59 -0800, "BigDave" <[email protected]> wrote:

>Hi all,
>We would like to build a custom content formatter which *extends* the
>default XSLT formatter.  In other words, we want all of the
>XSLTFormatter's XML transformation functionality, but in addition, we
>want it to make a web service call to generate a report and return its
>file path.  I'm thinking that it should add the report path as a
>name/value to each of its "rawContent" hashtables ... so that the
>report paths can be XML-transformed just like any other notification
>Has anyone tried to build a custom content formatted by deriving
>(subclassing) from the default XSLT formatter?  Is this possible, and
>did you run into any gotchas?  If it's not possible, any alternative
>design suggestions?
>Thanks very much,

<Prev in Thread] Current Thread [Next in Thread>