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

text()

Subject: text()
From: DPawson@xxxxxxxxxxx
Date: Tue, 7 Nov 2000 12:45:40 -0000
text()
I'm trying to locate content which is #PCDATA which is a child
of body (html after tidy).

I have a source file

<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
  <meta name="generator" content="HTML Tidy, see www.w3.org" />
  <title>DAISY Specification draft 2.02.04</title>
  <link rel="STYLESHEET" href="d202.css" type="text/css" />
  <meta />
 </head>
 <body>
    
  <h1>DAISY 2.02 Specification</h1>
  
  <p>DRAFT 2.02.05, November 6, 2000</p>
  
  <h2 id="abstract">Abstract</h2>
  
  This document defines version 2.02 of the DAISY Digital Talking
Book format.


My stylesheet reads

<xsl:template match="/">
  <xsl:apply-templates select="html/body/child::text()"/>
</xsl:template>

<xsl:template match="html/body/text()">
<xsl:if test="string(.)">
  <wrap-it>
          <xsl:value-of select="."/>
        </wrap-it>
        </xsl:if>
      
 
</xsl:template>

<xsl:template match="*"/>


any suggestions why it doesn't work please?
I expected it to find "This document defines....


TIA, DaveP


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


Current Thread
  • text()
    • DPawson - Tue, 7 Nov 2000 12:45:40 -0000 <=
      • <Possible follow-ups>
      • DPawson - Tue, 7 Nov 2000 14:41:58 -0000
      • Kay Michael - Tue, 7 Nov 2000 16:29:12 -0000
      • DPawson - Wed, 8 Nov 2000 08:37:39 -0000

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.