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

Re: Leaf Element Character data

Subject: Re: Leaf Element Character data
From: Rick Geimer <rick.geimer@xxxxxxx>
Date: Tue, 20 Apr 1999 15:27:17 -0700
leaf element
Try something like the following for your "leaf" elements (assuming you
want to transform it into an html p element):

  <xsl:template match="leaf">
   <p>
    <xsl:apply-templates select="node()">
    <xsl:template match="text()"><xsl:value-of/></xsl:template>
   </xsl:apply-templates>
   </p>
  </xsl:template>

Rick Geimer
National Semiconductor
rick.geimer@xxxxxxx

Kurt Donath wrote:

> Using IE5.0 and XSL, I'm processing a document.  Everything works okay
> until I get to the 'leaf' elements, that have character data as their
> contents.  This character data isn't coming out.  If I specify a
> template, with a match on these 'leaf' elements, then return
> value-of=".", this works.  I don't want to do this for every kind of
> leaf element.  I thought there was supposed to be a built in template
> that barfed out straight character data?
>
> --
> Kurt Donath
> 315.456.6276
> Staff Systems Engineer
> Intranet: http://www.syr.lmco.com/~donath/
> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
>                        Lockheed Martin - Enterprise Information Systems
>                                           Systems Engineering / Webserv
>
>  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.