473,466 Members | 1,534 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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.

Jun 27 '08 #1
4 1324
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.
Jun 27 '08 #2
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" <Ol*******@discussions.microsoft.comwrote in message
news:2E**********************************@microsof t.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.

Jun 29 '08 #3
How are you styling it? Inline CSS? If so, don't.

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

"Adam David Moss" <no@email.addresswrote in message
news:%2****************@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" <Ol*******@discussions.microsoft.comwrote in message
news:2E**********************************@microsof t.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.


Jun 29 '08 #4
Styling is done using the class attribute and an external style sheet
against the <div>'s.

Regards.

"Mike Brind [MVP]" <pa*******@hotmail.comwrote in message
news:OW**************@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.addresswrote in message
news:%2****************@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" <Ol*******@discussions.microsoft.comwrote in message
news:2E**********************************@microso ft.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.


Jun 30 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
by: Cem Louis | last post by:
Hi to all, I have the following html mail sender code written in php. It is working properly but my problem is, code doesn't send the text correctly which is in the varible "$mesaj". Code sends...
3
by: Christophe Guillon | last post by:
Hello I would like to have a hypertext link which, when I click on it, leads to a web page where a certain word is highlighted. Depending on the link, the same target page would be displayed but...
27
by: Oscar | last post by:
I am looking for a way to pass an ADO recordset that has been retrieved in an ASP page to another HTML-page. Is there someone who can provide me with a small sample or a link to see how this is...
15
by: WStoreyII | last post by:
I dont think that it really matters, but just for my own reference? I found a calendar component tutorial online for html components. in this component the tag for a script was <SCRIPT...
16
by: Philippe C. Martin | last post by:
Hi, I am trying to change the data in a form field from python. The following code does not crash but has no effect as if "form" is just a copy of the original html form. Must I recreate the...
3
by: moondaddy | last post by:
I have a frame set where I have a hidden frame page used to marshal data back and forth. In another frame who's source page needs to stay fixed and not do round trips. However, at times I want do...
21
by: maya | last post by:
hi, I'm designing an HTML email for a client.. I know general guidelines (no CSS, no JavaScript... although I do use limited CSS, inside tags (as in <span style=".."we do this at work and it...
5
by: mk | last post by:
Greetings all - im new to this newsgroup so pls dont flame me :p I need some help! Please view the html below in a browser. Or goto this url -http://firebrain.co.uk/java-problem.htm (Assuming...
6
by: Rolf Welskes | last post by:
Hello, if I have for example: <table style="width: 100%; height: 100%;" border="1"> <tr> <td style="width: 100px">k </td> <td style="width: 100px">k </td> </tr>
10
by: chadsspameateremail | last post by:
I first should list my background and that is that I'm new to PHP. I would like to be able to have an HTML form where there is a list that you choose from. Depending on what item is chosen in the...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.