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

Re: Recursiveness

Subject: Re: Recursiveness
From: Jeni Tennison <Jeni.Tennison@xxxxxxxxxxxxxxxx>
Date: Wed, 07 Jun 2000 10:42:55 +0100
recursiveness
Ivar,

>How can i only get the text from the current node without the children ?

>  <xsl:template match="overwegingen/vereiste">
>    <fo:wrapper role="VW_TekstInspring3">
>      <xsl:apply-templates/>
>    </fo:wrapper>
>  </xsl:template>

Try changing this template to:

<xsl:template match="overwegingen/vereiste/text()">
  <fo:wrapper role="VW_TexstInspring3">
    <xsl:value-of select="normalize-space(.)" />
  </fo:wrapper>
</xsl:template>

This makes sure you only select the text() children of the 'vereiste'
element.  I put the normalize-space() in so that the line breaks weren't used.

As an aside, I also noticed that you had:

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

elsewhere in your XSL.  This looks like old XSL.  You should update to the
recommendation, and to the latest MSXSL processor if that's what you're using.

I hope that helps,

Jeni

Dr Jeni Tennison
Epistemics Ltd, Strelley Hall, Nottingham, NG8 6PE
Telephone 0115 9061301 ? Fax 0115 9061304 ? Email
jeni.tennison@xxxxxxxxxxxxxxxx



 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.