Join Joe Marini for an in-depth discussion in this video Associating an XML file with a CSS style sheet, part of XML Essential Training.
…In this example we're going to see how…to associate some styling information with XML tags.…So let's begin by opening up the…FirstXMLfile, the XML code in chapter four.…And if you did the previous exercise…then this document should already have some content.…And let's also open the example snippets.…And what we're going to do is open up the FirstXMLfile dot…css file, here. And right now it's blank.…So, over in the snippets, I'm going to scroll down to my chapter…four section, and I'm going to copy lines 20 thru 26, here.…
And I'm going to copy those lines and paste them into the CSS file here.…Okay.…So let's take a moment to go through the…CSS file line by line and see what's happening.…So right here on line…1, I have the words, First Tag.…And that corresponds with the XML tag over here, in our XML document.…So just like you would normally do in HTML, you can…define a CSS style sheet that applies to an XML tag.…Now, inside the XML tag's style…declaration, I have display block, because I…want the information to display as a…
- 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?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
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.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.