SunQuest
           XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old June 4th, 2003, 09:58 AM
Jackmack357 Jackmack357 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: Northern Virginia
Posts: 30 Jackmack357 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Post create expand/collapse w/ stylesheets???

I am trying to use an expand collapse method by nodes and there are 2 levels to my xml that is incorporated in the stylesheet. How do I differentiate between nodes on which to expand and collapse ...here is my stylesheet, now i just need to figure out how to expand and collapse different levels within. I already have the java to expand and collapse, I can collapse/expand the whole tree but not w/ in levels. I am very novice to this(as u could probably tell) Any ideas....

<xtags:context select="//Content">
<xtags:add>
<Sitemap RAccess="*" WAccess="NoOne" Owner="NoOne">
<%
String sitemapxml = (String)cm.get("Sitemap","XmlData");
sitemapxml = sitemapxml.substring(sitemapxml.indexOf("<?xml") + 5);
sitemapxml = sitemapxml.substring(sitemapxml.indexOf("?>") + 2);
out.println(sitemapxml);
%>
</Sitemap>
</xtags:add>
</xtags:context>


<table width=200 border=0><tr><td>
<xtags:variable select="//Content/Sitemap/Content/Page/Page[contains(Caption,'Home Page')]/Page" id="subtree" type="list"/>
<xtags:stylesheet context="<%= subtree %>">
<xtags:template match="text()|@*"/>
<xtags:template match="Page">
<table border=0 cellspacing=0 cellpadding=0>
<tr><td colspan=2>
<a href="<xtags:valueOf select="Url"/>" target="<xtags:valueOf select="Target"/>"><xtags:valueOf select="Caption"/></a>
</td></tr>
<tr>
<td width="10">&nbsp;</td>
<td><xtags:applyTemplates/></td>
</tr>
</table>
</xtags:template>
</xtags:stylesheet>
</td></tr>
<% subtree = null; %>
<xtags:remove select="//Sitemap"/>

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > create expand/collapse w/ stylesheets???


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway