Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Feb 2003
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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.

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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
    Last edited by brothercake; 03-10-2003 at 08:51 PM.
    "Why bother with accessibility? ... Because deep down you know that the web is attractive to people who aren't exactly like you." - Joe Clark

  • #3
    New Coder
    Join Date
    Feb 2003
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thumbs up thanks

    Good info. Thanks, bruthacake.

  • #4
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •