cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roderick A. Carder-Russell" <>
Subject Connecting to MySQL...
Date Thu, 29 Jun 2000 18:29:25 GMT

I'm attempting to connect to a MySQL database and extract information to
be placed into my XML document.  I've put all of what I believe are the
appropriate tags into the documents, including the XSL to reference and
print out my data to a browser.  It does not seem to want to cooperate
though.  What I end up seeing is a blank browser window.  I don't even get
any error message.  I've included the the trimmed down markup below.  I'd
be greatful if anyone could spot problems or give advice.

------THE XML DOCUMENT------

<?xml version="1.0"?>
<?xml-stylesheet href="mystyle.xsl" type="text/xsl"?>
<?cocoon-process type="sql"?>
<?cocoon-process type="xslt"?>

	<connection name="dbconnection">

	<query connection="dbconnection">
		SELECT myfield FROM mytable ORDER BY myfield; 	

-------THE XSL DOCUMENT------

<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="">
<xsl:template match="/">
<xsl:processing-instruction name="cocoon-format">type="text/html"</xsl:processing-instruction>

<xsl:for-each select="test">
	<xsl:value-of select="myfield"/>


Roderick A. Carder-Russell

View raw message