Page 1 of 1

simple XSL/XML question

Posted: Fri Sep 14, 2007 4:53 pm
by xterra
feyd | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]


Hey everyone, would love some assistance. I would like to put a <br> or <i> where I specified. Just not sure how to mix HTML in this.

[syntax="xml"]

   <xsl:for-each select="job/manager">

	  
         <xsl:value-of select="title"/> Formatting Options Right Here!
        <xsl:value-of select="dateStarted"/>
<xsl:value-of select="description"/>



      </xsl:for-each>
   

Thanks.


feyd | Please use[/syntax]

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]

Posted: Fri Sep 14, 2007 10:25 pm
by feyd
CDATA section?

Posted: Sat Sep 15, 2007 12:35 am
by volka
xterra wrote:I would like to put a <br> or <i> where I specified.
Just do it. As long as it is valid (well-formed) xml it's ok.

Code: Select all

<xsl:for-each select="job/manager">
  <xsl:value-of select="title"/> Formatting Options Right Here! <br />
  <i><xsl:value-of select="dateStarted"/></i>
  <xsl:value-of select="description"/>
</xsl:for-each>