Hi jordi,
I'm still having dificulty figuring this one out. Here is a sample of my XML.
<archive>
<cabinet content="City Projects" number="1">
<project type="Profiles">
<name>Ashley Street</name>
<year/>
<pages>3</pages>
</project>
<project type="Const">
<name>Baxter Street</name>
<year>1993</year>
<pages>12</pages>
</project>
</cabinet>
</archive>
What I'm trying to do is let someone type the name of a project into a text field and it search throughout my XML to display only the ones that match what was typed. I've tried using pure XSL and I'm unable to get it to work. I've dabbled a little with Javascript, but I still don't know how to do it. If there was a way to make the <input> tag value go into a XPath expression, that would be perfect, but I can't get it to work. Something like this would be perfect:
<xsl:for-each select="name[contains( $projectname,result)]">
where result is what the the person typed.
Sorry if I sound out of my league, but I know this can be done somehow.
Robert