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,

Re: Document function

2003-06-09 Thread ali
sing Error: syntax error" from Cocoon >> while I try to transform an XML document with an XSLT which uses the >> Document function. >> >> XSLT (metaoutput.xsl): >> >> >> > xmlns:xsl="http://www.w3.org/1999/XSL/Transform";> >> &

Re: Document function

2003-06-09 Thread Joerg Heinicke
r: 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

Re: Document function

2003-06-09 Thread Joerg Heinicke
. 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): http://www.w3.org/199

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 w

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): http://www.w3.org/1999/XSL/Transform";> ... Error: XML Parsing Error

Re: requests with document function

2002-06-21 Thread J.Pietschmann
Vadim Gritsenko wrote: >>> >>select="document('http://www.xyz.org/bla.xml')/fasel"/> ... >>Correction: 6 GET requests: >>2 for $bar, 3 for $hasGrmpf and 1 for apply-templates. ... > My bet Xalan guys could try and explain this to you (you are using > Xalan, right?). Xalan bug #2425. Append a not

RE: requests with document function

2002-06-21 Thread Vadim Gritsenko
lates. > > Correction: 6 GET requests: > 2 for $bar, 3 for $hasGrmpf and 1 for apply-templates. > > If I change the template to > > (without the '/grmpf'), I have 4 requests. > > I would have expected to have only one request (for the document > function). Can s

Re: requests with document function

2002-06-21 Thread Johannes Koch
f'), 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:

requests with document function

2002-06-21 Thread Johannes Koch
ave 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 --

Re: document() function calling external file twice

2002-04-17 Thread Bruce G. Robertson
On Tue, Apr 16, 2002 at 06:24:54PM +0100, Yap, Mow Ching (Gamer.tv) wrote: > 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 mat

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. whereas this

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

Re: problem with xml document() function

2001-09-13 Thread Jörg Heinicke
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 , 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 m

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 "STANDAR

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

2001-08-22 Thread Wes Morgan
ive/absolute path and so on, it seems to me, that the > document()-function doesn't work. > > Best proof: > > > > > > > I won't get my .. in the output-document, if it is > written after the . And I don't get neither the > nor th

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

2001-08-22 Thread Jörg Heinicke
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 a

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

2001-08-22 Thread Jörg Heinicke
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

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

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

2001-08-22 Thread Jörg Heinicke
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: I won't get my .. in the output-document, if it is written after t

Re: Java variable inside of document() function?

2001-08-16 Thread Christopher Painter-Wakefield
ed by your stylesheet. You can, however, do this: In your XML file: ... String doc = "info.xml"; doc ... then in your XSL stylesheet: ... -Christopher Please respond to [EMAIL PROTECTED] To: <[EMAIL PROTECTED]> cc: Subject: Java variable inside of document() f

Java variable inside of document() function?

2001-08-16 Thread Martin Benda
How can I use a Java variable in the document() funkction? i.e. ... I have tried it with the help of [the Java variable] ... but this doesn't work. won't be processed and so the value of $name is the String "src". When I use src outside of it works fine. How can I solve this problem?

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 Rajk

[C2b2] document() function not working?

2001-08-02 Thread Wes Morgan
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 gott

Re: Document() function

2001-05-31 Thread Stefan Koehler
Hi Christopher, > 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). thank you very much for the example. No

Re: Document() function

2001-05-30 Thread paint007
pher (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. >

Re: Document() function

2001-05-30 Thread Stefan Koehler
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 form

Re: Document() function

2001-05-30 Thread paint007
your document() syntax is correct. -Christopher Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: Re: Document() function On Tuesday 29 May 2001 20:37, you wrote: > I tried to use something like that select="document(Users.xml)"/> but It dosen&#x

Re: Document() function

2001-05-29 Thread Christian Parpart
On Tuesday 29 May 2001 20:37, you wrote: > I tried to use something like that select="document(Users.xml)"/> but It dosen't work. you should write it in that way: because you need to set Users.xml in ' ', too. > Is it Cocoon that ignore document() fun

Document() function

2001-05-29 Thread Matteo Colombo
I tried to use something like that but It dosen't work. Is it Cocoon that ignore document() function? I'm asking that because it's a little bit strange, infact Cocoon use Xalan as XSLT processor, and with Xalan document() function works well. So where's the problem? Than