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
会暗示使用父母。
任何帮助将不胜感激。