simple XSL/XML question

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
xterra
Forum Commoner
Posts: 69
Joined: Mon Mar 06, 2006 12:52 pm

simple XSL/XML question

Post 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]
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

CDATA section?
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post 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>
Post Reply