Go Back   CodingForums.com > :: Client side development > XML

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rating: Thread Rating: 3 votes, 4.00 average.
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-10-2003, 07:29 PM   PM User | #1
satyanaas
New Coder

 
Join Date: Feb 2003
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
satyanaas is an unknown quantity at this point
Formatting XML with CSS and Flash

I'm using XML to drive a dynamic flash site and I want to do some text formating with CSS. anybody have some info on formatting XML with CSS as well as the limitations when outpulled as dynamix text in a Flash interface? Thanks.
satyanaas is offline   Reply With Quote
Old 03-10-2003, 08:45 PM   PM User | #2
brothercake
Senior Coder


 
Join Date: Jun 2002
Location: near Oswestry
Posts: 4,508
Thanks: 0
Thanked 0 Times in 0 Posts
brothercake is an unknown quantity at this point
W3Schools has an example of formatting XML with CSS at http://www.w3schools.com/xml/xml_display.asp

It's pretty much as you'd expect, except that no display properties are implicit, as they are with HTML. eg with this:

<something>Here is some text</something>

You can go:

something {

display:block;
color:#000066;
background-color:#ededed;
}

and so on.


But the limitations are that CSS has little in the way of processing power, and what it does have is not well supported cross browser; you will very likely find that you want to do node manipulation, computation, sorting and such like; you may want to replace instances of one node with larger chunks of code - embeds, bits of javascript, lists and tables. CSS isn't up to the job, because that isn't what it was designed for.

What you want is XSL - http://www.w3schools.com/xsl/default.asp
__________________
"Why bother with accessibility? ... Because deep down you know that the web is attractive to people who aren't exactly like you." - Joe Clark

Last edited by brothercake; 03-10-2003 at 08:51 PM..
brothercake is offline   Reply With Quote
Old 03-10-2003, 08:48 PM   PM User | #3
satyanaas
New Coder

 
Join Date: Feb 2003
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
satyanaas is an unknown quantity at this point
Thumbs up thanks

Good info. Thanks, bruthacake.
satyanaas is offline   Reply With Quote
Old 03-10-2003, 08:52 PM   PM User | #4
brothercake
Senior Coder


 
Join Date: Jun 2002
Location: near Oswestry
Posts: 4,508
Thanks: 0
Thanked 0 Times in 0 Posts
brothercake is an unknown quantity at this point
Wow - you replied before I'd finished editing mine
__________________
"Why bother with accessibility? ... Because deep down you know that the web is attractive to people who aren't exactly like you." - Joe Clark
brothercake is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 07:03 AM.


Advertisement
Log in to turn off these ads.