Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Re: XML documentation formatting and transformations

by John M. Dlugosz (Monsignor)
on Nov 01, 2001 at 23:44 UTC ( [id://122648]=note: print w/replies, xml ) Need Help??


in reply to Re: XML documentation formatting and transformations
in thread XML documentation formatting and transformations

Yea, it means learning another language. I could do it using Perl and the DOM now and it's fairly obvious just how to do it.

If XSLT can't do what I want, I wouldn't even try, but go right to the Perl program.

What does CSS do with XML? I know how to use Cascading Style Sheets level 1 for my HTML, but I've never heard of it transforming XML into HTML or otherwise enableing a browser like IE to present it nicely. Can you elaborate on that?

  • Comment on Re: Re: XML documentation formatting and transformations

Replies are listed 'Best First'.
Re: Re: Re: XML documentation formatting and transformations
by alien_life_form (Pilgrim) on Nov 01, 2001 at 23:58 UTC
    Greetings.

    I do this kind of stuff occasionally, so I am of little use without a reference (which I do not have by now) however: say

    <foo>this is your tag</foo>

    then you can style it in a CSS2 stylesheet like this:
    foo { display:block; color:red; }
    Which tells the formatter you have got a block level element, and to color it in red...

    See for instance:
    http://www.zvon.org/xxl/CSS2Tutorial/General/htmlIntro.html

    Cheers,
    alf
    --
    You can't have everything: where would you put it?

      Yes, that got me going. The following:
      class { display: block; font-size: xx-large;   }
      signature { display: block; font-size: large; margin-top: 1em }
      P { display: block;  font-size: medium; font-family: georgia, bookman, serif; margin-top: 1em }
      
      was enough to get readable output in a browser from my posted XML file.

      It seems that IE doesn't handle the :before pseudo-tag.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://122648]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2024-04-24 10:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found