Login   Register  
PHP Classes
elePHPant
Icontem

File: demo.xsl

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Rabotyahoff Alexandr  >  c_xml  >  demo.xsl  >  Download  
File: demo.xsl
Role: Auxiliary data
Content type: text/plain
Description: xsl-file for demo xsl-transformation
Class: c_xml
Convert between XML files and arrays or strings
Author: By
Last change:
Date: 3 years ago
Size: 445 bytes
 

Contents

Class file image Download
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:output method="html" version="1.0" omit-xml-declaration="no" indent="yes" encoding="utf-8"/>

  <xsl:template match="data">
  	<xsl:for-each select="bike">
  		<xsl:value-of select="@model"/> (<xsl:value-of select="@year"/>) - <xsl:value-of select="owner"/><br/>
  	</xsl:for-each>
  </xsl:template>

</xsl:stylesheet>