Hello
My problem:
Have have a search engine that returns details about a project from an XML database and displays them.
No probs.
However if the user wants to click on the "project" to find out more and display all the details I get stuck.
I'm nearly there.
Currently the user clicks on the result they want to display it calls a "generic" html page that calls the XML database and an xsl sheet.
My plan falls down at the xsl stylesheet:
<p>
<xsl:for-each select="projectdetails/project"
IN HERE I WANT SOME CLEVER THING THAT SAYS ONLY SELECT "PROJECTS" THAT THE USER HAS JUST CLICKED ON. MY UNIQUE INDENTIFIER
IS "PROJECT CODE" ANY IDEAS???? I ASSUME I NEED TO STORE
A VARIABLE EQUIVALENT TO THE PROJECT CODE WHEN THE CLICK ON THE SEARCH ENGINE RESULT AND THEN REFERENCE IT HERE.>
<font face="Arial" size ="2" color="Navy">
<p>
<b><xsl:value-of select="title"/></b><br/>
<b>Project Code</b> <xsl:value-of select="projcode"/><br/>
<b>Client</b> <xsl:value-of select="projclient"/><br/>
<b>Project Manager</b> <xsl:value-of select="name"/><br/>
</p>
<p>
<b>Project Value</b> <xsl:value-of select="projvalue"/><br/>
<b>Project Status</b> <xsl:value-of select="projstatus"/><br/>
</p>
<p>
<b>Project Background</b><br/>
<xsl:value-of select="Background"/>
</p>
</font>
<hr />
</xsl:for-each>
</p>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
My problem:
Have have a search engine that returns details about a project from an XML database and displays them.
No probs.
However if the user wants to click on the "project" to find out more and display all the details I get stuck.
I'm nearly there.
Currently the user clicks on the result they want to display it calls a "generic" html page that calls the XML database and an xsl sheet.
My plan falls down at the xsl stylesheet:
<p>
<xsl:for-each select="projectdetails/project"
IN HERE I WANT SOME CLEVER THING THAT SAYS ONLY SELECT "PROJECTS" THAT THE USER HAS JUST CLICKED ON. MY UNIQUE INDENTIFIER
IS "PROJECT CODE" ANY IDEAS???? I ASSUME I NEED TO STORE
A VARIABLE EQUIVALENT TO THE PROJECT CODE WHEN THE CLICK ON THE SEARCH ENGINE RESULT AND THEN REFERENCE IT HERE.>
<font face="Arial" size ="2" color="Navy">
<p>
<b><xsl:value-of select="title"/></b><br/>
<b>Project Code</b> <xsl:value-of select="projcode"/><br/>
<b>Client</b> <xsl:value-of select="projclient"/><br/>
<b>Project Manager</b> <xsl:value-of select="name"/><br/>
</p>
<p>
<b>Project Value</b> <xsl:value-of select="projvalue"/><br/>
<b>Project Status</b> <xsl:value-of select="projstatus"/><br/>
</p>
<p>
<b>Project Background</b><br/>
<xsl:value-of select="Background"/>
</p>
</font>
<hr />
</xsl:for-each>
</p>
</body>
</html>
</xsl:template>
</xsl:stylesheet>