KEYWORDS      EXAMPLES      AUTHORS     


     XML     HOME      
id1

     XSL 1     HOME     XML     HTML 1     OUTPUT 1     
<xsl:stylesheet version='1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform' >
<xsl:template match="/">
<P><xsl:value-of select="id('intro')"/></P>
<P><xsl:value-of select="id('body')/text"/></P>
<P><xsl:value-of select="id('text1')"/></P>
</xsl:template>
</xsl:stylesheet>

     HTML 1     HOME     XML     XSL 1     OUTPUT 1     
<HTML>
<HEAD> </HEAD>
<BODY>
<P>Introduction</P>
<P>text text text</P>
<P>text text text</P> </BODY> </HTML>

     OUTPUT 1     HOME     XML     XSL 1     HTML 1     

Introduction

text text text

text text text


     XSL 3     HOME     XML     HTML 3     OUTPUT 3     

     HTML 3     HOME     XML     XSL 3     OUTPUT 3     
<DIV>chapter : id = intro [ Introduction]</DIV>
<DIV>chapter : id = body [ BODY text text text ]</DIV>
<DIV>title : id = t1 [ ]</DIV>
<DIV>text : value = text1 [ text text text]</DIV>
<DIV>chapter : id = end [ THE END]</DIV>

     OUTPUT 3     HOME     XML     XSL 3     HTML 3     
chapter : id = intro [ Introduction]
chapter : id = body [ BODY text text text ]
title : id = t1 [ ]
text : value = text1 [ text text text]
chapter : id = end [ THE END]

     XSL 3     HOME     XML     HTML 3     OUTPUT 3     
<xsl:stylesheet version='1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
<xsl:template match="/">
<xsl:apply-templates select="id('intro body end')"/>
<!-- Why only intro is selected? Can anybody help?-->
<P><xsl:value-of select="id('intro body end')"/></P>
<P><xsl:value-of select="id('body end intro')"/></P>
<P><xsl:value-of select="id('in bod end')"/></P>
</xsl:template>
<xsl:template match="*">
<P style="color:red"><xsl:value-of select="."/></P>
</xsl:template>
</xsl:stylesheet>

     HTML 3     HOME     XML     XSL 3     OUTPUT 3     
<P style="color:red">Introduction</P>
<P style="color:red"> BODY text text text </P>
<P style="color:red">THE END</P>
<P>Introduction</P>
<P>Introduction</P>
<P>THE END</P>

     OUTPUT 3     HOME     XML     XSL 3     HTML 3     

Introduction

BODY text text text

THE END

Introduction

Introduction

THE END