Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3
  1. #1
    Junior Member
    Join Date
    Feb 2006
    Posts
    5
    Member #
    12446
    Hi, my xml code is:

    <room>
    <features>
    <pool/>
    <Aircon/>
    <Radio/>
    <DVD/>
    <beds double="2"/>
    </features>
    </room>

    <room>
    <features>
    <pool/>
    <TV/>
    <VCR/>
    <beds twin="1" double="2"/>
    </features>
    </room>

    i want to Display the word "Features" in bold, then under the word features i want the list of features to be displayed with bullet points. I want beds to appear in bold in the list.

    This is the code i have so far:

    features{
    }

    features:before {
    content:"Features";
    font-weight:bold;
    }

    beds:before{
    content:"Beds: ";
    }

    beds[sofa-bed]:after{
    content:attr(sofa-bed)" x Sofa-bed ";
    }

    beds[double]:after{
    content:attr(double)" x Double ";
    }

    beds[twin]:after{
    content:attr(twin)" x Twin ";
    }


    The problem is, i can't get in to display anything except, the beds entry. But when it displays the beds entry, it only gives the last one in the list. So the one with a twin and a double, only the twin is displayed.

    Any idea's?

  2.  

  3. #2
    Senior Member filburt1's Avatar
    Join Date
    Jul 2002
    Location
    Maryland, US
    Posts
    11,774
    Member #
    3
    Liked
    21 times
    Have you tried styling a converted form of the document using a combination of XSLT (something I've never used but always wanted to try) and CSS?
    filburt1, Web Design Forums.net founder
    Site of the Month contest: submit your site or vote for the winner!

  4. #3
    Junior Member
    Join Date
    Feb 2006
    Posts
    5
    Member #
    12446
    The book i'm using (XML for beginners) says only to use css so you can see the limitations it poses. It shows a finished example of the css, but gives no answers. I don't find the w3schools website any use with the above. I found it great for all the simple stuff though.
    Many thanks


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 04:26 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com