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

Re: FW: Basic XSLT ;-)

Subject: Re: FW: Basic XSLT ;-)
From: "Vasu Chakkera" <vasucv@xxxxxxxxxxx>
Date: Fri, 14 Jan 2005 13:03:08 -0000
Re:  FW: Basic XSLT ;-)
I cant see a problem with your stylesheet..
Apart from the fact that in the example you have <foo> Text </foo>
and in the predicate you are asking for text() = 'Value'
so you wouldnt match any foo template with text as 'Value' ( quite a trivial
thing I guess... I dont think you would have made this mistake.. )
Please do respond back with a better explanation of the problem , if you
havent yet got the solution ......
Vasu



----- Original Message ----- 
From: "Robert Soesemann" <rsoesemann@xxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Friday, January 14, 2005 12:44 PM
Subject:  FW: Basic XSLT ;-)


I am struggeling with a really basic XSL task.  I guess I am missin
something.
I need a template that matches the text values of all foo element whose
original value is 'Value'.
The original value should be normalized as I want to match e.g.:

<foo>       Text </foo>

or

<foo>Text     </foo>

or

<foo name="bar">
    Text
<child>...</child>
</foo>

I tried without success:
------------------------

<xsl:template match="foo[normalize-space(text())='Value']">
...
</xsl:template>

Please help!! ;-)

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.