[thelist] info on templates, XML and TLAs

shawn allen shawn at alterior.net
Wed Feb 26 14:11:00 CST 2003


quoth David.Cantrell at Gunter.AF.mil:
> 	<xsl:template match="entry">
> 		<p class='entry'>
> 			<h2>
> 				<xsl:value-of select="title"/>
> 			</h2>
> 			<p class='pubDate'>
> 				<xsl:value-of select="pubDate"/>
> 			</p>
> 			<p class='body'>
> 				<xsl:value-of select="body"/>
> 			</p>
> 		</p>
> 	</xsl:template>
> </xsl:stylesheet>

FYI, you'd probably want that entry-encapsulating element to be a <div>,
not a <p>. ;)

--
shawn allen
  mailto://shawn@alterior.net
  phone://415.577.3961
  http://alterior.net
  aim://shawnpallen




More information about the thelist mailing list