[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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!! ;-)
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|