Re: XSLT Transformation error in C2.2

2008-02-07 Thread Joerg Heinicke
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

Re: XSLT Transformation error in C2.2

2007-09-17 Thread Sébastien Geindre
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

Re: XSLT Transformation error in C2.2

2007-09-11 Thread Tobia Conforto
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

Re: XSLT Transformation error in C2.2

2007-09-11 Thread Askild Aaberg Olsen
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:

Re: XSLT Transformation error in C2.2

2007-09-11 Thread Sébastien Geindre
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 ??

Re: XSLT Transformation error in C2.2

2007-09-11 Thread Sébastien Geindre
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:

Re: XSLT transformation

2005-08-05 Thread Upayavira
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

RE: XSLT transformation

2005-08-05 Thread Antony Grinyer
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

Re: XSLT transformation

2005-08-04 Thread Upayavira
, 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

Re: XSLT transformation

2005-08-04 Thread Upayavira
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

RE: XSLT transformation

2005-08-04 Thread Antony Grinyer
). 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

Re: XSLT transformation

2005-08-04 Thread Upayavira
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

RE: XSLT transformation

2005-08-04 Thread Antony Grinyer
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

RE: XSLT transformation

2005-08-04 Thread Antony Grinyer
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

Re: XSLT transformation

2005-08-04 Thread Upayavira
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)

RE: XSLT transformation

2005-08-04 Thread Conal Tuohy
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/

Re: XSLT transformation

2005-08-03 Thread Jörn Heid
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

RE: XSLT transformation

2005-08-03 Thread Antony Grinyer
: 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

RE: XSLT transformation

2005-08-03 Thread Antony Grinyer
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

Re: XSLT transformation

2005-08-03 Thread Mark Lundquist
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

Re: XSLT transformation

2005-08-03 Thread 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/showsyscontainer.xml/ map:transform type=bdbxml/ map:serialize type=xml

Re: XSLT Transformation and namespaces issue

2004-07-14 Thread Nick
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

RE: XSLT Transformation and namespaces issue

2004-07-14 Thread Conal Tuohy
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

RE: XSLT Transformation and namespaces issue

2004-07-13 Thread Conal Tuohy
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!