Skip to Content
Microsoft® Manual of Style, Fourth Edition
book

Microsoft® Manual of Style, Fourth Edition

by Microsoft Corporation
January 2012
Beginner
464 pages
14h 4m
English
Microsoft Press
Content preview from Microsoft® Manual of Style, Fourth Edition

XML tag, element, and attribute formatting

Note

These guidelines apply also to Extensible Hypertext Markup Language (XHTML), Extensible Stylesheet Language (XSL), Extensible Stylesheet Language for Transformations (XSLT), and XML Path Language (XPath).

Elements vs. tags

An element includes the tags, the attributes, and the content, if any. For example, consider the following:

<xsl:apply-templates
order-by="sort-criteria-list"
select=expression
mode=QName>
</xsl:apply-templates>

In this example, the <xsl:apply-templates> element consists of the start tag (<xsl:apply-templates>); the order-by, select, and mode attributes; and the end tag (</xsl:apply-templates>).

Note that XML can have empty tags, such as <doctitle/> or <elementName att1Name=“att1Value” ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Read Me First! A Style Guide for the Computer Industry, Third Edition

Read Me First! A Style Guide for the Computer Industry, Third Edition

Sun Technical Publications
IBM Style Guide, The: Conventions for Writers and Editors

IBM Style Guide, The: Conventions for Writers and Editors

Francis DeRespinis, Peter Hayward, Jana Jenkins, Amy Laird, Leslie McDonald, Eric Radzinski
Social-Behavioral Modeling for Complex Systems

Social-Behavioral Modeling for Complex Systems

Paul K. Davis, Angela O'Mahony, Jonathan Pfautz

Publisher Resources

ISBN: 9780735669833Purchase book