[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Re: [xsl] check for whitespace value between nodes
Subject: Re: [xsl] check for whitespace value between nodes From: Dimitre Novatchev <dnovatchev@xxxxxxxxx> Date: Thu, 19 Aug 2010 11:08:04 -0700 |
On Thu, Aug 19, 2010 at 10:58 AM, a kusa <akusa8@xxxxxxxxx> wrote: > Hi > > Is there any way in XSLT to check if the value between two nodes is a > whitespace? > > I tried normalize-space(product/text()) !=' ' but that is not working. > I want tocheck if the actual value between <product> </product> is a > white space. There is nothing like "value between two nodes" and also the text-node child of <product> is not "between two nodes" because the tags <product> and </product> are not nodes. > > Any tips/suggestions? product/text() and not(normalize-space(product/text())) -- Cheers, Dimitre Novatchev --------------------------------------- Truly great madness cannot be achieved without significant intelligence. --------------------------------------- To invent, you need a good imagination and a pile of junk ------------------------------------- Never fight an inanimate object ------------------------------------- You've achieved success in your field when you don't know whether what you're doing is work or play > > Thanks in advance for your help/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] check for whitespace value be, a kusa | Thread | Re: [xsl] check for whitespace valu, Liam R E Quin |
Re: [xsl] XSLT 1.0 serializer for X, Hermann Stamm-Wilbra | Date | RE: [xsl] Xpath question with proce, Ylvisaker, Steve |
Month |
Keywords