R
ramc8191
I am working on a small project and have been experimenting with xml as
the data store. It does make certain things extremely simple, but being
new to this am not sure of its potential or of its suitability in
solving my particular problem
This is the issue:
My xml file is pretty simple and has the following structure.
<note>
<tag></tag> <<<< there can be more than one tag
<question></question>
<answer></answer>
</note>
I use xsl to convert this to html. What I want to do is transform the
tag elements to hyperlinks. When the user clicks the link, he gets only
the questions associated with that particular tag.
This could be done by modifying the appropriate xsl:value-of
select="[tag=$choice]" in the xsl file. If I define such a variable
choice with xsl:variable is it possible to set this dynamically? From
what I get so far, such a mechanism isnt available. The xsl file would
require to be modified and restored depending on users actions. It
would have to be able to 'recieve' the users choice.
Any ideas on how I could do this?
Thanks.
the data store. It does make certain things extremely simple, but being
new to this am not sure of its potential or of its suitability in
solving my particular problem
This is the issue:
My xml file is pretty simple and has the following structure.
<note>
<tag></tag> <<<< there can be more than one tag
<question></question>
<answer></answer>
</note>
I use xsl to convert this to html. What I want to do is transform the
tag elements to hyperlinks. When the user clicks the link, he gets only
the questions associated with that particular tag.
This could be done by modifying the appropriate xsl:value-of
select="[tag=$choice]" in the xsl file. If I define such a variable
choice with xsl:variable is it possible to set this dynamically? From
what I get so far, such a mechanism isnt available. The xsl file would
require to be modified and restored depending on users actions. It
would have to be able to 'recieve' the users choice.
Any ideas on how I could do this?
Thanks.