[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Problem with example from faq


Subject: Problem with example from faq
From: Esfandiar Mazdeh <emazdeh@xxxxxxxxxxxx>
Date: Thu, 11 Nov 1999 13:55:12 -0800

Hello,
I have tried to run the following xml,xsl combination which I picked from
xsl-faq and modified a little. However, Lotusxsl does not show anything:

xml file:
<?xml version="1.0"?>
<test>
<a>this is a
<b>this is b
<c>this is c
<d>this is d
<e>this is e
<f>this is f
<g>this is g
<h>this is h
<i>this is i
<j>this is j
<k>this is k
<l>this is l
<m>this is m
<n>this is n
<o>this is o
<p>this is p
<q>this is q
<r>this is r
<s>this is s
<t>this is t
<u>this is u
<v>this is v
<w>this is w
<x>this is x
<y>this is y
<z>this is z</z>
</y>
</x>
</w>
</v>
</u></t></s></r></q></p></o></n>
</m></l></k></j></i></h></g></f>
</e></d></c></b></a>
</test>

xsl file:
<?xml version="1.0"?>
<!--
<xsl:stylesheet xmlns:="http://www.w3.org/1999/XSL/Transform">
<xsl:stylesheet xmlns:xsl="http://www.w3.org/XSL/Transform/1.0">
-->
<xsl:stylesheet version="1.0" xmlns:="http://www.w3.org/1999/XSL/Transform">


<xsl:template match="/">
<xsl:apply-template mode="start" select="//z"/>
</xsl:template>

<xsl:template mode="start" match="*">
<xsl:text>&#xa;Document order:</xsl:text>
<xsl:for-each select="acestor::*">
       <xsl:text>&#xa;Element:</xsl:text>
</xsl:for-each>
<xsl:text>&#xa;&#xa;Axis Order:</xsl:text>
<xsl:apply-templates select="ancestor::*[1]"/>
</xsl:template>

<xsl:template match="*">
<xsl:text>&#xa;Element:</xsl:text>
<xsl:value-of select="name()"/>
<xsl:apply-templates select="ancestor::*[1]"/>
</xsl:template>

</xsl:stylesheet>

Can anyone tell me why?
Thanks.
====================================================================
Esfandiar Steve Mazdeh           Informix
Email: emazdeh@xxxxxxxxxxxx         4100 Bohanon Driver
Phone: (650) 926-1062                        Menlo Park, CA
                                             http://www.informix.com
====================================================================

Current Thread
Keywords
xml