Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

XSLT problem

Options
  • 11-05-2007 11:33am
    #1
    Registered Users Posts: 500 ✭✭✭


    I am a newbie to xslt.

    I have a param defined in my xml(before transform) lets call it XXX

    To access this in the xslt i use $XXX - which is ok.

    How do i output my text aswell as the value of $XXX

    But i have ouput to my RSS file that says
    Hello $XXX

    So my xslt should look like ?
    <xsl:if test="RES">
    <title>Your name is : $XXX </title>
    </xsl:if>

    How can i output this?


Comments

  • Registered Users Posts: 1,393 ✭✭✭Inspector Gadget


    Off the top of my head:

    <xsl:value-of select="$XXX"/>

    Do a google for the Mulberry Technologies XSLT/Xpath quick reference, it's very handy for this sort of thing...

    Gadget


  • Registered Users Posts: 500 ✭✭✭warrenaldo


    cheers,it looks like i can just do that and append my stuff to the fronth of it ie :

    Hello <xsl:value-of select="$XXX"/>

    works perfect - cheers.


Advertisement