Click to See Complete Forum and Search --> : namespace for use with xsl:key just doesnt work


swatirs
September 3rd, 2001, 06:31 AM
I am trying to group data based on certain tag. I tried to use xsl:key for which i need to use xmlns:xsl="http://www.w3.org/1999/XSL/Transform" as namespace.
The problem is when i use this namespace the xsl just does not render the xml ... even if i remove the xsl:key and put plain xsl:for ...
I am using IE 5.5 . Can anyone help. Do i need to put in some other tags when i use this namespace?

tyris
September 17th, 2001, 10:15 AM
well, there is 2 namespace : the "old" one and the new one. the one you are using is the new one, and as it is written in MS XML 3.0 documentation ( i recommand you to download this SDK), this version should use xsl:key without problems.
so maybe you have a problem with the XPath you use... have a look at xsl:key details
did you try with xsl:sort ? it could be easier, depending on what you want to get

regards

Elise, XML learning girl :-)

swatirs
September 18th, 2001, 12:54 AM
Thanx for the help.
Actually later on what i found out was that if u just create a xml file and give this certain xsl to it as style the xml is not rendered. But when I load it using MSXML and transform it I get the correct output :-)
Funny ! it wasn't this way earlier!!!

Bye