Style XSD?

Discussion in 'XML' started by dondeluise, Feb 15, 2012.

  1. dondeluise

    dondeluise Guest

    Can a CSS stylesheet be referenced from within an XSD file? Can XSDs be
    styled using CSS?

    --
    Using Opera's revolutionary email client: http://www.opera.com/mail/
     
    dondeluise, Feb 15, 2012
    #1
    1. Advertising

  2. dondeluise wrote:
    > Can a CSS stylesheet be referenced from within an XSD file? Can XSDs be
    > styled using CSS?


    An XSD document is an XML document and XML documents can have an
    "xml-stylesheet" processing instruction before the root element e.g.

    <?xml-stylesheet type="text/css" href="sheet.css"?>

    to indicate a stylesheet.


    But XSD puts lots of its information into attributes (i.e. type,
    maxOccurs, minOccurs) and so on and CSS is mostly aimed at styling text
    content of elements and not attributes).


    --

    Martin Honnen --- MVP Data Platform Development
    http://msmvps.com/blogs/martin_honnen/
     
    Martin Honnen, Feb 15, 2012
    #2
    1. Advertising

  3. You can also, of course, pass XSL through an XSL stylesheet... though
    that's more useful for logic changes than for presentation. (See my
    article on "styling stylesheets" on DeveloperWorks.)


    --
    Joe Kesselman,
    http://www.love-song-productions.com/people/keshlam/index.html

    {} ASCII Ribbon Campaign | "may'ron DaroQbe'chugh vaj bIrIQbej" --
    /\ Stamp out HTML mail! | "Put down the squeezebox & nobody gets hurt."
     
    Joe Kesselman, Feb 16, 2012
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Markus
    Replies:
    1
    Views:
    1,105
    Markus
    Nov 22, 2005
  2. Rick Razzano

    XSD document for XSD defintion

    Rick Razzano, Sep 26, 2003, in forum: XML
    Replies:
    1
    Views:
    491
    C. M. Sperberg-McQueen
    Sep 26, 2003
  3. Replies:
    1
    Views:
    862
    Martin Honnen
    Jan 14, 2004
  4. Peter Aberline

    xsd:any as a child of xsd:all

    Peter Aberline, Apr 5, 2004, in forum: XML
    Replies:
    0
    Views:
    790
    Peter Aberline
    Apr 5, 2004
  5. Ken Varn
    Replies:
    0
    Views:
    468
    Ken Varn
    Apr 26, 2004
Loading...

Share This Page