Style XSD?

D

dondeluise

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

Martin Honnen

dondeluise said:
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).
 
J

Joe Kesselman

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."
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,898
Latest member
BlairH7607

Latest Threads

Top