xslt correction

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • manugm1987
    New Member
    • May 2009
    • 13

    xslt correction

    Code:
    <xsl:variable name="cls">
    <xsl:value-of select="./@class"/>
    
    </xsl:variable>	
    <xsl:variable name="abc">
    <xsl:value-of select="html/head/style/$cls/@style"/>
    </xsl:variable>
    Can any one tell me wats wrong with this <xsl:value-of select="html/head/style/$cls/@style"/> line . I get node test expected here error when i run this .
    Can u provide me an alternative to this .
    Last edited by Dormilich; May 9 '09, 12:11 AM. Reason: added [code] tags
  • Jaguex
    New Member
    • May 2009
    • 7

    #2
    Try

    <xsl:value-of select="html/head/style/*[name(.) = $cls]/@style"/>

    Comment

    • manugm1987
      New Member
      • May 2009
      • 13

      #3
      thank u very much for ur usefull reply

      Comment

      Working...