living without the document() function?

2003-06-24 Thread Dominic Chambers
I have been having problems with caching and the XSLT document function,
and have read that the document function is a 'bad thing'(tm) anyway.
Generally I have been using XInclude for this purpose, but I also allow
my pages to refer to a site template that they should be rendered
within, and I use the document function within XSLT to allow the
template to be loaded first, and then slot parts of the original page
back in as needed.

This is a much happier arrangement then spliting the template page into
segments, and calling the bits from each page. Perhaps somebody with
experience in this area could say if there is another way of doing this
without XSLT?



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



Document function

2003-06-09 Thread Ali Mesbah
Hi all,
I'm getting a strange XML Parsing Error: syntax error from Cocoon while I try
to transform an XML document with an XSLT which uses the Document function. 

XSLT (metaoutput.xsl):
?xml version=1.0 encoding=UTF-8?

xsl:stylesheet version=1.0
  xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
  xsl:output method=xml indent=yes/
  xsl:strip-space elements=*/

  xsl:variable name='fileurl' select='mapping/vorm.xml'/
  xsl:variable name='mapping' select='document($fileurl)/mapping'/

 ...

Error:
XML Parsing Error: syntax error
Location: http://localhost:/metaoutput
Line Number 2, Column 1:

There is no Error message logged. This is what I get on the browser. 
Does it have something to do with Xalan? Any ideas?

Thanks,
Ali

-- 
-- Ali Mesbah, West Consulting B.V., www.west.nl, +31 15 2191600

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



Re: Document function

2003-06-09 Thread Alexander Schatten
Ali Mesbah wrote:

Hi all,
I'm getting a strange XML Parsing Error: syntax error from Cocoon while I try
to transform an XML document with an XSLT which uses the Document function. 
 

I am not very sure about it, but as far as I remember: the document 
function does not work with Cocoon, and, btw, it is not necessary either.

have a look at the XInclude and CInclude Trasformers for example

alex

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


Re: Document function

2003-06-09 Thread Joerg Heinicke
Hello Ali,

what Cocoon version do you use - or if you know, do you use XSLTC or 
Xalan? There seems to be a bug for top level xsl:variable and document() 
when using XSLTC: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20381.

XSLTC is the default processor in 2.1, while it is Xalan in 2.0. You can 
switch between both.

Joerg

Ali Mesbah wrote:
Hi all,
I'm getting a strange XML Parsing Error: syntax error from Cocoon while I try
to transform an XML document with an XSLT which uses the Document function. 

XSLT (metaoutput.xsl):
?xml version=1.0 encoding=UTF-8?
xsl:stylesheet version=1.0
  xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
  xsl:output method=xml indent=yes/
  xsl:strip-space elements=*/
  xsl:variable name='fileurl' select='mapping/vorm.xml'/
  xsl:variable name='mapping' select='document($fileurl)/mapping'/
 ...

Error:
XML Parsing Error: syntax error
Location: http://localhost:/metaoutput
Line Number 2, Column 1:
There is no Error message logged. This is what I get on the browser. 
Does it have something to do with Xalan? Any ideas?

Thanks,
Ali


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


Re: Document function

2003-06-09 Thread Joerg Heinicke
Hello Alexander,

that's not /really/ true ;-) document() works, but there are some issues 
with it like the caching bug: 
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10203.

Joerg

Alexander Schatten wrote:
Ali Mesbah wrote:

Hi all,
I'm getting a strange XML Parsing Error: syntax error from Cocoon 
while I try
to transform an XML document with an XSLT which uses the Document 
function.  

I am not very sure about it, but as far as I remember: the document 
function does not work with Cocoon, and, btw, it is not necessary either.

have a look at the XInclude and CInclude Trasformers for example

alex


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


Re: Document function

2003-06-09 Thread ali
Hello Joerg,
I am using 2.1 and indeed XSLTC is the default processor.
I changed it to Xalan and it works great. Thanks alot.

Ali

 what Cocoon version do you use - or if you know, do you use XSLTC or
 Xalan? There seems to be a bug for top level xsl:variable and document()
  when using XSLTC:
 http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20381.

 XSLTC is the default processor in 2.1, while it is Xalan in 2.0. You can
  switch between both.

 Joerg

 Ali Mesbah wrote:
 Hi all,
 I'm getting a strange XML Parsing Error: syntax error from Cocoon
 while I try to transform an XML document with an XSLT which uses the
 Document function.

 XSLT (metaoutput.xsl):
 ?xml version=1.0 encoding=UTF-8?

 xsl:stylesheet version=1.0
   xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
   xsl:output method=xml indent=yes/
   xsl:strip-space elements=*/

   xsl:variable name='fileurl' select='mapping/vorm.xml'/
   xsl:variable name='mapping' select='document($fileurl)/mapping'/

  ...

 Error:
 XML Parsing Error: syntax error
 Location: http://localhost:/metaoutput
 Line Number 2, Column 1:

 There is no Error message logged. This is what I get on the browser.
 Does it have something to do with Xalan? Any ideas?

 Thanks,
 Ali


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




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



requests with document function

2002-06-21 Thread Johannes Koch

Cocoon 2.0.2/Tomcat 4.0.1/Java1.3.1_01
In an XSLT stylesheet I have the following template:

xsl:template match=foo
   xsl:variable name=bar 
select=document('http://www.xyz.org/bla.xml')/fasel/
   xsl:variable name=hasGrmpf select=boolean($bar/grmpf)/
   xsl:apply-templates select=$bar/grmpf/
   ...
/xsl:template

The template is called only once.

According to the server log, this results in 5 GET requests for 'bla.xml':
2 for $bar, 2 for $hasGrmpf and 1 for apply-templates.

If I change the template to
   xsl:variable name=bar 
select=document('http://www.xyz.org/bla.xml')/
(without root element at the end of the XPath expression), I have 4 
requests.
If, additionally, I change it to
   xsl:variable name=hasGrmpf select=boolean($bar)/
(without the '/grmpf'), I have 3 requests.

I would have expected to have only one request (for the document 
function). Can somebody explain the five requests?
-- 
Johannes Koch  . IT Developer
Pixelpark AG   . http://www.pixelpark.com
Rotherstraße 8 . 10245 Berlin  .  Germany
phone: +49 30 5058 - 1288  .  fax: - 1355


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

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




Re: requests with document function

2002-06-21 Thread Johannes Koch

Johannes Koch wrote:
 Cocoon 2.0.2/Tomcat 4.0.1/Java1.3.1_01
 In an XSLT stylesheet I have the following template:
 
 xsl:template match=foo
   xsl:variable name=bar 
 select=document('http://www.xyz.org/bla.xml')/fasel/
   xsl:variable name=hasGrmpf select=boolean($bar/grmpf)/
   xsl:apply-templates select=$bar/grmpf/
   ...
 /xsl:template
 
 The template is called only once.
 
 According to the server log, this results in 5 GET requests for 'bla.xml':
 2 for $bar, 2 for $hasGrmpf and 1 for apply-templates.

Correction: 6 GET requests:
2 for $bar, 3 for $hasGrmpf and 1 for apply-templates.

If I change the template to
   xsl:variable name=hasGrmpf select=boolean($bar)/
(without the '/grmpf'), I have 4 requests.

I would have expected to have only one request (for the document
function). Can somebody explain the six requests?

-- 
Johannes Koch  . IT Developer
Pixelpark AG   . http://www.pixelpark.com
Rotherstraße 8 . 10245 Berlin  .  Germany
phone: +49 30 5058 - 1288  .  fax: - 1355


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

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




document() function calling external file twice

2002-04-16 Thread Yap, Mow Ching (Gamer.tv)

has anyone else experienced this problem whereby using the document()
function calls the external file twice. specifically, this happens when the
document call is used as part of an XPATH expression to match a node in the
external document.

i.e.

this calls the external doc once.

xsl:apply-templates select=document('cocoon:/file.xml') mode=doc/

whereas this calls external doc twice!

xsl:apply-templates select=document('cocoon:/file.xml')/collection
mode=doc/

any insight appreciated.

cheers,
mooch.



DISCLAIMER - The preceding e-mail message (including any attachments)
contains information that may be confidential, may be protected by the
attorney-client or other applicable privileges, or may constitute non-public
information.  It is intended to be conveyed only to the designated
recipient(s) named above.  If you are not an intended recipient of this
message, please notify the sender by replying to this message and then
delete all copies of it from your computer system.  Any use, dissemination,
distribution, or reproduction of this message by unintended recipients is
not authorized and may be unlawful. The contents of this communication do
not necessarily represent the views of this company.

-
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: problem with xml document() function

2001-09-13 Thread Mamadou Bobo Sylla

Thank you,
This has solved my problem.
Bobo,
- Original Message -
From: Jörg Heinicke [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, September 13, 2001 6:02 PM
Subject: Re: problem with xml document() function


 The problem is to be searched in your XPATH-expressions in your
stylesheet.
 In your variable $menu the whole structure of menu.xml is stored, i.e.
 inclusive menu, standard and so on. With $menu/@href you will get the
 href-attribute of the root - there is non!
 You must delete the $menu if you have already matched on the right
elements:

 xsl:variable name=menu select=document('menu-admin.xml')/
   xsl:template name=getStandardLinks tr
TD height=18 bgcolor=#295A84 width=135xsl:call-template
 name=teethIMG/br/

 b
  font color=#FF size=1
   xsl:value-of select=$menu/menu/standard/@s-header/
  /font
 /b
/TD
   /tr

   xsl:for-each select=$menu//standard-link
tr
 TD  height=18 bgcolor=#D5D9E1 width=135
  A HREF={@href}
   b
font size=1 color=#00
 xsl:value-of select=@value/
/font
   /b
  /A
 /TD
/tr
   /xsl:for-each
 /xsl:template

 Regards,

 Joerg

 Mamadou Bobo Sylla wrote:
  Hello people.
  I am having problem using document(). Here is the situation:
  My menu.xml and remove-user.xml are in the same directory.
  I don't get any result when I call  menu.xml inside remove-user.xsl by
using
  document(menu.xml).
  If I try document('menu.xml','/C:/cocoon/xml/admin'), only STANDARD
  FUNCTIONS will be displayed.
 
  Well I need your help.Thank you in advance.
 
  Here is my menu.xml
  -
  menu
  standard s-header=STANDARD FUNCTIONS 
standard-link href=/ILS/under_construction.html
value=SEARCH/
!--standard-link href=/ILS/xml/user/faq.xml value=VIEW FAQ/
standard-link href=/ILS/xsp/admin/profile.xml value=MY
PROFILE/
standard-link href=/ILS/xml/search/search.xml
value=SEARCH/--
   /standard
  /menu
  -
  Here is my remove-user.xml:
  -
  ?xml version=1.0?
  ?cocoon-process type=xslt?
  ?xml-stylesheet href=../../xsl/admin/remove-user-form.xsl
type=text/xsl
  remove-user-form
  title ILS - REMOVING USER /title
  headerREMOVING USER FROM ILS/header
  guideEnter the user ID that you intend to remove from ILS./guide
  admin-menu/
  /remove-user-form
  --
  Here is my remove-user.xsl:
  --
  xsl:variable name=menu select=document('menu-admin.xml')/
   xsl:template name=getStandardLinks tr
 TD height=18 bgcolor=#295A84 width=135xsl:call-template
  name=teethIMG/br/
 
  b
   font color=#FF size=1
xsl:value-of select=$menu//@s-header/
   /font
  /b
 /TD
/tr
 
   xsl:for-each select=$menu//standard-link
 
tr
 TD  height=18 bgcolor=#D5D9E1 width=135
  A HREF={$menu/@href}
   b
font size=1 color=#00
 xsl:value-of select=$menu/@value/
/font
   /b
  /A
 /TD
/tr
 
   /xsl:for-each
   /xsl:template
  
  Bobo


 -
 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]




problem with xml document() function

2001-09-12 Thread Mamadou Bobo Sylla

Hello people.
I am having problem using document(). Here is the situation:
My menu.xml and remove-user.xml are in the same directory.
I don't get any result when I call  menu.xml inside remove-user.xsl by using
document(menu.xml).
If I try document('menu.xml','/C:/cocoon/xml/admin'), only STANDARD
FUNCTIONS will be displayed.

Well I need your help.Thank you in advance.

Here is my menu.xml
-
menu
standard s-header=STANDARD FUNCTIONS 
  standard-link href=/ILS/under_construction.html value=SEARCH/
  !--standard-link href=/ILS/xml/user/faq.xml value=VIEW FAQ/
  standard-link href=/ILS/xsp/admin/profile.xml value=MY PROFILE/
  standard-link href=/ILS/xml/search/search.xml value=SEARCH/--
 /standard
/menu
-
Here is my remove-user.xml:
-
?xml version=1.0?
?cocoon-process type=xslt?
?xml-stylesheet href=../../xsl/admin/remove-user-form.xsl type=text/xsl
remove-user-form
title ILS - REMOVING USER /title
headerREMOVING USER FROM ILS/header
guideEnter the user ID that you intend to remove from ILS./guide
admin-menu/
/remove-user-form
--
Here is my remove-user.xsl:
--
xsl:variable name=menu select=document('menu-admin.xml')/
 xsl:template name=getStandardLinks tr
   TD height=18 bgcolor=#295A84 width=135xsl:call-template
name=teethIMG/br/

b
 font color=#FF size=1
  xsl:value-of select=$menu//@s-header/
 /font
/b
   /TD
  /tr

 xsl:for-each select=$menu//standard-link

  tr
   TD  height=18 bgcolor=#D5D9E1 width=135
A HREF={$menu/@href}
 b
  font size=1 color=#00
   xsl:value-of select=$menu/@value/
  /font
 /b
/A
   /TD
  /tr

 /xsl:for-each
 /xsl:template

Bobo,



-
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: [C2b2] document() function not working?

2001-08-22 Thread Christopher Painter-Wakefield


If you are getting nothing back when you use the document() function, make
sure the file you are opening with document() is valid XML.  I found out
the hard way that document() fails silently (at least in Cocoon 1.8.2) when
the XML is bad.  Try opening the XML document in IE or something like that
to make sure it parses successfully.

If this is still true in C2, it might make a good FAQ entry.

-Christopher



-
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]




[Fwd: Re: [C2b2] document() function not working?]

2001-08-22 Thread Jörg Heinicke

Hi,

I'm one step further!! The problem: I looked in the wrong logfile. In the 
logfile for Tomcat there is written nearly the same as for Cocoon, but no 
errors ;-)
Now I could change the link to the called XML-file. But there is still a 
problem:

javax.xml.transform.TransformerException: Can not load requested doc: home
 at org.apache.xalan.templates.FuncDocument.warn(FuncDocument.java:448)
 at 
org.apache.xalan.templates.FuncDocument.getDoc(FuncDocument.java:385)
 at 
org.apache.xalan.templates.FuncDocument.execute(FuncDocument.java:221)
 at org.apache.xpath.Expression.asIterator(Expression.java:261)
 at 
org.apache.xpath.axes.FilterExprWalker.setRoot(FilterExprWalker.java:156)
 at 
org.apache.xpath.axes.WalkingIteratorSorted.reset(WalkingIteratorSorted.java:164) 


What does this mean? What are the possible errors?

Regards,

Joerg



 Original-Nachricht 
Betreff: Re: [C2b2] document() function not working?
Datum: Wed, 22 Aug 2001 17:22:38 +0200
Von: Jörg Heinicke [EMAIL PROTECTED]
An: [EMAIL PROTECTED]
Referenzen: [EMAIL PROTECTED]

Hi Christopher,

thanks for your reply, but it must be another problem. I tested the
stylesheet with all the XML-files on the commandline with Ant/Xalan and
without Cocoon - it works fine. But I want to use Cocoon for doing this
transformation on the fly.

For the document()-function I have a question: Will the called XML-file
handled by the sitemap ( - So do I need a correct matcher in it?  -
inclusive link-resolving? ) e.g. like a HTML-redirect for JPGs/GIFS or does
it work completely without Cocoon (direct access to the XML-file)? I think
that I tested all possibilities, but I had no success.

I also searched the logfiles - no success. No error messages from document().

Regards,

Joerg


-
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: [C2b2] document() function not working?

2001-08-22 Thread Wes Morgan

Yes, I solved the problem. I hadn't realized that the path needed to be 
relative to the stylesheet (kind of a no-brainer in retrospect).

Wes Morgan

Jörg Heinicke wrote:

 Hello Wes,

 did you solve your problem? I also have my problem with this function, 
 equal to relative/absolute path and so on, it seems to me, that the 
 document()-function doesn't work.

 Best proof:
 class
   a href={$from-path}xsl:value-of select=$from-path//a
   xsl:variable name=test select=document('Object.xml')/test/@test/
   bxsl:value-of select=$test//b
 /class

 I won't get my a href=/a in the output-document, if it is 
 written after the xsl:variable .. /. And I don't get neither the b 
 nor the value of $test.

 I work with C2b2, Tomcat 3.2.3 and Sun JDK 1.3.

 What could be the problem or a workaround?

 Joerg


  Subject:
  [C2b2] document() function not working?
  From:
  Wes Morgan [EMAIL PROTECTED]
  Date:
  Thu, 02 Aug 2001 10:08:36 -0400
  To:
  [EMAIL PROTECTED]
 
  Has anyone successfully used the document('otherfile.xml') function 
 to  access nodes in a different XML file from within an XSLT 
 stylesheetunder Cocoon2 beta1 or 2? It seems to be unimplemented 
 right now, but  I can't tell for sure if it's just because I'm using 
 it incorrectly.   If you have gotten it to work, could you post your 
 working code?   Thanks.
 
  Wes Morgan
 
 
 
  Subject:
  Re: [C2b2] document() function not working?
  From:
  [EMAIL PROTECTED] (Rajkumar, Joseph)
  Date:
  Thu, 02 Aug 2001 11:31:23 -0400
  To:
  [EMAIL PROTECTED]
 
  Hi Wes
 
  Yes, I have used the document('otherfile.xml') and it works under   
 cocoon2.
 
  Put the file 'otherfile.xml' in the same directory in which you have 
   your xsl file or give the relative path to 'otherfile.xml' relative
  to the directory where you have your 'xsl' file.
 
  Regards
  Joseph Rajkumar
 
 
  Wes Morgan wrote:
 
 
   Has anyone successfully used the document('otherfile.xml') function
   to access nodes in a different XML file from within an XSLT
   stylesheet under Cocoon2 beta1 or 2? It seems to be unimplemented
   right now, but I can't tell for sure if it's just because I'm using
   it incorrectly. If you have gotten it to work, could you post your
   working code? Thanks.
  
   Wes Morgan


 -
 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]




Re: Java variable inside of document() function?

2001-08-16 Thread Christopher Painter-Wakefield


Martin,

first, are you trying to do this in a logicsheet or in a stylesheet?  In a
logicsheet, this won't work because your logicsheet exists to generate Java
code.  The Java code doesn't exist and hasn't been compiled and can't run
yet.  Only your XSL transformations are being applied.  The xsl:for-each
select=document([the Java variable]) can't use the value stored in the
Java variable, because it doesn't exist yet.

In a stylesheet, you can't do this, because you can't use XSP Java code in
a stylesheet.  It is too late.  All XSP code has already been run,
producing XML which is being processed by your stylesheet.  You can,
however, do this:

In your XML file:
...
xsp:logic
!-- do something here to set your variable, e.g. --
String doc = info.xml;
/xsp:logic

docxsp:exprdoc/xsp:expr/doc
...

then in your XSL stylesheet:
xsl:variable name=thefile select=doc/
xsl:for-each select=document($thefile)
...

-Christopher




Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:

Subject:  Java variable inside of document() function?


How can I use a Java variable in the document() funkction?

i.e.
xsl:for-each select=document([the Java variable])
 ...
/xsl:for-each

I have tried it with the help of

xsl:variable name=srcxsp:expr[the Java
variable]/xsp:expr/xsl:variable
xsl:for-each select=document([$src])
 ...
/xsl:for-each

but this doesn't work. xsp:expr/ won't be processed and so the value of
$name is
the String src. When I use xsp:exprsrc/xsp:expr outside of
xsl:variable/ it
works fine.

How can I solve this problem? Is there any workaround?

Thanks,
Martin





-
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: [C2b2] document() function not working?

2001-08-02 Thread Rajkumar, Joseph

Hi Wes

Yes, I have used the document('otherfile.xml') and it works
under cocoon2.

Put the file 'otherfile.xml' in the same directory in which you
have your xsl file or give the relative path to 'otherfile.xml' relative
to the directory where you have your 'xsl' file.

Regards
Joseph Rajkumar


Wes Morgan wrote:

 Has anyone successfully used the document('otherfile.xml') function to
 access nodes in a different XML file from within an XSLT stylesheet
 under Cocoon2 beta1 or 2? It seems to be unimplemented right now, but I
 can't tell for sure if it's just because I'm using it incorrectly. If
 you have gotten it to work, could you post your working code? Thanks.

 Wes Morgan

 -
 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]




Re: Document() function

2001-05-30 Thread paint007


yes, this can be very frustrating.

Would some working sample code help?  You can start with a working sample
and make small changes until you have what you need.  Here's some stuff I
made from my own working code.  It doesn't do much, but it works (at least
in 1.8.2).

-Christopher

(See attached file: extra.xml)(See attached file: test.xml)(See attached
file: test.xsl)




Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:

Subject:  Re: Document() function


I have just checked out cocoon2 today and suffer the same problem.
document() returns nothing.

 Also, be sure there are no errors in your Users.xml file.  I have found
out
 the hard way that Cocoon silently returns nothing from document() if the
 XML file has any errors (e.g., is not well formed.)  This can be very
 frustrating, since you can spend a lot of time trying to figure out
whether
 your document() syntax is correct.

I think my files are correct and they are all in the same directory.
But I cannot really find out what's going wrong because there is never an
error message - even if the requested file indeed does not exist :-(

- Stefan





 extra.xml
 test.xml
 test.xsl

-
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]