This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Microsoft XML > March 2004 > Altering style sheets when using msxml.
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Altering style sheets when using msxml.
|
|
| Bugsy 2004-03-30, 10:14 pm |
| Please bear with me as I'm fairly new to this!
Basically I've got an active server page which creates XML file to which is
a applied an XSL file which (enviously) controls the formatting of the
output.
My question is this. If I want to create different styles depending on the
intended output device. If this was HTML I guess I would have different CSS
files for the different devices. How can I achieve the same end result using
CSS files?
For example, if my output is going to a Sony Ericsson P800 I may want the
body bgcolor to be blue whereas if it was an IPAQ I may want it to be white.
I think you get the picture!
TIA,
Dave
| |
|
| Problem 1. identify client (i.e. erickson, motorola, nokia, palm, etc) to do
this normally you will read the header which provides you info on you client
Problem 2: customize view, depending on client: you can use xsl:chose and
have as many xsl:when as needed to address each client .
Problem 3: generate output: you will need to become fairly familiar with the
standard format that is used by your clients, wml for erickson, maybe xhtml
for nokia, palm for palm, etc.
--
Para mas info en Access visitame
http://www22.brinkster.com/equisbert/
"Bugsy" <dont.spam.me@btopenworld.commy> wrote in message
news:c49pba$dss$1@sparta.btinternet.com...
> Please bear with me as I'm fairly new to this!
>
> Basically I've got an active server page which creates XML file to which
is
> a applied an XSL file which (enviously) controls the formatting of the
> output.
>
> My question is this. If I want to create different styles depending on the
> intended output device. If this was HTML I guess I would have different
CSS
> files for the different devices. How can I achieve the same end result
using
> CSS files?
>
> For example, if my output is going to a Sony Ericsson P800 I may want the
> body bgcolor to be blue whereas if it was an IPAQ I may want it to be
white.
>
> I think you get the picture!
>
> TIA,
>
> Dave
>
>
| |
| Bugsy 2004-03-30, 10:14 pm |
| Thanks for this - my (novice) comments added below..
"Skar" <skarface4@hotmail.com> wrote in message
news:%231oC7bcFEHA.1268@TK2MSFTNGP12.phx.gbl...
> Problem 1. identify client (i.e. erickson, motorola, nokia, palm, etc) to
do
> this normally you will read the header which provides you info on you
client
I've already done this by processing the user agent and storing it away in
the ASP and XML rexponse.
> Problem 2: customize view, depending on client: you can use xsl:chose and
> have as many xsl:when as needed to address each client .
Now if I'm reading this right what you are suggesting is that for each
occurance HTML element (E.g., TR,TD) I have an XML:choose sequence. This
means for a table with 10 rows I need 10 xls:chooses (one for each TD for
example). What I was hoping to do was to set the class styles at the top of
the XLS file depending on which device was being used. I have looked at
using attribute-sets at the top of the XLS based on user agent but there
seems to be some restriction on where you can use xls:choose statments.
> Problem 3: generate output: you will need to become fairly familiar with
the
> standard format that is used by your clients, wml for erickson, maybe
xhtml
> for nokia, palm for palm, etc.
Yup!
>
> --
> Para mas info en Access visitame
> http://www22.brinkster.com/equisbert/
> "Bugsy" <dont.spam.me@btopenworld.commy> wrote in message
> news:c49pba$dss$1@sparta.btinternet.com...
> is
the[color=darkred]
> CSS
> using
the[color=darkred]
> white.
>
>
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|