ESQL Doubt

2002-04-13 Thread Mathews, Silvy (HQP)
Title: ESQL Doubt





Friends,
Could some one tell me how to get the table output format for the values which I get from the database. The source is below:

Thanks in advance
S Mathews



---


Format Required:


EMPID EMPNAME
1 a
2 sdfgsdfg
3 adfadsf







* ESQL FILE *


?xml version=1.0 encoding=ISO-8859-1?
xsp:page
 language=java
 xmlns:xsp=http://apache.org/xsp
  xmlns:esql=http://apache.org/cocoon/SQL/v2



 page


 titleThis pages are generated dynamically from Table /title


 content


 esql:connection
 esql:poolAdminConnectionPool/esql:pool
 esql:execute-query
 esql:queryselect empid,empname from employee 
 /esql:query
 esql:results
 esql:row-results
 silvy
 paraesql:get-string column=empid//para
 col2esql:get-string column=empname//col2
 /silvy 
 /esql:row-results
 /esql:results
 /esql:execute-query
 /esql:connection
 /content
 /page
/xsp:page



 XSL Document ***



?xml version=1.0?
xsl:stylesheet version=1.0
 xmlns:xsl=http://www.w3.org/1999/XSL/Transform
 xmlns:fo=http://www.w3.org/1999/XSL/Format



xsl:template match=/
 fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format
 fo:layout-master-set
 fo:simple-page-master master-name=one
margin-left=100pt
margin-right=100pt
 fo:region-body  margin-top=50pt
margin-bottom=50pt/ 
 /fo:simple-page-master
 /fo:layout-master-set


 fo:layout-master-set
 fo:simple-page-master master-name=page
   page-height=29.7cm 
   page-width=21cm
   margin-top=1cm 
   margin-bottom=2cm 
   margin-left=2.5cm 
   margin-right=2.5cm
  fo:region-before extent=3cm/
  fo:region-body margin-top=3cm/
  fo:region-after extent=1.5cm/
 /fo:simple-page-master
 
 fo:page-sequence-master master-name=all
 fo:repeatable-page-master-alternatives
 fo:conditional-page-master-reference master-reference=page page-position=first/
 /fo:repeatable-page-master-alternatives
 /fo:page-sequence-master
/fo:layout-master-set
 
 
fo:page-sequence master-reference=all
 fo:static-content flow-name=xsl-region-after
   fo:block text-align=center 
   font-size=10pt 
font-family=serif 
line-height=14ptpage fo:page-number//fo:block
 /fo:static-content 
 
 fo:flow flow-name=xsl-region-body  
 
 fo:table
  fo:table-column column-width=3cm/
  fo:table-column column-width=5cm/
  fo:table-column column-width=5cm/
  fo:table-body font-size=10pt line-height=16pt font-family=sans-serif
  xsl:for-each select=page/content
  fo:table-row 
 fo:table-cell
 fo:block text-align=start 
   fo:basic-link color=black
   xsl:attribute name=internal-destination
   xsl:value-of select=translate(.,' ),-.(','')/
   /xsl:attribute
   xsl:value-of select=./
   /fo:basic-link 
  /fo:block
 /fo:table-cell 
/fo:table-row 
/xsl:for-each
   /fo:table-body
  /fo:table
 /fo:flow
 /fo:page-sequence
 /fo:root
/xsl:template
/xsl:stylesheet



***SITEMAP.XMAP ***

 map:pipeline
 map:match pattern=mjsilvy/*
 map:generate type=serverpages src="mjsilvy/{1}.xsp/
 map:transform src="mjsilvy/silvys_fo.xsl
 map:parameter name=view-source value=mjsilvy/{1}.xsp/
 /map:transform
 map:serialize type=fo2pdf/
 /map:match
/map:pipeline






cocoon 1.8

2002-04-13 Thread Alluri, Mahender

Hi,
 i am using cocoon 1.8. does table header works for this version?

Thansk,
Mahender.

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: ESQL Oracle StoredProcedues

2002-04-13 Thread Michael Raffenberg

org.apache.cocoon.ProcessingException: Language Exception: 
org.apache.cocoon.components.language.LanguageException: Error compiling 
Merci_Dics_xsp:
Line 470, column -1: inconvertible types
Line 0, column 0:
1 errorHere is the code:

Here is Code from Merci_dics_xsü.java
464-493
  // nested result set
if (_esql_query != null) {
  _esql_queries.push(_esql_query);
}
  _esql_query = new EsqlQuery((ResultSet) 

(test)
  );
{
  if (_esql_query.hasResultSet()) {
do {
  _esql_query.getResultRows();

  if (_esql_query.nextRow()) {

  } else {

  }
  _esql_query.getResultSet().close();

} while(_esql_query.getMoreResults());
  } else {

  }
}
if (_esql_queries.empty()) {
  _esql_query = null;
} else {
  _esql_query = (EsqlQuery)_esql_queries.pop();
}

Thanks for help.

-- 
Best regards,
 Michaelmailto:[EMAIL PROTECTED]



-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: making tree like structure using XML,XSP,XSL

2002-04-13 Thread Luca Morandini

Niket,

here you are...

SITEMAP.XMAP (fragment)
map:pipeline
map:match pattern=hash.xml
map:generate src=documents/hashtable.xml/
map:transform src=stylesheets/hashtable.xsl/
map:serialize type=xml/
/map:match
/map:pipeline

HASHTABLE.XML
?xml version=1.0?
page
entry id=1  parentid=0/
entry id=2  parentid=0/
entry id=3  parentid=0/
entry id=4  parentid=0/
entry id=5  parentid=1/
entry id=6  parentid=1/
entry id=7  parentid=6/
entry id=8  parentid=7/
entry id=11 parentid=5/
entry id=9  parentid=2/
entry id=10 parentid=2/
entry id=12 parentid=5/
/page

HASHTABLE.XSL
?xml version=1.0?
xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
version=1.0

xsl:template match=page

!-- Starts the tree --
xsl:element name=tree

xsl:apply-templates/

/xsl:element

/xsl:template

!-- Selects main branches --
xsl:template match=//entry[@parentid=0]

xsl:call-template name=process-branch
xsl:with-param name=idxsl:value-of 
select=@id//xsl:with-param
xsl:with-param name=parentidxsl:value-of
select=@parentid//xsl:with-param
/xsl:call-template

/xsl:template

!-- Recursive function --
xsl:template name=process-branch
xsl:param name=id/
xsl:param name=parentid/

xsl:choose

!-- If element has no branches (i.e. is a leaf) --
xsl:when test=count(//entry[@parentid=current()/@id])=0

!-- Writes the leaf element --
xsl:element name=leaf
xsl:attribute name=idxsl:value-of 
select=$id//xsl:attribute
/xsl:element

/xsl:when

!-- If element has branches --
xsl:otherwise

!-- Starts a branch element --
xsl:element name=branch
xsl:attribute name=idxsl:value-of 
select=$id//xsl:attribute

!-- For every branches of current branch --
xsl:for-each 
select=//entry[@parentid=current()/@id]

!-- Recurse the branch processing --
xsl:call-template 
name=process-branch
xsl:with-param 
name=idxsl:value-of
select=@id//xsl:with-param
xsl:with-param 
name=parentidxsl:value-of
select=@parentid//xsl:with-param
/xsl:call-template

/xsl:for-each

/xsl:element

/xsl:otherwise

/xsl:choose

/xsl:template

/xsl:stylesheet

Best regards,

-
   Luca Morandini
   GIS Consultant
  [EMAIL PROTECTED]
http://utenti.tripod.it/lmorandini/index.html
-

-Original Message-
From: Niket Anand [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 12, 2002 5:13 PM
To: Niket Anand
Subject: making tree like structure using XML,XSP,XSL


Hi All,
I have one function that connect to database and retrive data in form of
Hashtable.
My Hashtable may be like this.
MsgID ParentID
10
20
30
40
51
61
76
87
92
10  2
11  5
12  5

Tree structure would be like this based on MsgID and ParentID
MsgID will be the Id of a tag and parentid is the id of the parent with
which it is linked.
1(parent0)
|
|
---5(child of 1)
|
|___11(child of 5)
|
|12(child of 5 and sibling of 11)
6(child of 1 and sibling of 5)
|
|7(child of 6)
|
|___8(child of 7)
2(parent 2)
|
|9(child of 2)
|
|10(child of 2)

3(parent 3)

4(parent 4)
Like this I have to show dynamic tree like structure in HTML form.I am using
cocoon2.0
This can be either handled by XSP or XSL or both.
Please suggest me how to solve the recursive loop problem using XSL..
How can I apply logic to have dynamic tree structure building function based
on the values of Hashtable keys and values.
Pls suggest  ideas.
Thanks,
Niket



form validation withat least a parameter

2002-04-13 Thread Tiscali-Taiuti

Hi,
I have a form with 2 parameters. How I can make that it is validated if at
least a parameter is present?


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: documentation for managers, was HP-SOAP Server announcement

2002-04-13 Thread Matthew Langham

Peter Robins wrote:

snip/


meaning that Cocoon can only be implemented by specialist consultants
working
in an ad hoc manner? That doesn't sound like a very large install base to
me.


I would say Applications built on Cocoon are currently being implemented by
...

At the moment - and due to the nature of the current Cocoon release - this
is the case (unless anyone corrects me). You see Cocoon is a framework - so
after installing it you really do not have anything. You still need to
build whatever application you require. And Cocoon provides a great deal
that will help you do that.

What is currently missing is addtional documentation and practices that make
the application building part easier (when do I use which component or
concept to do what). But again, that can depend on your specific scenario.

So, as Andrew wrote, I think the learning curve is quite steep - but there
_are_ people out there who can help flatten the curve - and the journey up
the hill is worth making. And things will start to become easier as the
technology is adopted, documentation is written and applications are built.

Matthew

--
Open Source Group   sunShine - Lighting up e:Business
=
Matthew Langham, SN AG, Klingenderstrasse 5, D-33100 Paderborn
Tel:+49-5251-1581-30  [EMAIL PROTECTED] - http://www.s-und-n.de
   Weblogging at: http://www.need-a-cake.com
 Cocoon book: http://www.amazon.com/exec/obidos/ASIN/0735712352
=



-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




How to insert an xml node in a transformer

2002-04-13 Thread Hugo Burm

Hello

I am trying to implement my own Highlight transformer that highlights terms
in xml documents that are the result of a Lucene query.

For this to work, I have to insert a new xml node (e.g. bold) in the
characters function in my class that subclasses
org.apache.cocoon.transformation.AbstractTransformer.

I tried the obvious things like calling the next three lines of code in my
characters function.
No success. The startElement is reported by the logger. The endElement
isn't.

String mytag = bold;
super.contentHandler.startElement(, mytag, mytag, null);
super.contentHandler.endElement(, mytag, mytag);

Need a piece of code that illustrates how to do this...

Thanks


Hugo Burm
[EMAIL PROTECTED]


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Using Included Logicsheets

2002-04-13 Thread Paul Pattison

I've been doing more reading and playing and I really want to do what is
described in the 'Abstractions' section of the 'Concepts' page -
http://xml.apache.org/cocoon/userdocs/concepts/index.html#c2-abstractions.
I want to implement the 'Included Logicsheet' model, but have not been able
to figure it out.  Has anybody done this or are there any samples of this?
What would the sitemap look like?

Here's what I was trying to do:

map:match pattern=user.xsp
  map:generate type=serverpages src=documents/user.xml/
  map:transform type=xslt src=stylesheets/user.xsl/
  map:serialize type=xml/
/map:match

map:match pattern=user.html
  map:generate type=serverpages src=cocoon://user.xsp/
  map:transform type=xslt src=stylesheets/simple-page2html.xsl/
  map:serialize type=html/
/map:match

Thanks for your suggestions,

Paul

-Original Message-
From: Paul Pattison [mailto:[EMAIL PROTECTED]]
Sent: 13 April 2002 04:01
To: Cocoon Mailing List
Subject: Using Included Logicsheets


I think I'm starting to get this Cocoon thing...

I'm designing a database web application.  Most pages will have some content
on them and then have some results returned from the database.  I would like
to keep the content part separate from the db query.  It seems to me that I
should store my db queries in logicsheets using esql.  Then these data and
db results would be combined before having an xslt transformation to html.

My problem is that while I can get the content and db query to work
separately, I'm a little foggy on how to integrate them.  Do I use
aggregation, xinclude or cinclude.  I don't really understand the difference
between these.

I read the 'Abstraction' section in the Concepts doc, and I think I should
use an 'Included Logicsheet', but it doesn't say how to do that.

Suggestions greatly appreciated,

Paul


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




DO NOT REPLY [PATCH QUEUE] Summary April 14 2002

2002-04-13 Thread nicolaken

---
 This mail is generated automatically using
 Jakarta Ant. Contents are automatically
 downloaded from Apache's Bugzilla.
---
 Please do not reply to this mail.
---

***
COCOON PATCH QUEUE UPDATE
 
patches in queue:  9 
***


---
6740:[PATCH] Problem with SOAP Logicsheet in accessing .Net Web S
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6740

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
6879:[PATCH] Cache improvement using ESI invalidation protocol
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6879

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
7244:[PATCH] Extended Selector Interface proposal
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7244

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
7253:[PATCH] I18nTransformer, adds support for setting translatio
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7253

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
7328:[PATCH] Minor changes to User docs menu
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7328

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
7507:[PATCH] esql - support CLOB in get-xml
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7507

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
8056:[PATCH] SQL Transformer -- get rid of exponents in large dec
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8056

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
7187:[PATCH] esql:group, footer fix
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7187

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
7868:[PATCH] protected createCocoon() in CocoonServlet
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7868

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  REOP

*that's it!

patch HOWTO

Send patches to http://nagoya.apache.org/bugzilla/
specifying [PATCH] in the summary.
Bugzilla sends a mail automatically to this list.
Reviewers will mark it FIXED there when applied.
Patches not sent to Bugzilla will not be reviewed.
---
This file is scheduled to be generated every Tuesday and
Friday 1:00 CET for the cocoon-dev mailing list, on
Sundays 1:00 CET for the cocoon-users mailing list.
For any problem, question or suggestion, please notify 
[EMAIL PROTECTED]
---
There is a HEAD branch and sometimes a previous-version
branch that are maintained. Where will the patch go?
1. If it is a bug fix it should go to both branches
2. If something is totally new it goes into HEAD scratchpad.
3. Something in between, but does not break backward
   compatibility _may_ go into both (and may not)
4. For everything else, a vote is required  so
   first it may go into HEAD, and then be VOTEd in order
   to sync this into branch.
Please note that structural changes have to be VOTEd first.
  

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




sendmail logicsheet problem

2002-04-13 Thread Perry Molendijk

Sorry forgot to add the log file bits for the problem. This is from
core.log:

REQUEST: /cocoon/xsp/mail

CONTEXT PATH: /cocoon
SERVLET PATH: /xsp/mail
PATH INFO: null

REMOTE HOST: 203.59.174.6
REMOTE ADDRESS: 203.59.174.6
REMOTE USER: null
REQUEST SESSION ID: null
REQUEST PREFERRED LOCALE: en_AU
SERVER HOST: inflexions
SERVER PORT: 82

METHOD: GET
CONTENT LENGTH: -1
PROTOCOL: HTTP/1.1
SCHEME: http
AUTH TYPE: null

CURRENT ACTIVE REQUESTS: 1
REQUEST PARAMETERS:

HEADER PARAMETERS:

PARAM: 'accept' VALUES: '[*/*]'
PARAM: 'accept-language' VALUES: '[en-au]'
PARAM: 'accept-encoding' VALUES: '[gzip, deflate]'
PARAM: 'user-agent' VALUES: '[Mozilla/4.0 (compatible; MSIE 6.0; Windows NT
5.0)]'
PARAM: 'host' VALUES: '[inflexions:82]'
PARAM: 'connection' VALUES: '[Keep-Alive]'

SESSION ATTRIBUTES:


DEBUG   (2002-04-13) 23:57.06:718   [core.source-handler](/cocoon/xsp/mail)
HttpProcessor[82][4]/SourceHandlerImpl: Getting the SourceFactories
DEBUG   (2002-04-13) 23:57.06:734   [core.source-handler](/cocoon/xsp/mail)
HttpProcessor[82][4]/SourceHandlerImpl:  for protocol: file
org.apache.cocoon.components.source.FileSourceFactory
DEBUG   (2002-04-13) 23:57.06:734   [core.source-handler](/cocoon/xsp/mail)
HttpProcessor[82][4]/SourceHandlerImpl:  for protocol: xmldb
org.apache.cocoon.components.source.XMLDBSourceFactory
DEBUG   (2002-04-13) 23:57.06:812
[core.program-generator](/cocoon/xsp/mail)
HttpProcessor[82][4]/ProgramGeneratorImpl: The instance was not accessible
from the internal cache. Proceeding.
DEBUG   (2002-04-13) 23:57.06:828
[core.program-generator](/cocoon/xsp/mail)
HttpProcessor[82][4]/ProgramGeneratorImpl: The program was not preloaded
DEBUG   (2002-04-13) 23:57.06:828
[core.program-generator](/cocoon/xsp/mail)
HttpProcessor[82][4]/ProgramGeneratorImpl: Creating resource
org\apache\cocoon\www\sitemap_xmap
DEBUG   (2002-04-13) 23:57.07:109   [core.markup.sitemap](/cocoon/xsp/mail)
HttpProcessor[82][4]/AbstractMarkupLanguage: addLogicsheetToList: name:
jar:file:/C:/tomcat/webapps/cocoon/WEB-INF/lib/cocoon-2.0.2.jar!/org/apache/
cocoon/components/language/markup/sitemap/java/sitemap.xsl, location:
jar:file:/C:/tomcat/webapps/cocoon/WEB-INF/lib/cocoon-2.0.2.jar!/org/apache/
cocoon/components/language/markup/sitemap/java/sitemap.xsl, instance:
org.apache.cocoon.components.language.markup.Logicsheet@78c4c
DEBUG   (2002-04-13) 23:57.07:109   [core.xslt-processor](/cocoon/xsp/mail)
HttpProcessor[82][4]/XSLTProcessorImpl: XSLTProcessorImpl getTemplates:
stylesheet
jar:file:/C:/tomcat/webapps/cocoon/WEB-INF/lib/cocoon-2.0.2.jar!/org/apache/
cocoon/components/language/markup/sitemap/java/sitemap.xsl
DEBUG   (2002-04-13) 23:57.07:125   [core.xslt-processor](/cocoon/xsp/mail)
HttpProcessor[82][4]/XSLTProcessorImpl: Creating new Templates for
jar:file:/C:/tomcat/webapps/cocoon/WEB-INF/lib/cocoon-2.0.2.jar!/org/apache/
cocoon/components/language/markup/sitemap/java/sitemap.xsl
DEBUG   (2002-04-13) 23:57.08:234   [core.xslt-processor](/cocoon/xsp/mail)
HttpProcessor[82][4]/XSLTProcessorImpl: Source =
org.apache.cocoon.components.source.URLSource@30122, templatesHandler =
org.apache.xalan.processor.StylesheetHandler@3f7916
DEBUG   (2002-04-13) 23:57.10:859   [core.xslt-processor](/cocoon/xsp/mail)
HttpProcessor[82][4]/XSLTProcessorImpl: XSLTProcessorImpl getTemplates:
stylesheet
jar:file:/C:/tomcat/webapps/cocoon/WEB-INF/lib/cocoon-2.0.2.jar!/org/apache/
cocoon/components/language/markup/sitemap/java/sitemap.xsl
DEBUG   (2002-04-13) 23:57.10:859   [core.xslt-processor](/cocoon/xsp/mail)
HttpProcessor[82][4]/XSLTProcessorImpl: Reusing Templates for
jar:file:/C:/tomcat/webapps/cocoon/WEB-INF/lib/cocoon-2.0.2.jar!/org/apache/
cocoon/components/language/markup/sitemap/java/sitemap.xsl
DEBUG   (2002-04-13) 23:57.24:421   [core.language.java](/cocoon/xsp/mail)
HttpProcessor[82][4]/JavaLanguage: Compiling
C:\tomcat\work\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_x
map.java
DEBUG   (2002-04-13) 23:57.32:968   [core.xslt-processor](/cocoon/xsp/mail)
HttpProcessor[82][4]/XSLTProcessorImpl: XSLTProcessorImpl component
initialized.
DEBUG   (2002-04-13) 23:57.32:968   [core.xslt-processor](/cocoon/xsp/mail)
HttpProcessor[82][4]/XSLTProcessorImpl: XSLTProcessorImpl component
initialized.
DEBUG   (2002-04-13) 23:57.32:968   [core.xslt-processor](/cocoon/xsp/mail)
HttpProcessor[82][4]/XSLTProcessorImpl: XSLTProcessorImpl component
initialized.
DEBUG   (2002-04-13) 23:57.32:984   [core.xslt-processor](/cocoon/xsp/mail)
HttpProcessor[82][4]/XSLTProcessorImpl: XSLTProcessorImpl component
initialized.
DEBUG   (2002-04-13) 23:57.33:000   [core.xslt-processor](/cocoon/xsp/mail)
HttpProcessor[82][4]/XSLTProcessorImpl: XSLTProcessorImpl component
initialized.
DEBUG   (2002-04-13) 23:57.33:000   [core.xslt-processor](/cocoon/xsp/mail)
HttpProcessor[82][4]/XSLTProcessorImpl: XSLTProcessorImpl component
initialized.
DEBUG   (2002-04-13) 23:57.33:000   [core.xslt-processor](/cocoon/xsp/mail)

RE: Using Included Logicsheets

2002-04-13 Thread Vadim Gritsenko

 From: Paul Pattison [mailto:[EMAIL PROTECTED]]
 
 I've been doing more reading and playing and I really want to do what
is
 described in the 'Abstractions' section of the 'Concepts' page -

http://xml.apache.org/cocoon/userdocs/concepts/index.html#c2-abstraction
s.
 I want to implement the 'Included Logicsheet' model, but have not been
able
 to figure it out. 

You can play with it, but I recommend you to look at the logicsheet
example which is usually more preferred way. See
webapp/samples/docs/xsp/logicsheet.xsp for a simple logicsheet example.


 Has anybody done this or are there any samples of this?
 What would the sitemap look like?

Take a look at the sub/sitemap.xmap, and try sample
http://localhost:8080/cocoon/sub/xsp-dynamic. This sample is slow
because source of the XSP is generated (and compiled!) on every request.
If you want this to work (fast(er)), you have to implement cacheable XSP
(see webapp/samples/xsp/cacheable.xsp).


 Here's what I was trying to do:
 
 map:match pattern=user.xsp
   map:generate type=serverpages src=documents/user.xml/
   map:transform type=xslt src=stylesheets/user.xsl/
   map:serialize type=xml/
 /map:match

This looks Ok.

 
 map:match pattern=user.html
   map:generate type=serverpages src=cocoon://user.xsp/
   map:transform type=xslt src=stylesheets/simple-page2html.xsl/
   map:serialize type=html/
 /map:match

This also looks ok.

If you have an issue, the problem should be in your XML/XSL files.

Regards,
Vadim

 
 Thanks for your suggestions,
 
 Paul
 
 -Original Message-
 From: Paul Pattison [mailto:[EMAIL PROTECTED]]
 Sent: 13 April 2002 04:01
 To: Cocoon Mailing List
 Subject: Using Included Logicsheets
 
 
 I think I'm starting to get this Cocoon thing...
 
 I'm designing a database web application.  Most pages will have some
content
 on them and then have some results returned from the database.  I
would like
 to keep the content part separate from the db query.  It seems to me
that I
 should store my db queries in logicsheets using esql.  Then these data
and
 db results would be combined before having an xslt transformation to
html.
 
 My problem is that while I can get the content and db query to work
 separately, I'm a little foggy on how to integrate them.  Do I use
 aggregation, xinclude or cinclude.  I don't really understand the
difference
 between these.
 
 I read the 'Abstraction' section in the Concepts doc, and I think I
should
 use an 'Included Logicsheet', but it doesn't say how to do that.
 
 Suggestions greatly appreciated,
 
 Paul


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Missing API Docs in Cocoon 2.0.2 and latest CVS

2002-04-13 Thread Marc Jeffrey Driftmeyer

Vadim,

I'm happy for your success but that does not address the error message 
I'm receiving.  What is your build environment?

-Marc


Vadim Gritsenko wrote:

From: Marc Jeffrey Driftmeyer [mailto:[EMAIL PROTECTED]]

Of course that is the command..


And as run the latest snapshot or even the cocoon 2.0.2 release here

is

the error log for the javadocs.

javadocs:
  [javadoc] Generating Javadoc
  [javadoc] Javadoc execution
  [javadoc] Loading source file
org.apache.cocoon.components.language.programming.java...
  [javadoc] error: cannot read:
org.apache.cocoon.components.language.programming.java

...

  [javadoc] 1 error


I just tried build javadocs:

[javadoc] Generating
C:\Apache\xml-cocoon2\build\cocoon\javadocs\help-doc.html...
[javadoc] 116 warnings

Result is 842 files in the cocoon/build/cocoon/javadocs.


Vadim

BUILD SUCCESSFUL

Total time: 46 seconds

C:\JavaDevCenter\cocoon-2.0.2

The result is an EMPTY javadocs Build directory.

Now how this pertains to the PRINTER-DOCS :  buiild printer-docs
 command resulting in those missing files is still a mystery.


Care to comment on why they are still missing?

Sincerely,

Marc

Vadim Gritsenko wrote:

In Java world, API docs are generated from the source code.

IIRC, build javadocs command launched from the Cocoon source
distribution root dir will build you all Cocoon API documentation, in
the ./build/cocoon/javadocs directory.

Once you have javadocs, you can copy them into the Cocoon's samples
webapp.

Vadim

From: Marc Jeffrey Driftmeyer [mailto:[EMAIL PROTECTED]]

Copy from Clipboard:


---

File Not Found

http://localhost/cvsDocs/apidocs/index.html

File Not Found
http://localhost/cvsDocs/userdocs/concepts/samples/catalog-demo
Unknown Format
http://localhost/cvsDocs/developing/images/initialize_Cocoon.png
Unknown Format
http://localhost/cvsDocs/developing/images/get_hello_html.png
File Not Found

http://localhost/cvsDocs/apidocs/org/apache/cocoon/transformation/I18nT

r

ansfor

mer.html
File Not Found

http://localhost/cvsDocs/apidocs/org/apache/cocoon/components/language/

g

enerat

or/ProgramGenerator.html
File Not Found

http://localhost/cvsDocs/apidocs/org/apache/cocoon/generation/Generator

.

html

File Not Found

http://localhost/cvsDocs/apidocs/org/apache/cocoon/generation/ServerPag

e

sGener

ator.html
File Not Found

http://localhost/cvsDocs/apidocs/org/apache/cocoon/components/language/

g

enerat

ion/ProgramGenerator.html
File Not Found

http://localhost/cvsDocs/apidocs/org/apache/cocoon/generation/AbstractS

e

rverPa

ge.html
File Not Found

http://localhost/cvsDocs/apidocs/org/apache/cocoon/generation/ComposerG

e

nerato

r.html
File Not Found
http://localhost/cvsDocs/apidocs/org/apache/arch/Modifiable.html
File Not Found

http://localhost/cvsDocs/apidocs/org/apache/cocoon/transformation/XIncl

u

deTran

sformer.html
File Not Found

http://localhost/cvsDocs/apidocs/org/apache/cocoon/components/language/

p

rogram

ming/ProgrammingLanguage.html
File Not Found

http://localhost/cvsDocs/apidocs/org/apache/cocoon/components/language/

p

rogram

ming/CodeFormatter.html
File Not Found

http://localhost/cvsDocs/apidocs/org/apache/cocoon/components/language/

p

rogram

ming/AbstractProgrammingLanguage.html
File Not Found

http://localhost/cvsDocs/apidocs/org/apache/arch/named/AbstractNamedCom

p

onent.

html
File Not Found

http://localhost/cvsDocs/apidocs/org/apache/cocoon/components/language/

p

rogram

ming/CompiledProgrammingLanguage.html
File Not Found

http://localhost/cvsDocs/apidocs/org/apache/cocoon/components/language/

p

rogram

ming/LanguageCompiler.html
File Not Found

http://localhost/cvsDocs/apidocs/org/apache/cocoon/components/language/

p

rogram

ming/CompilerError.html
File Not Found

http://localhost/cvsDocs/apidocs/org/apache/cocoon/components/language/

p

rogram

ming/java/AbstractJavaCompiler.html
File Not Found

http://localhost/cvsDocs/apidocs/org/apache/cocoon/components/classload

e

r/Repo

sitoryClassLoader.html
File Not Found

http://localhost/cvsDocs/apidocs/org/apache/cocoon/components/classload

e

r/Clas

sLoaderManager.html
File Not Found

http://localhost/cvsDocs/apidocs/org/apache/cocoon/components/classload

e

r/Clas

sLoaderManagerImpl.html
File Not Found

http://localhost/cvsDocs/apidocs/org/apache/cocoon/components/language/

m

arkup/

MarkupLanguage.html
File Not Found

http://localhost/cvsDocs/apidocs/org/apache/cocoon/components/language/

m

arkup/

AbstractMarkupLanguage.html
File Not Found

http://localhost/cvsDocs/apidocs/org/arch/named/AbstractNamedComponent.

h

tml

File Not Found

http://localhost/cvsDocs/apidocs/org/apache/cocoon/components/language/

m

arkup/

Logicsheet.html
File Not Found

http://localhost/cvsDocs/apidocs/org/apache/cocoon/components/language/

m

arkup/

NamedLogicsheet.html
File Not Found

http://localhost/cvsDocs/apidocs/org/apache/cocoon/components/language/

m

arkup/


Cocoon2 + XIndice

2002-04-13 Thread Alex McLintock



Hi folks,

I'm trying to get Cocoon2 (recent CVS snapshot) working with Xindice 1.0 on 
RedHat Linux/Tomcat4

Happily the biggest problem is no more.

I can successfully call something like this

http://myserver:8080/cocoon/asubdir/xmldb/reviews/?xpath=//review[contains(title,%27Dune%27)]


This is in my sitemap

!-- THIS WORKS - HOORAY --
   map:match pattern=xmldb/**
map:match type=request-parameter pattern=xpath
  map:generate
 src=xmldb:xindice://localhost:4080/db/{../1}#{1}/
  map:serialize type=xml/
/map:match
map:generate src=xmldb:xindice://localhost:4080/db/{1}/
map:serialize type=xml/
  /map:match


But I'd also like to be able to respond to URLs like this since this is a 
bit more secure.


http://myserver:8080/cocoon/asubdir/reviewbytitle/Dune

This is what I tried.

!-- these don't work yet. --
map:match pattern=reviewbytitle/**
  map:generate 
src=xmldb:xindice://localhost:4080/db/reviews/#?xpath=//review[contains(title,'{1}')]/
 map:serialize type=xml/
/map:match


I get back an empty result set

?xml version=1.0 encoding=UTF-8?
collection:results query=?xpath=//review[contains(title,'Dune')] 
resources=0 xmlns:collection=http://apache.org/cocoon/xmldb/1.0/

Can you see what I am doing wrong? I guess it is something to do with the 
bit before xpath

In case it wasnt obvious I have a collection called reviews. Each of the 
documents in it has one review section, and there is a title tag in 
the review.


(I was using the following page to help me
http://www.cocooncenter.de/cc/documents/resources/xindice/index.html
)

Alex










Openweb Analysts Ltd, London: Software For Complex Websites 
http://www.OWAL.co.uk/
Free Consultancy for London Companies thinking of Open Source Software.


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




free hosting cocoon

2002-04-13 Thread Pawe Sadowski

www.mycgiserver.com

nice place for getting start with cocoon:-)


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]