How can I read text as xpath expression

pcxp

New Member
Ill much appreciate if any one can help me in finding a way to read a text as xpath expressione.g. this is my xml document\[code\]<abc> <XYZ> <include>/citizen[./marital_status[text() ='married']]</include> </XYZ></abc>\[/code\]and I am writing a stylesheet\[code\] <xsl:template match="abc"> <xsl:call-template name="evaluate"> <xsl:with-param name="include"> <xsl:apply-templates select="$include"/> </xsl:with-param> </xsl:call-template> </xsl:template>\[/code\]The problem here is that the text of \[code\]<include>\[/code\] element here is something i want to be an xpath expression in \[code\]<xsl:apply-templates select="$include"/>\[/code\]. this will give me citizens who are married but here i just get the string \[code\]"/citizen[./marital_status[text() ='married']]"\[/code\] itself as a result. Is there anypossible way of doing it ?thanks in advance
 
Back
Top