cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bentley, Tim" <TIM.BENT...@ca.com>
Subject RE: Why doesn't Cocoon2 recognize [position() &lt; last()] ??
Date Fri, 17 Aug 2001 07:21:28 GMT
Xalan is included in the C2 jar - so you do have it.  I don't think C2 will
work without it - I don't think the sitemap can be compiled without it.

Xalan is an XSL processor, and I guess is a complement to Xerces, which is
an XML parser.  Both support standard interfaces, which is what Cocoon uses
to talk to them.  Therefore they can be replaced by other, equivalent,
libraries which use the same interfaces.  Indeed some people are using
Cocoon with Saxon which is supposed to be quicker.

What John was pointing out is that the XSl transformation process is handled
entirely by Xalan (in the standard install), so that if there is a bug or
non-standard behaviour, it is a problem with Xalan.  There is a Xalan
mailing list (Xalan is another Apache project) where you can post to find
out.  If it is a bug, I'm sure they will be keen to hear about it.

Hope this helps!


Regards,


Tim Bentley

> -----Original Message-----
> From: Hewko, Doug [mailto:Doug.Hewko@ccra-adrc.gc.ca]
> Sent: Friday, 17 August 2001 5:26 AM
> To: 'cocoon-users@xml.apache.org'
> Cc: 'John.Morrison@uk.experian.com'
> Subject: RE: Why doesn't Cocoon2 recognize [position() &lt; last()] ??
> 
> 
> Sure, that would be great. As I've said before, I am new to 
> all of this,
> especially setting up a server. It was a major accomplishment 
> just getting
> Tomcat to work. :)
> 
> The only things I installed was JDK 1.3.1 (which will not 
> have an impact
> here) and Xerces, which I installed so I can create XML 
> documents. (Primarly
> for the new people and to correct any errors I may have, 
> Xerces in a XML
> parser.) On my failed attempt for Cocoon1, I did install 
> Xalan (because it
> sounded good) but since my XML and XSL works fine without it, I didn't
> bother for Cocoon2. 
> 
> This is probably a very stupid question, but how would one 
> know what add-ons
> are required? Assuming that I need Xalan, how would you know 
> given my other
> XSL transformations work? And I am having another XSL problem 
> (tables in
> FO), so how would I know what to install? I do not want to install
> everything blindly, nor do I yet intuitively know what does 
> what. This might
> be beyond the scope of this list, and if so, please respond 
> privately but I
> suspect others may benefit from the discussion.
> 
> Thanks for your help.
> 
> -----Original Message-----
> From: Morrison, John [mailto:John.Morrison@uk.experian.com]
> Sent: August 16, 2001 7:21 AM
> To: 'cocoon-users@xml.apache.org'
> Subject: RE: Why doesn't Cocoon2 recognize [position() &lt; last()] ??
> 
> 
> Cocoon itself doesn't understand xml.  All it knows is how to 
> hand it off to
> a parser/transformer.  There _may_ be some settings which can 
> be sent to
> xalan which Cocoon doesn't know/send, if you can tell us what 
> it is I'm sure
> we can accomodate it...?
> 
> If you look in the /lib directory you'll find all the jar files Cocoon
> relies on to work.  If you want more details find the 
> document 'jars' (xml
> in cvs, html when built, available on the website).
> 
> J.
> 
> > -----Original Message-----
> > From: Hewko, Doug [mailto:Doug.Hewko@ccra-adrc.gc.ca]
> > Sent: Thursday, 16 August 2001 12:17 pm
> > To: 'cocoon-users@xml.apache.org'
> > Subject: RE: Why doesn't Cocoon2 recognize [position() &lt; 
> last()] ??
> > 
> > 
> > I would like to find out why it doesn't work.. I am running 
> > Cocoon2. Why
> > would I need Xalan?  Cocoon should be able to handle the 
> code since it
> > handled everything else I've given it.
> > 
> > I do not understand John's question through. The output would 
> > be set from
> > the "sitemap.xmap". I just plugged in my XML and XSL there, 
> > and let Cocoon
> > do the work.
> > 
> > Is this a bug with Cocoon2?
> > 
> > -----Original Message-----
> > From: Morrison, John [mailto:John.Morrison@uk.experian.com]
> > Sent: August 13, 2001 10:49 AM
> > To: 'cocoon-users@xml.apache.org'
> > Subject: RE: Why doesn't Cocoon2 recognize [position() &lt; 
> last()] ??
> > 
> > 
> > Also, check versions - is C2 running with the version you 
> > manually generated
> > the output from?
> > 
> > > -----Original Message-----
> > > From: Stefan Seifert [mailto:sseifert@pro-vision.de]
> > > Sent: Monday, 13 August 2001 3:47 pm
> > > To: cocoon-users@xml.apache.org
> > > Subject: AW: Why doesn't Cocoon2 recognize [position() &lt; 
> > last()] ??
> > > 
> > > 
> > > Well, you should try it with xalan standalone, to make sure 
> > > thats really
> > > a cocoon and not a xalan bug.
> > > Im quite sure its a xalan bug, not from cocoon, because all XSLT
> > > processing is managed throgh xalan (as far as i know).
> > > 
> > > > -----Urspr√ľngliche Nachricht-----
> > > > Von: Hewko, Doug [mailto:Doug.Hewko@ccra-adrc.gc.ca]
> > > > Gesendet: Montag, 13. August 2001 16:42
> > > > An: Stefan Seifert
> > > > Betreff: RE: Why doesn't Cocoon2 recognize [position() &lt; 
> > > last()] ??
> > > > 
> > > > 
> > > > Thanks for the reply. FYI. From a XSL list which says that 
> > > > this is a Cocoon2
> > > > bug...
> > > > 
> > > > I get the following outputs.
> > > > 
> > > > Xalan:
> > > > 
> > > > 	Jeff/555-1234/555-4321/lightgrey&#13;
> > > > 	David/383-1234/383-4321/lightblue&#13;
> > > > 	Roger/888-1234/888-4321/lightyellow&#13;
> > > > 
> > > > MSXML:
> > > > 	Jeff/555-1234/555-4321/lightgrey
> > > > 	David/383-1234/383-4321/lightblue
> > > > 	Roger/888-1234/888-4321/lightyellow
> > > > 
> > > > I'm not sure why this isn't working for you. It may be a bug 
> > > > in Cocoon's
> > > > position() function. I don't have Cocoon here, but you might 
> > > > want to try
> > > > playing around with the predicate and see.
> > > > 
> > > > Also, the <xsl:text>&#xD;&#xA;</xsl:text> node inserts
> > > > carriage-return/line-feed characters, which are usually 
> > > stripped by a
> > > > browser, so <br/> is probably more appropriate for your 
> > environment.
> > > > 
> > > > hope this helps some...
> > > > 
> > > > -----Original Message-----
> > > > From: Stefan Seifert [mailto:sseifert@pro-vision.de]
> > > > Sent: August 13, 2001 10:37 AM
> > > > To: Hewko, Doug
> > > > Subject: AW: Why doesn't Cocoon2 recognize [position() &lt; 
> > > last()] ??
> > > > 
> > > > 
> > > > I think in this case, this is not a cocoon-bug, but a 
> > > xalan-bug (which
> > > > cocoon uses internally for XSLT), and xalan has its own 
> > > mailing lists,
> > > > too (see apache website).
> > > > 
> > > > Stefan
> > > 
> > > 
> > 
> ---------------------------------------------------------------------
> > > Please check that your question has not already been 
> answered in the
> > > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> > > 
> > > To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
> > > For additional commands, e-mail: 
> <cocoon-users-help@xml.apache.org>
> > > 
> > 
> > 
> > ==============================================================
> > =========
> > Information in this email and any attachments are 
> > confidential, and may
> > not be copied or used by anyone other than the addressee, nor 
> > disclosed
> > to any third party without our permission.  There is no intention to
> > create any legally binding contract or other commitment 
> > through the use
> > of this email.
> > 
> > Experian Limited (registration number 653331).  
> > Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF
> > 
> > 
> ---------------------------------------------------------------------
> > Please check that your question has not already been answered in the
> > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> > 
> > To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
> > For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
> > 
> > 
> ---------------------------------------------------------------------
> > Please check that your question has not already been answered in the
> > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> > 
> > To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
> > For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
> > 
> 
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
> 
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
> 

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message