Subject: [xsl] value-of confusion From: Sony Antony <santony@xxxxxxxxxxxxx> Date: 28 Nov 2003 20:58:13 -0500 |
I m only a couple of days old with XSLT. So pardon me if this is too simple. ====================================== I have the following XML and XSL <?xml version="1.0"?> <onne> some text0 some text2 </onne> ============================================ <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="html"/> <xsl:template match="onne"> <prefix/> <xsl:value-of select="."/> <postfix/> </xsl:template> </xsl:stylesheet> ==================================== If I run xalan directly I get the expected result - the string value of the node, which is the concatenated texts of all the children nodes of element onne. java org.apache.xalan.xslt.Process -XSL b.xsl -IN a.xml <prefix></prefix> some text0 some text2 <postfix></postfix> ============================================ But if I give the -TS (Trace each selection event.) switch, I do not get the text at all. java org.apache.xalan.xslt.Process -L -TS -XSL b.xsl -IN a.xml Selected source node '#document', at file 'file:///home/sony/xslt/a.xml', line #1, column #-1 (default root rule) apply-templates, select='null': 10001: #comment 10002: onne Selected source node 'onne', at file 'file:///home/sony/xslt/a.xml', line #3, column #-1 file:/home/sony/xslt/b.xsl Line #8, Column #-1: value-of, select='.': 10002: onne <prefix></prefix> <postfix></postfix> I only see the prefix and postfix. Why the differences in behavior. Thanks --sony -- Sony Antony <santony@xxxxxxxxxxxxx> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] ' and " in name? (how about s, Ray Tayek | Thread | Re: [xsl] value-of confusion, J.Pietschmann |
RE: [xsl] pass comments into two XS, Michael Kay | Date | [xsl] Matching a first instance., Ben Trafford |
Month |