I have a stylesheet where I need to handle several different situations.
I want to make these selections, for instance
<xsl:value-of
select="$questions//Track[(_at_)id='T1']/MCP[(_at_)id='MC1']/ReportInstructions"/>
<xsl:value-of select="Report/TrackT1/Position[(_at_)position='Left
Front']/MCHistogram[(_at_)id='1']/Average"/>
<xsl:copy-of select="/Report/TrackT1/Position[(_at_)position='Left
Front']/MCHistogram[(_at_)id='1']/svg:svg"/>
In different situations, the value T1 and MC1 change, to say T2 and MC2, and
position might be Right Rear.
I am trying to create a template that will handle that, where I could pass
in three parameters, say trackId, mcpID, and position and then construct the
unique string with concatenation functions, say $selectArgument, and have a
statement in the template like
<xsl:value-of select="$selectArgument"/> or
<xsl:copy-of select="$selectArgument"/>
or something like it, that would do the job.
However, I am unsure how to handle the various quotation marks and their
escaping, etc.
Could someone point me in the right direction?
Thanks.
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--