[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...

Subject: Re: Translating the contents of a XML field as HTML...
From: "Phil Carty" <phil@xxxxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 10 Jan 2003 07:08:05 -0500
phil carty
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.