cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Conover <scono...@groundswell.net>
Subject RE: sql tags not evaluating, deadline approaching
Date Tue, 22 Aug 2000 20:16:53 GMT
well when I don't put the logicsheet processing instruction in, my taglib
executes normally except for the fact that the sql tags don't get
evaulated...here are the results without the logicsheet directive:

<test2><connection:execute-query id="emp"><connection:statement>
               select fname, lname from employee_t where empid=117
            </connection:statement></connection:execute-query></test2>

here's my source file:

<?xml version="1.0"?>

<?cocoon-process type="xsp"?>



<xsp:page  
	language="java"
	xmlns:user="http://www.groundswell.net/2000/XSP/User" 
	xmlns:connection="http://www.apache.org/1999/Connection"
	xmlns:xsp="http://www.apache.org/1999/XSP/Core" 
>
	<page>
		<title>Upload a document to the repository  </title>
		<p>Click on "browse" to select a file from your computer to
upload.</p>
		<uploadbox/>
		<p>Click "submit" to continue</p>
		<continuebutton/>
		<user:basicprofile/>
	</page>
</xsp:page>


and here's the taglib:

<?xml version="1.0"?>

<xsl:stylesheet version="1.0"
  xmlns:user="http://www.groundswell.net/2000/XSP/User" 
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:xsp="http://www.apache.org/1999/XSP/Core"
>

  <xsl:template match="xsp:page">
    

    <xsp:page  
	language="java"
	xmlns:user="http://www.groundswell.net/2000/XSP/User" 
	xmlns:connection="http://www.apache.org/1999/Connection"
	xmlns:xsp="http://www.apache.org/1999/XSP/Core" 
>
      <xsl:apply-templates select="@*"/>

       <xsl:apply-templates select="page"/>
     </xsp:page>
  </xsl:template>

  <xsl:template match="@*|node()">
    <xsl:copy><xsl:apply-templates select="@*|node()"/></xsl:copy>
  </xsl:template>

	<xsl:template match="page">
		<test2>
			<xsl:apply-templates select="user:basicprofile"/>
		</test2>
	</xsl:template>

  <xsl:template match="user:basicprofile"
xmlns:connection="http://www.apache.org/1999/Connection" >
  	<connection:execute-query id="emp">
            <connection:statement>
               select fname, lname from employee_t where empid=117
            </connection:statement>
          </connection:execute-query>
  </xsl:template>

</xsl:stylesheet>

> -----Original Message-----
> From: Kevin Sonney [mailto:kevin@webslingerz.com]
> Sent: Tuesday, August 22, 2000 1:04 PM
> To: 'cocoon-users@xml.apache.org'
> Subject: RE: sql tags not evaluating, deadline approaching
> 
> 
> On Tue, 22 Aug 2000, Steve Conover wrote:
> > What should the logicsheet point to, the taglib?  The 
> source xml document
> > (i.e. itself?)
> 
> I''ve got it pointed to the taglib, which happens to be in the saem
> directory as the xml document. 
> 
> > I pointed it to my taglib and now it returns nothing.  I 
> pointed it to
> > itself and it produces and error...
> 
> Hmm. what does the error log say about that? When it returns 
> "nothing" I'd
> ahve to wonder if there's an error somewhere in the taglib.
> 
> -- 
> +-------------------------------------------+
> | Kevin Sonney        kevin@webslingerZ.com |
> | Systems Programmer    www.webslingerZ.com |
> +-------------------------------------------+
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
> 

Mime
View raw message