我正在尝试使用ssl规则从以下xml打印出有序列表...为列表项生成html get,但列表项本身没有打印任何内容。我在想我正在选择每个项目并打印出步骤的价值。我究竟做错了什么?
XML:
<rental_listings>
<property>
<address number="123" street="Main St." unit="1R" city="Townsville" state="broken" zip="10001"/>
<description nbeds="2" nbaths="1" sqft="755" nparking_spots="1" pet="no" washer_drier="yes"/>
<rent>825</rent>
<application_process>
<step>
Get to the application page at: http://www.ineedaplacetorent.com.
</step>
<step>
Fillout the form and submit with a credit card number
to pay for the application process.
</step>
<step>
Be sure and fill out the name of a reference whom you rented from before.
</step>
</application_process>
<comments>
This is a lovely apartment with mountain views.
Cellphone reception is good as is TV reception.
</comments>
</property>
</rental_listings>
XSL:
<div class="apply">
<H3>Application Process</H3>
<ol>
<xsl:for-each select="application_process/step">
<li><xsl:value-of select="step"/></li>
</xsl:for-each>
</ol>
</div>
答案 0 :(得分:2)
您已经在step
节点中。改变:
<li><xsl:value-of select="step"/></li>
到
<li><xsl:value-of select="."/></li>