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.