XML

manual

Joost v@n Meeteren


XML - links

w3schools.com - XML Tutorial | w3schools.com - Valid XML Documents | w3schools.com - Displaying XML with CSS | w3schools.com - An Example XML Document | w3schools.com - Displaying XML with XSLT | w3schools.com - XSLT - Transformation.


XML - example 1

XML with DTD and CSS

A "Valid" XML document is a "Well Formed" XML document, which also conforms to the rules of a Document Type Definition (DTD): ... The purpose of a DTD is to define the structure of an XML document. It defines the structure with a list of legal elements: ...

See w3schools.com - Valid XML Documents.

It is possible to use CSS to format an XML document. ... Formatting XML with CSS is not the most common method. ... W3C recommends using XSLT instead. ...

See w3schools.com - Displaying XML with CSS.


Example of DTD and CSS - output

voorbeeld_met_dtd_en_css.xml.


Example of DTD and CSS - code

voorbeeld_met_dtd_en_css.txt.


XML - example 2

XML zonder DTD and CSS:

XML documents form a tree structure that starts at "the root" and branches to "the leaves". ... The first line is the XML declaration. It defines the XML version (1.0) and the encoding used (ISO-8859-1 = Latin-1/West European character set). ... The next line describes the root element of the document (like saying: "this document is a note"): ... The next 4 lines describe 4 child elements of the root (to, from, heading, and body): ...

See w3schools.com - An Example XML Document.


Example without DTD and CSS - output

voorbeeld_zonder_dtd_en_css.xml.


Example without DTD and CSS - code

voorbeeld_zonder_dtd_en_css.txt.


XML - example 3

XML with XSLT:

XSLT is the recommended style sheet language of XML. XSLT (eXtensible Stylesheet Language Transformations) is far more sophisticated than CSS. XSLT can be used to transform XML into HTML, before it is displayed by a browser: ...

See w3schools.com - Displaying XML with XSLT and w3schools.com - XSLT - Transformation.


Example of XSLT-code - output

voorbeeld_met_xslt.xml.


Example of XSLT - code

voorbeeld_met_xslt.txt.


XML - example 4

XML with XSLT and CSS:

XSLT is the recommended style sheet language of XML. XSLT (eXtensible Stylesheet Language Transformations) is far more sophisticated than CSS. XSLT can be used to transform XML into HTML, before it is displayed by a browser: ...

See w3schools.com - Displaying XML with XSLT and w3schools.com - XSLT - Transformation.


Example of XSLT-code and CSS - output

voorbeeld_met_xslt_en_css.xml.


Example of XSLT and CSS - code

voorbeeld_met_xslt_en_css.txt.


Joost De WebMaker
2002-2024 © Joost van Meeteren
Laatste update website: donderdag 21 november 2024