Chapter 15: xml, About xml and xslt, Using xml and xsl with web pages – Adobe Dreamweaver CC 2015 User Manual
Page 512
505
Last updated 6/3/2015
Chapter 15: XML
About XML and XSLT
Note: The user interface has been simplified in Dreamweaver CC and later. As a result, you may not find some of the
options described in this article in Dreamweaver CC and later. For more information, see
Using XML and XSL with web pages
Extensible Markup Language (XML) is a language that lets you structure information. Like HTML, XML lets you
structure your information using tags, but XML tags are not predefined as HTML tags are. Instead, XML lets you create
tags that best define your data structure (schema). Tags are nested within others to create a schema of parent and child
tags. Like most HTML tags, all tags in an XML schema have an opening and closing tag.
The following example shows the basic structure of an XML file:
In this example, each parent
tag is also a child tag of the
tags in any way, provided that you nest tags accordingly within others, and assign each opening tag a corresponding
closing tag.
XML documents do not contain any formatting—they are simply containers of structured information. Once you have
an XML schema, you can use the Extensible Stylesheet Language (XSL) to display the information. In the way that
Cascading Style Sheets (CSS) let you format HTML, XSL lets you format XML data. You can define styles, page
elements, layout, and so forth in an XSL file and attach it to an XML file so that when a user views the XML data in a
browser, the data is formatted according to whatever you’ve defined in the XSL file. The content (the XML data) and
presentation (defined by the XSL file) are entirely separate, providing you with greater control over how your
information appears on a web page. In essence, XSL is a presentation technology for XML, where the primary output
is an HTML page.