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
Conferences Close Tree View
+ Stylus Studio Feature Requests (1192)
+ Stylus Studio Technical Forum (14621)
+ Website Feedback (249)
- XSLT Help and Discussion (7625)
-> + Use of before and after string (3) Sticky Topic
-> - How do I substitute element ty... (1)
-> + How does one add working days ... (4)
-> - Help, I have existing XLT and... (1)
-> + Need help on XSLT issue - (2)
-> + EDI to XML Conversion (7)
-> - XML To JSON Conversion using X... (1)
-> + Formatting Paragraphs to same ... (2)
-> - Grouping of records (1)
-> + Problems with xsd 1.1 (4)
-> + XML to HL7 mapping (3)
-> + XSLT 3 and Iterate (2)
-> + XSL-FO to PDF preview (3)
-> + java.lang.RuntimeException: Er... (2)
-> + Create Acroforms with Stylus X... (2)
-> + How to change XSLT parameter s... (3)
-> + how to change format of the da... (2)
-> + Search "Next 8 Results " doesn... (2)
-> - Support for Git (1)
-> + newbee (8)
-- [1-20] [21-40] [41-60] Next
+ XQuery Help and Discussion (2017)
+ Stylus Studio FAQs (159)
+ Stylus Studio Code Samples & Utilities (364)
+ Stylus Studio Announcements (113)
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.

   
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.