<html>
<br>
&nbsp; Let's say I'm describing the hiearchy of our web site in an XML
document like so...<br>
<br>
<font size=2>&lt;site-map&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;page
title=</font><font size=2 color="#0000F0">&quot;Section
1&quot;</font><font size=2 color="#000000">
url=</font><font size=2 color="#0000F0">&quot;1.html&quot;</font><font size=2 color="#000000">&gt;<br>
&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;page
title=</font><font size=2 color="#0000F0">&quot;Page
1.1&quot;</font><font size=2 color="#000000">
url=</font><font size=2 color="#0000F0">&quot;1.1.html&quot;</font><font size=2 color="#000000">/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;page
title=</font><font size=2 color="#0000F0">&quot;Page
1.2&quot;</font><font size=2 color="#000000">
url=</font><font size=2 color="#0000F0">&quot;1.2.html&quot;</font><font size=2 color="#000000">/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/page&gt;<br>
&nbsp;&nbsp;&lt;page
title=</font><font size=2 color="#0000F0">&quot;Section
2&quot;</font><font size=2 color="#000000">
url=</font><font size=2 color="#0000F0">&quot;2.html&quot;</font><font size=2 color="#000000">&gt;<br>
&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;page
title=</font><font size=2 color="#0000F0">&quot;Page
2.1&quot;</font><font size=2 color="#000000">
url=</font><font size=2 color="#0000F0">&quot;2.1.html&quot;</font><font size=2 color="#000000">/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;page
title=</font><font size=2 color="#0000F0">&quot;Page
2.2&quot;</font><font size=2 color="#000000">
url=</font><font size=2 color="#0000F0">&quot;2.2.html&quot;</font><font size=2 color="#000000">/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/page&gt;<br>
&nbsp;&nbsp;&lt;page
title=</font><font size=2 color="#0000F0">&quot;Section
3&quot;</font><font size=2 color="#000000">
url=</font><font size=2 color="#0000F0">&quot;3.html&quot;</font><font size=2 color="#000000">&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;page
title=</font><font size=2 color="#0000F0">&quot;Page
3.1&quot;</font><font size=2 color="#000000">
url=</font><font size=2 color="#0000F0">&quot;3.1.html&quot;</font><font size=2 color="#000000">/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/page&gt;<br>
&lt;/site-map&gt;<br>
<br>
&nbsp; In a given section, the user has links to all the other pages in
that section as well as top-level links to the other sections. In other
words, I only want to &quot;expand&quot; the section that the user is
currently in.<br>
<br>
&nbsp; An XML document that's a part of this hiearchy has some tag that
says where it fits in. Maye 1.1.xml will have &lt;page title=&quot;Page
1.1&quot;/&gt; or something... (e.g.
&lt;document-root&gt;&amp;entity-that-expands-to-site-map;&lt;page
title=&quot;Page 2.1&quot;/&gt;&lt;/document-root&gt;<br>
<br>
&nbsp; In the XSL proposal, I'd have a field day writing a nifty Java
Script function to do exactly this... in the new world, I'm not sure it
can be done at all.<br>
<br>
&nbsp; The crux of the problem is that I don't know how to make the
&lt;xsl:if test=&quot;...&quot;&gt; compare the contents or attribute
values of one tag to the content or attribute values of another tag. It
appears as though the only thing you can do is with the test attribute is
test the position of a tag relative to other tags and what attributes it
has.<br>
<br>
&nbsp; I'd like to do something like this...<br>
<br>
1: &lt;xsl:for-each
select=</font><font size=2 color="#0000F0">&quot;site-map/page&quot;</font><font size=2 color="#000000">&gt;<br>
2:&nbsp;&nbsp;&nbsp;&nbsp;&lt;</font><font size=2 color="#008000">A
HREF</font><font size=2 color="#000000">=</font><font size=2 color="#0000F0">&quot;{attribute(url)}&quot;</font><font size=2 color="#000000">&gt;<br>
3:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;xsl:value-of
expr=</font><font size=2 color="#0000F0">&quot;attribute(title)&quot;</font><font size=2 color="#000000">/&gt;<br>
4:&nbsp;&nbsp;&nbsp;&nbsp;&lt;/</font><font size=2 color="#008000">A</font><font size=2 color="#000000">&gt;<br>
5:&nbsp;&nbsp;&nbsp;&nbsp;&lt;xsl:if
test=</font><font size=2 color="#0000F0">&quot;.[attribute(title)]='value
of page title for this
document'&quot;</font><font size=2 color="#000000">&gt;<br>
6:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;xsl:for-each
select=</font><font size=2 color="#0000F0">&quot;page&quot;</font><font size=2 color="#000000">&gt;<br>
.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</font><font size=2 color="#008000">A
HREF</font><font size=2 color="#000000">=</font><font size=2 color="#0000F0">&quot;{attribute(url)}&quot;</font><font size=2 color="#000000">&gt;<br>
.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;xsl:value-of
expr=</font><font size=2 color="#0000F0">&quot;attribute(title)&quot;</font><font size=2 color="#000000">/&gt;<br>
.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/</font><font size=2 color="#008000">A</font><font size=2 color="#000000">&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/xsl:for-each&gt;<br>
&nbsp;&nbsp;&nbsp;&lt;/xsl:if&gt;<br>
&lt;/xsl:for-each&gt;<br>
<br>
&nbsp; Obviously, line 5 needs some work. If anyone has any ideas or
suggestions on how to reach the goal of spitting out something like the
table below, I would be very grateful...<br>
<br>
&lt;</font><font size=2 color="#008000">A
HREF</font><font size=2 color="#000000">=</font><font size=2 color="#0000F0">&quot;1.html&quot;</font><font size=2 color="#000000">&gt;Section
1&lt;/</font><font size=2 color="#008000">A</font><font size=2 color="#000000">&gt;<br>
&lt;</font><font size=2 color="#008000">A
HREF</font><font size=2 color="#000000">=</font><font size=2 color="#0000F0">2</font><font size=2 color="#000000">.html</font><font size=2 color="#0000F0">&quot;&gt;Section
2&lt;/A&gt;<br>
</font><font size=2 color="#000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</font><font size=2 color="#008000">A
HREF</font><font size=2 color="#000000">=</font><font size=2 color="#0000F0">2.1</font><font size=2 color="#000000">.html</font><font size=2 color="#0000F0">&quot;&gt;Page
2.1&lt;/A&gt;<br>
</font><font size=2 color="#000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</font><font size=2 color="#008000">A
HREF</font><font size=2 color="#000000">=</font><font size=2 color="#0000F0">2.2</font><font size=2 color="#000000">.html</font><font size=2 color="#0000F0">&quot;&gt;Page
2.2&lt;/A&gt;<br>
</font><font size=2 color="#000000">&lt;</font><font size=2 color="#008000">A
HREF</font><font size=2 color="#000000">=</font><font size=2 color="#0000F0">&quot;3.html&quot;</font><font size=2 color="#000000">&gt;Section
3&lt;/</font><font size=2 color="#008000">A</font><font size=2 color="#000000">&gt;<br>
</font><br>
<br>
<div>-- Andrew</div>
<br>
<div>&nbsp;&nbsp; Andrew Bunner</div>
<div>&nbsp;&nbsp; President, Founder Mass Quantities, Inc.</div>
<div>&nbsp;&nbsp; Professional Supplements for the Perfect
Physique</div>
&nbsp;&nbsp;
<a href="http://www.massquantities.com/" EUDORA=AUTOURL>http://www.massquantities.com</a> 
</html>