Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > HTML or XML depending on client.

Reply
Thread Tools

HTML or XML depending on client.

 
 
Adam David Moss
Guest
Posts: n/a
 
      06-24-2008
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.

 
Reply With Quote
 
 
 
 
Old Pedant
Guest
Posts: n/a
 
      06-26-2008
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.


 
Reply With Quote
 
 
 
 
Adam David Moss
Guest
Posts: n/a
 
      06-29-2008
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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.
>
>


 
Reply With Quote
 
Mike Brind [MVP]
Guest
Posts: n/a
 
      06-29-2008
How are you styling it? Inline CSS? If so, don't.

--
Mike Brind
Microsoft MVP - ASP/ASP.NET

"Adam David Moss" <(E-Mail Removed)> wrote in message
news:%23$(E-Mail Removed)...
> 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" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> 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.
>>
>>

>



 
Reply With Quote
 
Adam David Moss
Guest
Posts: n/a
 
      06-30-2008
Styling is done using the class attribute and an external style sheet
against the <div>'s.

Regards.



"Mike Brind [MVP]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> How are you styling it? Inline CSS? If so, don't.
>
> --
> Mike Brind
> Microsoft MVP - ASP/ASP.NET
>
> "Adam David Moss" <(E-Mail Removed)> wrote in message
> news:%23$(E-Mail Removed)...
>> 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" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>>> 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.
>>>
>>>

>>

>
>


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
url fetching from xml depending upon selection shanti bhushan Python 8 05-18-2010 08:26 AM
XML W3C Schema, check excistence of attribute depending on otherattributes RolfK XML 2 09-10-2008 02:22 PM
[XML Schema] Value of a field depending to other fields? xan2@ono.com XML 2 05-01-2006 06:27 PM
Different results parsing a XML file with XML::Simple (XML::Sax vs. XML::Parser) Erik Wasser Perl Misc 5 03-05-2006 10:09 PM
declaring signals depending on generic parameters valentin tihomirov VHDL 1 02-18-2004 02:17 PM



Advertisments