About genarate-id
The following is the snippet of my xsl code:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ross="http://www.rossinc.com/TOC.xsd" version="1.0">
<xsl:output method="xml" omit-xml-declaration="yes"/>
......
<xsl:template match="/">
......
<xsl:template match="ross:Menu">
<table cellspacing="0" cellpadding="0">
<xsl:attribute name="class">X</xsl:attribute>
<xsl:attribute name="background"><xsl:value-of select="$ThemesPath" />GroupHeader.gif</xsl:attribute>
<xsl:attribute name="id">grp<xsl:value-of select="substring-after(generate-id(.),'XSLTMen')" />
......
The problem is : in some computer , the string generated by "generate-id(.)" contains 'XSLTMen' , and some didn't contain .
Can anybody help me for this ? Thanks first!
|