No, you would have 2 different XSLTs, one for each device type. As long as
specified for the notification.
This posting is provided "AS IS" with no warranties, and confers no rights.
"lhomes" <anonymous@discussions.microsoft.com> wrote in message
news:28da01c4c039$07f2fb90$a601280a@phx.gbl...
> So in that case, my xslt file would need to determine how
> to format based on the device type?
>
> >-----Original Message-----
> >The XSLT transform file is chosen according to the
> criteria outlined in the
> >BOL article "XSLT File Location". The device type can as
> you suggest be used
> >to control which formatting will apply to a
> subscription. You do not however
> >need to include two notification classes and event
> rules. You can define the
> >device name in the subscription, and set the device name
> in the notification
> >through the <Action>, e.g.:
> >
> ><Action>
> >SELECT NewsNotificationNotify(S.SubscriberId,
> S.SubscriberDeviceName,
> >S.SubscriberLocale, E.Headline, E.BrowseBackURL)
> >FROM NewsSubscribers S JOIN NewsEvents E
> >ON S.SiteName = E.SiteName
> ></Action>
> >
> >Let me know if this is what you were after!
> >
> >-Colin Meek [MSFT]
> >
> >--
> >This posting is provided "AS IS" with no warranties, and
> confers no rights.
> >Use of included script samples are subject to the terms
> specified at
> >
http://www.microsoft.com/info/cpyright.htm. > >
> >Please do not send e-mail directly to this alias. This
> alias is for
> >newsgroup purposes only.
> >--
> >
> >"lhomes" <anonymous@discussions.microsoft.com> wrote in
> message
> >news:44de01c4a6ed$c6cadca0$a501280a@phx.gbl...
> >> Thank you for replying. Is there some other way than
> >> creating 2 seperate device types? They are both a
> >> standard email inbox. Or is that the primary use of
> >> device type to control formatting?
> >>
> >> -lhomes
> >>
> >>
> >>
> >> >-----Original Message-----
> >> >here is what u can do.
> >> >create a custom formatter that finds the device type
> of
> >> the subscriber uses
> >> >XSLTransform and picks up the correct XSLT file.
> >> >
> >> >in this case you can have one notification class - but
> >> you need 2 XSLT
> >> >files.
> >> >
> >> >hth,
> >> >Av.
> >> >
> >> >"lhomes" <anonymous@discussions.microsoft.com> wrote
> in
> >> message
> >> >news:0d0201c4a645$e3ca3290$a401280a@phx.gbl...
> >> >>I need to be able to send 2 different formats of
> email
> >> >> when an event happens. 1 internal that has a bunch
> of
> >> >> data about the details of the event and the other
> >> >> external with just a simple notification - no
> >> details. I
> >> >> can make this work with different device types but
> it
> >> >> seems like there should be a better way.
> >> >>
> >> >> Is there a way to select the format through the
> >> >> subscription? ie I want to subscribe to event 1 in
> >> format
> >> >> 1 and user 2 wants to subscribe to the same event
> but
> >> >> receive format 2 (both formats are sent via
> email)????
> >> >>
> >> >> I'm having a hard time getting a handle on all the
> >> >> various relationships between events, subscriptions,
> >> >> devices, subscribers, event rules, notifications,
> >> >> formatting, protocols and channels. Is there
> somewhere
> >> >> where there is a diagram showing the relationships
> of
> >> the
> >> >> items in the appadf and appconfig files and the
> object
> >> >> model of the subscription management objects?
> >> >>
> >> >> I've defined
> >> >> 1 event class
> >> >> 1 subscription class
> >> >> - 2 event rules
> >> >> -- 1 creates notifications1 by including device 1
> >> >> -- 2 creates notifications2 by including device 2
> >> >> 2 notification classes
> >> >> --1 xslt formatter which produces detail
> >> >> --2 xslt formatter produces reduced
> >> >>
> >> >> 1 user subscribes with device 1 to event 1 gets
> detail
> >> >> 1 user subscribes with device 2 to event 1 gets
> reduced
> >> >> info
> >> >>
> >> >> since the content formatting appears to be tied to
> the
> >> >> notification class, I basically had to duplicate the
> >> >> notification class, change the name, change the xslt
> >> >> file , create the new xslt file, and add a second
> event
> >> >> rule to hard code to include in ints selection
> criteria
> >> >> where the subscription device is the second device.
> >> Then
> >> >> define another delivery channel, and device, and
> change
> >> >> subscriptions for some users to use the second
> device
> >> >> (emailReduced) and some to use the original. I've
> >> >> basically copied and pasted a bunch of stuff and
> made
> >> it
> >> >> harder to maintain when all I wanted was 2 formats
> for
> >> 1
> >> >> event for the same delivery mechanism (email).
> >> >>
> >> >> - any direction appreciated.
> >> >>
> >> >> has anybody seen any microsoft blogs related to sql
> >> >> notification services?
> >> >>
> >> >>
> >> >
> >> >
> >> >.
> >> >
> >
> >
> >.
> >