Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries [Thread Prev] >Thread Next - Re: doesn't make sense....could you? doesn't make sense....could you?To: NULL Date: 10/12/2007 1:15:00 PM Hi, I am a beginner to learn XSL. Hope I can understand this clearly. This is example xml from MSDN. (hello.xml) <?xml version="1.0"?> <?xml-stylesheet type="text/xsl" href="hello.xsl"?> <hello-world> <greeter>An XSLT Programmer</greeter> <greeting>Hello, World!</greeting> </hello-world> this is hello.xsl that I am just playing around to see how it works.. <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:template match="/hello-world/greeter"> <div><xsl:value-of select="."/></div> </xsl:template> </xsl:stylesheet> As far as I can understand, it should print only "An XSLT Programmer" because I think current match scope is under /hello-world/greeter. However, when I run this in IE7, it prints An XSLT Programmer Hello, World! I am trying to understand how "Hello,World!" can be printed by this XSL... Can anybody explain this concept? Thanks in advance. ............................................................TJ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
