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
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

XSLT problem

  • 11-05-2007 10:33am
    #1
    Registered Users, Registered Users 2 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, Registered Users 2 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, Registered Users 2 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