Hello,
I have a variable in my process of type string called "MyVariable"
I want to reference this variabale in an XSLT file as a parameter.
How do I do that?
Below is first attempt, but it doesnt seem to work:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/" xmlns:dd="http://ns.adobe.com/data-description/">
<xsl:param name="thePath">{$ /process_data/@MyVariable $}</xsl:param>
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:template match="/" xmlns:cic="http://cic.gcms.mel/">
<cic:applicationDetails xmlns:cic="http://cic.gcms.mel/" xmlns:arr="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<cic:DependentApplicant>
<cic:FamilyName>
<xsl:value-of select="$thePath/Child1Name"/>
</cic:FamilyName>
<cic:Age>
<xsl:value-of select="$thePath/Child1Age"/>
</cic:Age>
<cic:Gender>
<xsl:value-of select="$thePath/Child1Gender"/>
</cic:Gender>
</cic:DependentApplicant>
</cic:applicationDetails>
</xsl:template>
</xsl:stylesheet>
Lil help?