Join Joe Marini for an in-depth discussion in this video Declaring attributes, part of XML Essential Training.
…Declaring attributes in a DTD is accomplished…in much the same fashion as declaring elements.…And all attributes that you're intending to use in a document that's going…to be validated by DTD have to be declared via an attribute list declaration.…An attribute list declaration looks like this.…It has an opening angle bracket with an exclamation point, and the…capital word ATTLIST, followed by the element name, the attribute name, and…a default declaration, followed by a closing angle bracket.…
So the element name is the name of the…element that you're defining the attribute to be used on.…The AttrName is the name of the attribute.…The type is the attribute's type, and I'll get to those in a moment.…And finally, there is the default declaration, which is in place of…the DefaultDecl keyword there, and that's the default declaration for the attribute.…It defines how the attribute behaves under default…situations, and I'll get to that in a bit.…The attribute type can be one of three types.…There is the string type, which is indicated…
- What is XML?
- The advantages and drawbacks of XML
- Proper XML syntax
- Working with namespaces
- Styling XML tags with CSS
- Extracting and manipulating data
- Taking XPath and XSLT for a spin
- Creating document type definitions and schema definitions
Skill Level Beginner
1. Getting Started
2. How Developers Use XML
Real-world examples of XML6m 21s
3. Basic Rules of XML
4. Starting to Work with XML
5. Using the DOM to Manipulate XML
6. XML and XPath
7. XML and XSLT
8. XSLT Examples
9. Creating Document Type Definitions (DTDs)
10. Creating XML Schema Definitions
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.