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,
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";>
>>
&
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
. 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
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
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
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
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
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:
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
--
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
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
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
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
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
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
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
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
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
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
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
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?
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
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
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
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.
>
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
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
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
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
30 matches
Mail list logo