Hi all :)
Can we use something like this
xsl:variable name=temp select=document('url')
To get external (internet url) xml data in xsl, without the cache problem in
the local path's ?
Thanks
Joao Cesar
[EMAIL PROTECTED]
Computer Science Student's @ University of Lisboa, PORTUGAL
In 2.1, you can use insert. In 2.0.4, you'll need use XSLT to merge the
data and then
write the whole file back to disc. Make sense?
Yeah... but that way I can do it grabbing the new data in the generator
pipeline, and in the transformer grab the local repository to merge with, or
grab the
Hi all :)
We have this code as below
map:match pattern=do-search
map:generate type=file src=xml/source-file.xml/
map:transform type=xslt src=xsl/search2xml.xsl/
map:transform type=tofile
map:parameter name=serializer value=xml/
/map:transform
map:redirect-to
Hi, first of all thanks for your answer :)
We we're able to do that this way:
?xml version=1.0?
xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
version=1.0
xsl:output method=xml/
xsl:variable name=emps select=document('employeeNames.xml')/
xsl:template match=/
I would suggest using an aggregator and avoiding the document() function
within
Cocoon. Cocoon will not know that you have referred to an external
document, and
thus will not take this into account when deciding whether to serve a
cached page or
not. Thus your employeeNames.xml file might
Hi all,
We're getting this error on sourcewrite transformer:
The src attribute doesn't resolve to a writeable source and failed to
cancel
The generator src is:
erro.xml:
?xml version=1.0?
page xmlns:source=http://apache.org/cocoon/source/1.0;
source:write
Hi, first of all thanks for your prompt answer :)
I've just changed to source:write src=repository/my.xml and the error
still remains, but after I analyse the XML displayed in the browser we see:
?xml version=1.0 encoding=UTF-8?
page xmlns:source=http://apache.org/cocoon/source/1.0;
if that
is it, but it is
worth a try.
Upayavira
On 4 Apr 2003 at 16:53, João César wrote:
Hi, first of all thanks for your prompt answer :)
I've just changed to source:write src=repository/my.xml and the
error still remains, but after I analyse the XML displayed in the
browser we see:
?xml
No, that is syntax for 2.1 AFAIK, not 2.0.4. You need source:write
src=... as
you had.
I've noticed that, because I've seen in some examples that they used other
notation, like source:source to represent that, but in fact, we're using
cocoon 2.0.4 + tomcat 4.1.
Believe me, it does get
thnks :)
It worked :)
Now I just have one question: I use the source:write tag to write to the
file, and overwriting it, but what if I want to append data to the existing
file ? Can i use the source:insert tag? Or is it another way to do it ?
It's late now here in Portugal, but tomorrow
Hi, after trying this {request:translate(query, '+', ' ')}, I don't get any
result from my search... I've tried to see if translate was working but with
no sucess..
What I'm trying to do is, parsing this querystring:
search?query=transgenic+rice
to:
map:generate type=file
11 matches
Mail list logo