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
Sharon KatzSubject: value-of select - One to Many relation
Author: Sharon Katz
Date: 26 Aug 2005 02:02 PM
Please see the attached document for details.
I'm looking for the command\structure that will display values for several levels of the tree while keeping the output readable with the parent-child relation.

Thanks,
Sharon


DocumentTree.doc
Requirement description

Postnext
Minollo I.Subject: value-of select - One to Many relation
Author: Minollo I.
Date: 26 Aug 2005 02:38 PM
Something like this?


<table width="100%" border="1">
<tbody>
<xsl:for-each select="ProductCatalog/Offers/Offer">
<tr>
<td width="24%">
<xsl:value-of select="@name"/>
</td>
<td width="24%">
<table width="100%" border="1">
<tbody>
<xsl:for-each select="PricingPackage">
<tr>
<td width="50%">
<xsl:value-of select="@name"/>
</td>
<td width="50%">
<table width="100%" border="1">
<tbody>
<xsl:for-each select="PricingItem">
<tr>
<td width="50%">
<table width="100%" border="1">
<tbody>
<xsl:for-each select=".">
<tr>
<td width="50%">
<table width="100%" border="1">
<tbody>
<xsl:for-each select="Parameters/Parameter">
<tr>
<td width="50%">
<xsl:value-of select="@name"/>
</td>
<td width="50%">
<xsl:value-of select="Values/Value/@name"/>
</td>
</tr>
</xsl:for-each>
</tbody>
</table>
</td>
<td width="50%"/>
</tr>
</xsl:for-each>
</tbody>
</table>
</td>
<td width="50%"/>
</tr>
</xsl:for-each>
</tbody>
</table>
</td>
</tr>
</xsl:for-each>
</tbody>
</table>
</td>
</tr>
</xsl:for-each>
</tbody>
</table>

Postnext
Sharon KatzSubject: value-of select - One to Many relation
Author: Sharon Katz
Date: 29 Aug 2005 08:47 AM
Yes thanks! When I run this the lowest levels are not being displayed - I'll work on it and let you know if further assistance is required.

Thanks,
Sharon

Postnext
Sharon KatzSubject: value-of select - One to Many relation
Author: Sharon Katz
Date: 29 Aug 2005 12:37 PM
The Parameters/Parameter values that are being displayed do not belong to this level (PricingItem).
Maybe adding the PricingItem name will resolve this - it is currently not being displayed, but rather "." is used.
Could you please advise and provide the complete table code?

Thanks,
Sharon

Posttop
Sharon KatzSubject: value-of select - One to Many relation
Author: Sharon Katz
Date: 29 Aug 2005 04:03 PM
Problem solved (mapping should have been 'PricingParameters/Parameter').

Thanks.

 
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.