1
這裏是我的代碼:獲得內環內外環值與XSLT
<xsl:for-each select="/*/hundreds/hundred">
<div class="page_spacer" />
<div class="page_section" style="{./style}">
<h2><xsl:value-of select="./label"/></h2>
<xsl:value-of select="./descriptiontext" />
<button onclick="javascript:window.location.href='{./viewalllink}'"><xsl:value-of select="./label" /></button>
<br/>
<xsl:for-each select="./contendors/contendor">
<img class="locationthumb" src="/act/locationthumb/{../locid}"/>
</xsl:for-each>
</div>
</xsl:for-each>
我試圖獲得來自first loop of hundreds
的locid
值和second loop inside the img element
內使用。我想可能../locid
會暗示使用父母。
任何幫助將不勝感激。