HTML or XML depending on client.

Discussion in 'ASP General' started by Adam David Moss, Jun 24, 2008.

  1. 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.
     
    Adam David Moss, Jun 24, 2008
    #1
    1. Advertising

  2. Adam David Moss

    Old Pedant Guest

    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.
     
    Old Pedant, Jun 26, 2008
    #2
    1. Advertising

  3. 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" <> wrote in message
    news:...
    > 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.
    >
    >
     
    Adam David Moss, Jun 29, 2008
    #3
  4. How are you styling it? Inline CSS? If so, don't.

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

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

    >
     
    Mike Brind [MVP], Jun 29, 2008
    #4
  5. Styling is done using the class attribute and an external style sheet
    against the <div>'s.

    Regards.



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

    >>

    >
    >
     
    Adam David Moss, Jun 30, 2008
    #5
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. valentin tihomirov
    Replies:
    1
    Views:
    587
    Jonathan Bromley
    Feb 18, 2004
  2. Replies:
    2
    Views:
    505
  3. RolfK
    Replies:
    2
    Views:
    488
  4. shanti bhushan
    Replies:
    8
    Views:
    350
    Stefan Behnel
    May 18, 2010
  5. Erik Wasser
    Replies:
    5
    Views:
    515
    Peter J. Holzer
    Mar 5, 2006
Loading...

Share This Page