Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > BOOK: Beginning XML, 2nd Edition
|
BOOK: Beginning XML, 2nd Edition
This is the forum to discuss the Wrox book Beginning XML, 2nd Edition by David Hunter, Kurt Cagle, Chris Dix, Roger Kovack, Jonathan Pinnock, Jeff Rafter; ISBN: 9780764543944
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning XML, 2nd Edition section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 25th, 2004, 01:37 PM
Registered User
 
Join Date: Oct 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Internal CSS not rendered in XML

Could you please help me out? I have the following xml document (Chapter 3 Page 98)that uses CSS to display information in a particular display format. What happens when I views it, it just displays the text normally but no rendering. Could you please let me know if I am doing something wrong? Here is the code:

<?xml-stylesheet type="text/css" href="#internalstyles" ?>
<document>
<style id="internalstyles">
    annotation {border:solid 3px green; font-size:12pt;
                display:block;border-left:none;border-right:none;
                font-family:Arial}

    para {font-size:11pt;display:block;}
    style{display:none;}
</style>
    <para>The rain spat against the apartment's window pane,
    torrential for this part of Los Angeles, though Gina would
    not have much noticed it at home. The rain straddled the
    boundary between the life blessing touch that this
    valley so seldom received and the caustic depressed
    state that lately so made up her soul. </para>
    <para>"Rain, Rain, Go Away," she sang listlessly, though as
    she doodled over the script that Stan had sent, Gina secretly
    relished the rain, as indulgent as the black mood she wore
    around herself.</para>
    <annotation>
        <para>Rain is a metaphor throughout this story as an expression
        of both elemental force and chaotic emotions.</para>
    </annotation>
    <para>She didn't want to do the script, not really - the
    scripts that she received anymore were hardly star makers,
    though her star had risen fairly high once, only to be knocked
    off course by the ... ah, what was the term the publicist had
    used ... the incident, that was it. </para>
</document>






Similar Threads
Thread Thread Starter Forum Replies Last Post
XML with CSS: IE vs Firefox Jay Frank XML 5 October 29th, 2007 08:12 AM
CSS for XML in ASP.NET toddw607 CSS Cascading Style Sheets 1 July 19th, 2007 01:34 PM
CSS for XML in ASP.NET toddw607 ASP.NET 2.0 Basics 3 June 19th, 2007 09:29 AM
adding style via CSS to XML documents crmpicco XML 3 December 1st, 2006 11:50 AM
xml xslt css structured web site mlaba XSLT 0 September 17th, 2004 07:00 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.