[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: No match or what...

Subject: Re: No match or what...
From: "Alankar Chowdhury" <alankar@xxxxxxxxxxxxxxxxx>
Date: Thu, 04 May 2000 17:23:01 +0800
xsl no match
use <xsl:value-of select="text()">

instead of

<xsl:value-of select="."/>

Hope it works ...

- Alankar


Hakan Pettersson wrote:

> Hi,
>
> could anyone explain.
>
> I want following result:
>
> library
> book
> chapter
>
> but I get:
>
> library book chapter
> book chapter
> chapter
>
> my files:
> ===========================================
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <?xml:stylesheet type="text/xsl"?>
> <library>
>         library
>         <book>
>                 book
>                 <chapter>
>                         chapter
>                 </chapter>
>         </book>
> </library>
> ===========================================
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <xsl:transform
>         version="1.0"
>         xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
>
>         <xsl:output method="html" encoding="ISO-8859-1" indent="yes"/>
>
>         <xsl:template match="/">
>                 <HTML>
>                         <HEAD>
>                                 <TITLE>Test</TITLE>
>                         </HEAD>
>
>                         <BODY>
>                                 <xsl:apply-templates select="library"/>
>                         </BODY>
>                 </HTML>
>         </xsl:template>
>
>         <xsl:template match = "library">
>                 <xsl:value-of select="."/>
>                 <BR/>
>                 <xsl:apply-templates select="book"/>
>         </xsl:template>
>
>         <xsl:template match = "book">
>                 <xsl:value-of select="."/>
>                 <BR/>
>                 <xsl:apply-templates select="chapter"/>
>         </xsl:template>
>
>         <xsl:template match = "chapter">
>                 <xsl:value-of select="."/>
>                 <BR/>
>         </xsl:template>
>
> </xsl:transform>
> ===========================================
> ________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.