Style to xml means exact what? [closed]
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this questionI am new for the xml. I just开发者_如何学JAVA want to know why xml needs styles. is this style means css ? and where it should impact ?
This is a great place to start.
Basically, Style Sheets (similar to CSS) can be used on XML documents (by using XSL aka "Style Sheets for XML") to display them in a "HTML Look and Feel".
It's done this way so that there is a clean separation between the content of a HTML page (which is provided as XML) and the actual view/display of it in the users' browser.
This way, different XSL Style Sheets can be used on the same content (i.e. XML).
For example to display the XML in a iPhone or on a desktop monitor there can be two XSL's, one for iPhone and one for the desktop monitor.
Take a look at the following resource for XSL and XSLT:
http://www.w3schools.com/xsl/
From the tutorial:
XSL = Style Sheets for XML
XML does not use predefined tags (we can use any tag-names we like), and therefore the meaning of each tag is not well understood.
A tag could mean an HTML table, a piece of furniture, or something else - and a browser does not know how to display it.
XSL describes how the XML document should be displayed!
精彩评论