[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Default Rendering of HTML?
Shawn wrote:
<xsl:template match="/news"> <xsl:apply-templates/> </xsl:template>
<xsl:template match="item"> <p> <span> <xsl:attribute name="class">newsDate</xsl:attribute> <xsl:value-of select="date"/> </span>
<xsl:value-of select="text"/> This will insert the value of the first text node of the text element into the result, which is probably white space. You want <xsl>copy-of select="text"/> here. Check you favorite XSLT book, one of the online tutorials or the spec for details of xsl:value-of ann xsl:copy-of (and preferably xsl:copy too) in order to notice the difference. J.Pietschmann
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|