select element and attribute : select « XSLT stylesheet « XML Tutorial

XML Tutorial
3.XML Schema
5.XSLT stylesheet
XML Tutorial » XSLT stylesheet » select element and attribute
File: Data.xml
<employee hireDate="09/01/1998">

File: Transform.xslt
<xsl:stylesheet xmlns:xsl=""
  <xsl:output method="xml" omit-xml-declaration="yes" />

  <xsl:template match="employee">
    <xsl:apply-templates select="@hireDate" /><!-- note space -->
    <xsl:apply-templates select="first" />
    <xsl:apply-templates select="last" />


09/01/1998JoeSmith element by index value from attribute"@*|node()""state[not(@founding)]" element by attribute value
5.66.7.Reference text after selecting tags and attributes element and attribute
5.66.9.match parent and select children
5.66.10.Match parent and select grand-children
5.66.11.Match a certain element attribute
5.66.13.Get value from an element with value-of and select
5.66.14.Select element out"operand[(. < 50) and (. > 30)]"
5.66.16.Selecting elements based on values of other ones.  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.