Firefoxでうまく動作するXPath式がありますが、IEでファイルを表示しているときにエラーが発生しました。 IEに表現を理解させるための回避策はありますか?xslファイルのXPath式がIEで動作しない
私のXSL(私はたくさん削除しましたので少し見やすくなりました)。
<xsl:for-each select=".[component/@number=$versionNumber and text/@type='new']">
このエラーが発生:
<?xml version="1.0"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:date="http://exslt.org/dates-and-times" exclude-result-prefixes="#all" >
\t <xsl:output indent="yes"/>
\t <xsl:output method="html" encoding="UTF-8"/>
\t <xsl:template match="/">
\t \t <html>
\t \t \t <head>
\t \t \t \t <title>
\t \t \t \t \t <xsl:value-of select="versions/project" />
\t \t \t \t </title>
\t \t \t \t <style type="text/css">
\t \t \t \t \t ...
\t \t \t \t </style>
\t \t \t </head>
\t \t \t <body>
\t \t \t \t <div class="content">
\t \t \t \t \t
\t \t \t \t \t \t \t \t <xsl:for-each select="/releasenotes/notes/note[component/@type=$unitTag]">
\t \t \t \t \t \t \t \t \t <xsl:for-each select=".[component/@number=$versionNumber and text/@type='new']">
\t \t \t \t \t \t \t \t \t \t <li type="disc">
\t \t \t \t \t \t \t \t \t \t \t <xsl:value-of select="text" />
\t \t \t \t \t \t \t \t \t \t \t <xsl:for-each select="component[not(@type=$unitTag)]">
\t \t \t \t \t \t \t \t \t \t \t \t <xsl:sort select="@type" order="ascending"/>
\t \t \t \t \t \t \t \t \t \t \t \t , <a href="#{@type}_{@number}">
\t \t \t \t \t \t \t \t \t \t \t \t \t <xsl:variable name="unitType" select="@type"/>
\t \t \t \t \t \t \t \t \t \t \t \t \t <xsl:value-of select="//components/component[tag=$unitType]/name" /> (<xsl:value-of select="@number" />)
\t \t \t \t \t \t \t \t \t \t \t \t </a>
\t \t \t \t \t \t \t \t \t \t \t </xsl:for-each>
\t \t \t \t \t \t \t \t \t \t </li>
\t \t \t \t \t \t \t \t \t </xsl:for-each>
\t \t \t \t \t \t \t \t </xsl:for-each>
\t \t \t \t \t \t \t
\t \t \t \t \t \t </xsl:for-each>
\t \t \t \t \t </xsl:for-each>
\t \t \t \t \t
\t \t \t \t </div>
\t \t \t </body>
\t \t </html>
\t </xsl:template>
</xsl:stylesheet>
Expected token 'EOF' found '['. .-->[<--component/@number='$versionNumber' and text/@type='new']