On 17.09.2007 09:02, Sébastien Geindre wrote:
Another question about xsl 1.0 :
why when i apply such template
xsl:template match=foo
foobis
xsl:attribute name=idbis select=@id/
/foobis
/xsl:template
on following xml :
foo id=long_id/
i obtain :
with xalan foobis idbis=/
with
Another question about xsl 1.0 :
why when i apply such template
xsl:template match=foo
foobis
xsl:attribute name=idbis select=@id/
/foobis
/xsl:template
on following xml :
foo id=long_id/
i obtain :
with xalan foobis idbis=/
with saxon foobis idbis=long_id/
it work with
Sébastien Geindre wrote:
I try to do this in a xslt stylesheet :
xsl:variable name=top select=if(($type='cb') and
($typeName!='wims:statusweatherproduct')) then 'max_fub' else 'top'/
if (...) then ... else ... is not an XPath 1.0 expression!
You have a few options.
One is to use standard
Sébastien Geindre wrote:
Hi all,
I use C2.2.
I try to do this in a xslt stylesheet :
xsl:variable name=top select=if(($type='cb') and
($typeName!='wims:statusweatherproduct')) then 'max_fub' else
'top'/xsl:variable
but cocoon refuses, and says :
Caused by:
Thanks Tobia,
I thought about these solution but i really wonder why it do not work
I think it is possible with xslt version 2.0
http://zvon.org/xxl/XSL-Ref/Tutorials/Conditional-Expressions/ce1.html
so what i need is a xslt 2.0 transformer.
the question is now, how can i set it with C2.2 ??
Askild Aaberg Olsen a écrit :
Sébastien Geindre wrote:
Hi all,
I use C2.2.
I try to do this in a xslt stylesheet :
xsl:variable name=top select=if(($type='cb') and
($typeName!='wims:statusweatherproduct')) then 'max_fub' else
'top'/xsl:variable
but cocoon refuses, and says :
Caused by:
snip/
Conal Tuohy wrote:
Upayavira wrote:
Your transformer is passing something down the pipeline as
null. This isn't tripping up the XML serializer, but is
tripping up the xslt transformer. Go through each of the
startElement, etc, calls within your transformer looking at
the output. See
the AbstractSAXTransformer class?
Thanks again,
Ant
-Original Message-
From: Upayavira [mailto:[EMAIL PROTECTED]
Sent: 05 August 2005 08:08 am
To: users@cocoon.apache.org
Subject: Re: XSLT transformation
snip/
Conal Tuohy wrote:
Upayavira wrote:
Your transformer is passing something
,
Ant
-Original Message-
From: Marc Salvetti [mailto:[EMAIL PROTECTED] Sent: 03 August 2005
06:26 pm
To: users@cocoon.apache.org
Subject: Re: XSLT transformation
You can just try the following pipe
map:match pattern=listcontainers
map:generate type=file src=content
Antony Grinyer wrote:
Hi,
A have a simple sitemap entry as below:
map:match pattern=listcontainers
map:generate type=file src=content/showsyscontainer.xml/
map:transform type=bdbxml/
map:transform type=xslt src=style/xsl/containerslist.xsl/
map:serialize type=html/
/map:match
The
).
Any ideas? It's driving me mad!
Thanks,
Ant
-Original Message-
From: Upayavira [mailto:[EMAIL PROTECTED]
Sent: 04 August 2005 08:57 am
To: users@cocoon.apache.org
Subject: Re: XSLT transformation
Antony Grinyer wrote:
Hi,
A have a simple sitemap entry as below
onto XSLT stylesheets (as opposed my java transformer
bdbxml).
Any ideas? It's driving me mad!
Thanks,
Ant
-Original Message-
From: Upayavira [mailto:[EMAIL PROTECTED]
Sent: 04 August 2005 08:57 am
To: users@cocoon.apache.org
Subject: Re: XSLT transformation
Antony Grinyer wrote
Message-
From: Upayavira [mailto:[EMAIL PROTECTED]
Sent: 04 August 2005 11:16 am
To: users@cocoon.apache.org
Subject: Re: XSLT transformation
Try upgrading to the latest Cocoon 2.1.X from Subversion.
There are some improvements there that get around a tendency
of Xalan to swallow
attributes -
assuming NO.org.xml.sax.SAXException: Saxon requires an XML parser that
reports the QName of each element'
Thanks,
Ant
-Original Message-
From: Antony Grinyer [mailto:[EMAIL PROTECTED]] Sent: 04 August 2005 11:32 am To:
users@cocoon.apache.org Subject: RE: XSLT transformati
Antony Grinyer wrote:
I seem to have got a bit further with this issue. I think it's a Xalan
problem so I configured Cocoon to use Saxon instead which gives me a bit
more error detail during the transformation:
INFO(2005-08-04) 18:50.52:052 [sitemap] (/kde/showsyscontainer)
Antony Grinyer wrote:
Hi,
A have a simple sitemap entry as below:
map:match pattern=listcontainers
map:generate type=file src=content/showsyscontainer.xml/
map:transform type=bdbxml/
map:transform type=xslt src=style/xsl/containerslist.xsl/
map:serialize type=html/
Just remember that XML Spy does not use the same XSLT transformer as Cocoon.
I think there is an error in your stylesheet. Try to comment out some
parts of it to find the lines which causes the error.
JOERN
Antony Grinyer schrieb:
Hi,
A have a simple sitemap entry as below:
map:match
: 03 August 2005 06:26 pm
To: users@cocoon.apache.org
Subject: Re: XSLT transformation
You can just try the following pipe
map:match pattern=listcontainers
map:generate type=file src=content/showsyscontainer.xml/
map:transform type=bdbxml/
map:serialize type=xml/
map:transform
Thanks Jorn - I tried commenting out almost everything in the stylesheet and I
still get the error...back to the drawing board.
Thanks,
Ant
-Original Message-
From: Jörn Heid [mailto:[EMAIL PROTECTED]
Sent: 03 August 2005 05:56 pm
To: users@cocoon.apache.org
Subject: Re: XSLT
error in the pipeline sample he
sent?
Invoking a serializer _always_ terminates the pipeline processing.
Thanks,
Ant
-Original Message-
From: Marc Salvetti [mailto:[EMAIL PROTECTED]
Sent: 03 August 2005 06:26 pm
To: users@cocoon.apache.org
Subject: Re: XSLT transformation
You can just
[mailto:[EMAIL PROTECTED]
Sent: 03 August 2005 06:26 pm
To: users@cocoon.apache.org
Subject: Re: XSLT transformation
You can just try the following pipe
map:match pattern=listcontainers
map:generate type=file src=content/showsyscontainer.xml/
map:transform type=bdbxml/
map:serialize type=xml
Hi Conal,
Thank you very much for your reply.
I don't know what your problem is, but maybe there's something wrong with your XSLT? The XSLT you posted is not a complete stylesheet - perhaps you could post it? Or at least, the start of it?
The XSLT transformation seem to be just fine.
XSLT
Hi Nick. Your sample XML looks good to me (though don't you also need the topic map
namespace http://www.topicMaps.org/xtm/1.0/;?)
The xlink ns prefix is there so there's no good reason for the update to fail. A
namespace declared on the root element is in scope throughout the document. This
Hi Nick
I don't know what your problem is, but maybe there's something wrong with your XSLT?
The XSLT you posted is not a complete stylesheet - perhaps you could post it? Or at
least, the start of it?
PS Interesting to see people using Topic Maps with Cocoon!
24 matches
Mail list logo