![]() |
HTML or XML depending on client.
All,
Suppose I have a widget A that I would like to embed in several websites B, C, and D. Sites B and C are happy with the widget the way I've styled it but site D isn't and wants to restyle it themselves. What would be the best way of doing this in ASP? My thoughts are that I have an ASP page that determines in a query string has been provided (issued to site D) and returns XML otherwise returns my formatted HTML. Any advice appreciated. Cheers, Adam M. |
RE: HTML or XML depending on client.
Why not just use XHTML???
It's formally correct as XML, so you can transform it with XSL. But it also can be used directly, by browsers. Difficulty: It can't be integrated into loose HTML pages, in general. But other than that idea...your idea seems fine to me. |
Re: HTML or XML depending on client.
My page is actually XHTML. But how would any individual site transform that
to their own rendering? How would they pick out the data items? Thanks "Old Pedant" <OldPedant@discussions.microsoft.com> wrote in message news:2E1E5779-C690-4B5E-9A5C-A94C39296AC7@microsoft.com... > Why not just use XHTML??? > > It's formally correct as XML, so you can transform it with XSL. But it > also > can be used directly, by browsers. > > Difficulty: It can't be integrated into loose HTML pages, in general. > > But other than that idea...your idea seems fine to me. > > |
Re: HTML or XML depending on client.
How are you styling it? Inline CSS? If so, don't.
-- Mike Brind Microsoft MVP - ASP/ASP.NET "Adam David Moss" <no@email.address> wrote in message news:%23$brLWe2IHA.3600@TK2MSFTNGP04.phx.gbl... > My page is actually XHTML. But how would any individual site transform > that to their own rendering? How would they pick out the data items? > > Thanks > > > > "Old Pedant" <OldPedant@discussions.microsoft.com> wrote in message > news:2E1E5779-C690-4B5E-9A5C-A94C39296AC7@microsoft.com... >> Why not just use XHTML??? >> >> It's formally correct as XML, so you can transform it with XSL. But it >> also >> can be used directly, by browsers. >> >> Difficulty: It can't be integrated into loose HTML pages, in general. >> >> But other than that idea...your idea seems fine to me. >> >> > |
Re: HTML or XML depending on client.
Styling is done using the class attribute and an external style sheet
against the <div>'s. Regards. "Mike Brind [MVP]" <paxtonend@hotmail.com> wrote in message news:OWGVEzg2IHA.4772@TK2MSFTNGP03.phx.gbl... > How are you styling it? Inline CSS? If so, don't. > > -- > Mike Brind > Microsoft MVP - ASP/ASP.NET > > "Adam David Moss" <no@email.address> wrote in message > news:%23$brLWe2IHA.3600@TK2MSFTNGP04.phx.gbl... >> My page is actually XHTML. But how would any individual site transform >> that to their own rendering? How would they pick out the data items? >> >> Thanks >> >> >> >> "Old Pedant" <OldPedant@discussions.microsoft.com> wrote in message >> news:2E1E5779-C690-4B5E-9A5C-A94C39296AC7@microsoft.com... >>> Why not just use XHTML??? >>> >>> It's formally correct as XML, so you can transform it with XSL. But it >>> also >>> can be used directly, by browsers. >>> >>> Difficulty: It can't be integrated into loose HTML pages, in general. >>> >>> But other than that idea...your idea seems fine to me. >>> >>> >> > > |
| All times are GMT. The time now is 11:01 AM. |
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.