Re: xsl usage question



ramc8191@xxxxxxxxxxxxxx wrote:

> 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

Element. See http://xml.silmaril.ie/authors/makeup/

> <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.

See http://www.w3.org/TR/xslt#top-level-variables under "Parameters".

///Peter

.



Relevant Pages

  • Re: xsl usage question
    ... > My xml file is pretty simple and has the following structure. ... > tag elements to hyperlinks. ... The xsl file would ... > would have to be able to 'recieve' the users choice. ...
    (comp.text.xml)
  • xsl usage question
    ... My xml file is pretty simple and has the following structure. ... tag elements to hyperlinks. ... The xsl file would ... would have to be able to 'recieve' the users choice. ...
    (comp.text.xml)
  • Re: xml into outlook custom form
    ... xml file: ... ByVal lpFile As String, ByVal lpParameters As String, _ ... Michael Bauer - MVP Outlook ... > the xsl file formating with a commandbutton. ...
    (microsoft.public.office.developer.outlook.vba)
  • XSL / XML: Syntax for calling
    ... I have a set of XML files which the users can open and view with the formatting set by a single XSL file. ... Now I would like to pluck out some information from the XML and display this in the header and, for this, I have written another little javascript program called getheader. ...
    (comp.text.xml)
  • Re: Validation not occuring
    ... is the only solution to include the specific prefix ... the XML would look something like this: ... XSL file would also match on the girder prefix? ... You have a namespace declaration that binds the prefix girder to the ...
    (microsoft.public.dotnet.xml)