[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] capitalization problem in Mozilla Firefox
I have a browser based javascript that passes the result of one XSLT
transform to another transform. The data being passed is in the format
being shown below. The letter "t" is for tuple, h and v are for
horizontal and vertical, and the cSet node is the set of candidate
numbers for a particular H/V cell. This is taken from a Sudoku solver
I've been working on. That data is the nodeset being returned from the
hv_web.xslt stylehseet, which does one layer of solving.
The problem has been that the stylesheet that creates the HTML table of the Sudoku board cannot find the "cSet" element. This is because while being passed from stylesheet to stylesheet via javascript, the element name became lowercase... but only in FireFox -- MS-IE will only read the element if I ask for it with proper capitalization. The hv_drawMap stylehseet that I put on the web hacks through the problem by using a Union operator to test both kinds of cSet elements: <xsl:element name="td"> <xsl:attribute name="title"> <xsl:value-of select="string(//t[v = $v and h= $h ]/cSet | //t[v = $v and h= $h ]/cset ) " /> </xsl:attribute>   </xsl:element > but this is crazy. I can officially uncapitalize the element name in the upstream stylesheet, but I wanted to ask first why FF's xslt or javascript was LCasing that element name. the Mozilla branch of the javascript uses these 3 basic statements: solution = xsltProcessorSolver.transformToDocument(solution ); htmlSodukoMap2 = xsltProcessorMapper.transformToDocument(solution); document.getElementById("gameArea").innerHTML = document.getElementById("gameArea").innerHTML + xmlSerializer.serializeToString( htmlSodukoMap2 );
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|