xslt - XML to HTML ordered list -


i trying print out ordered list following xml using ssl rules... html generated list items there nothing printed in list item itself. thinking selecting each item in , printing out value of step. doing wrong?

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>             application page at: http://www.ineedaplacetorent.com.         </step>         <step>             fillout form , submit credit card number             pay application process.         </step>         <step>             sure , fill out name of reference whom rented before.         </step>     </application_process>     <comments>         lovely apartment mountain views.         cellphone reception 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> 

you in step node. change:

 <li><xsl:value-of select="step"/></li> 

to

 <li><xsl:value-of select="."/></li> 

Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -