[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Translating the contents of a XML field as HTML...
I tried methods suggested thus far, but none seem to address the issue, and the copy-of idea brings up this error; keyword xsl.copy-of may not be used in namespace http://www.w3.org/TR/WD-xsl So have included a real situation from my application, instead of an example...here is the relevant XML data (not the entire file)... <rs:data> <z:row CONTENT='<br><br>Lancashire have appointed Philippe Carty as their new manager.' DATE='12/10/2002' ID='1' READ='True' SUBJECT='Lancs appoint Carty as their new manager!'/> </rs:data> Note: this may or may not be important in terms of helping me, but this data is generated from a ADO recordset in Visual Basic. And here is the XSL... <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl"> <xsl:template match="/"> <html> <body bgcolor="#FFFFFF" background="../img/bkg_message.gif"> <xsl:apply-templates select="//rs:data" /> </body> </html> </xsl:template> <xsl:template match="//rs:data"> <xsl:for-each select="z:row"> <span class="arial"> <b><xsl:value-of select="@SUBJECT"/></b><xsl:value-of select="@CONTENT"> </span> </xsl:for-each> </xsl:template> </xsl:stylesheet> Thanks again. XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
|