Join Joe Marini for an in-depth discussion in this video Repeating items, part of XML Essential Training.
…Let's use XSLT now to work with some repeating data in an XML file.…So, here in the ExampleSnippets, I've…scrolled down to the Repeating Items section.…And I'm going to open the repeatingitems.xml file.…Now, you can see in here that I've got a root…tag named items, and under items, there are four item tags.…Each of which has some sub tags.…And you can see that this is a basic XML…document that contains information about various kinds of coffee and teas.…
So this one here is Mocha.…Here's Decaf, different kinds of teas.…Each item has an attribute indicating whether it is currently available…or not, as well as a partial URL to an associated photo.…And those photos are contained within this photos directory right here.…Okay, so here's what we're going to do.…Let's go in back to the snippets and open up the repeating_items.xslt file.…So here we have our stylesheet declaration and our template.…The template is going to match just whatever…the root tag of the XML document is.…
We're not specifying items.…We're just saying match whatever the root is.…
- 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.