Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


doesn't make sense....could you?

From: TJ@-----------.---------.---
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


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent