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

RE: Matchin elements in text nodes

Subject: RE: Matchin elements in text nodes
From: Derek Abdinor <DerekA@xxxxxxxxxxx>
Date: Mon, 22 Jan 2001 10:05:36 +0200
derek abdinor
As far as I know, you'll have to enclose the text within tags to access it.

Beware the <xsl:template match="ARTICLE">_ its UPPERCASE

hth



> -----Original Message-----
> From:	mika.borner@xxxxxxxx [SMTP:mika.borner@xxxxxxxx]
> Sent:	22 January 2001 09:47
> To:	xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:	Re:  Matchin elements in text nodes
> 
> I still have problems.
> 
> My sourcefile looks like this:
> 
> ...
> <article>
>  <article_id>123456</article_id>
>  <main_heading>heading</main_heading>
>  <article_date>article date</article_date>
> This is the article text part 1
>  <sub_heading>sub heading</sub_heading>
> The article continues. This is part 2 of it
> </article>
> ...
> 
> I tried to match the text node of the article using:
> 
> <xsl:template match="ARTICLE">
> <html>
> <body>
> <p>
> <xsl:value-of select="text()"/>
> </p>
> </body>
> </html>
> </xsl:template>
> 
> 
> The "text()"-pattern doesn't return  anything.
> 
> Selecting with "." gives me also the unwanted article_id,main_heading and
> the
> article_date.
> 
> All I want to select is the direct text node under article (This is the
> article
> text part , The article continues. This is part 2 of it)
> 
> Can anybody help?
> 
> 
> 
>  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.