XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Vasileios GiannakopoulosSubject: XSLT and multiple children
Author: Vasileios Giannakopoulos
Date: 10 Nov 2006 07:43 AM
Hello,
I am trying to put bullet points but i am having some problems.
The XML file looks like this:
<ROWS>
<ROW>
<MANY_LIKE_THIS>
</MANY_LIKE_THIS>
<LEARNING_OUTCOMES>
TEXT
<BUL>
TEXT1
</BUL>
<BUL>
TEXT2
</BUL>
</LEARNING_OUTCOMES>
<MANY_LIKE_THIS>
</MANY_LIKE_THIS>
</ROW>
</ROWS>
The problem is that the <BUL> when it runs on the web browser shows only the first <BUL></BUL>(TEXT1) and not the others (TEXT2, etc).
The XSLT looks like this:
...
<tr>
<th align="left">Learning Outcomes</th>
<td>
<xsl:value-of select="LEARNING_OUTCOMES"/>
<p>
<xsl:value-of select="ROWS/ROW/LEARNING_OUTCOMES/BUL"/>
</p>
</td>
</tr>
...
Any ideas?
Thank you for your time

Posttop
James DurningSubject: XSLT and multiple children
Author: James Durning
Date: 10 Nov 2006 12:03 PM
<ul>
<xsl:for-each select="LEARNING_OUTCOMES/BUL[position() &gt; 1]">
<li><xsl:value-of select="."/></li>
</xsl:for-each>
</ul>

 
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.