[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: XSLT Stylesheet test for special character
Hello, ( 4 ) <xsl:value-of select="ns:strong"/> does not do anything, except dumping the text content of ns:strong into the output. If you want to use that value, you have to set a variable with that, like : <xsl:variable name="value" select="ns:strong/text()"/> Try that with a XSLT debugger, see what you have in that variable, and then you can try something like : <xsl:when test="contains($value, 'Firstname:')"> Be aware that if you do text() when current node is <ns:p> (you previously did <xsl:for-each select="/ns:html/ns:body/ns:div[@id='content']/ns:p">), you obtain the concatenation of recursively applying text() on all the children node of <ns:p> so you will have white spaces, content of markup <a>, etc... Use a debugger ! (Oxygen has a great one) Regards Nico http://debeissat.nicolas.free.fr/ 2009/1/22 Jack Bush <netbeansfan@y...>
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] |
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
|