From the course: XML Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Using XSLT with XML

Using XSLT with XML - XML Tutorial

From the course: XML Essential Training

Start my 1-month free trial

Using XSLT with XML

- [Instructor] Before we get started writing our own XSLT Stylesheets and trying them out, I'm going to review some of the more common XSLT elements, explain how they work, and then just show a really quick example. This is the XSL Stylesheet tag. This is how you define an XSL Stylesheet. Next, is the XSL template tag. The template tag contains either a match attribute, which is an xpath expression which determines how the template is matched to the content in the source XML data, or it has a name attribute. Templates with name attributes can be called as if they were functions. Next is the XSL value of tag. This also uses an xpath expression, and this is used to select data in the source document. Text data, numerical data, whatever the data content is in the source XML file, it's how you extract data from a matched tag. You could also insert output into the transformation stream by using tags such as xsl attribute and xsl text. These will generate content that is placed into the…

Contents