Our new Indie Games subforum is now open for business in G&T. Go and check it out, you might land a code for a free game. If you're developing an indie game and want to post about it, follow these directions
. If you don't, he'll break your legs! Hahaha! Seriously though.
Our rules have been updated and given their own forum
. Go and look at them! They are nice, and there may be new ones that you didn't know about! Hooray for rules! Hooray for The System! Hooray for Conforming!
XML/XSLT help plz*solved*
I'm coding a XSL file and I can't figure out how to do this one part where there's a piece of text (message/textBody) that contains words that are supposed to be bold or italic. The words in question are in message/textBody/strong and message/textbody/emphasized. If I use for example :
I'll only get the bolded words and not the rest of the text. How could I do this so the final HTML code would look like:
Start of the sentence strongword
continues text and then the emphasized
word. The textBody continues.
Should I use separate template's for the thing? I did that before and the only way I got it working caused the rest of the information on the xml-file to show aswell (and not in the form it was supposed to be seen.).
Please I'm desperate =/
EDit: it worked out fine once i added <xsl:apply-templates/> as before and did a separate <xsl:template match="textBody> element after the first one.