RE: Using docbook chunk.xsl with cocoon
Hi Jeff, I'm not sure that XPathTransformer does exactly what I need. Basically chunk.xsl breaks an xml file to varying depths (user specified) for my case it breaks the document into chapters. When I transform an xml document from the command line using xalan it puts each chapter into a seperate file and creates an index for each chapter and at the begining an overall index for the document. It also creates next and previous tabs to traverse the document. Correct me if I'm wrong but using XPathTransformer I'd have to convert to a single document and specify a different url filter for each chapter. Idealy what I want is a way to get cocoon to convert the xml document using chunk.xsl without modification but I accept that this probably isn't possible. As I'm completly new to cocoon I have no idea if this is possible any ideas? cheers Jerome -Original Message- From: Jeff Turner [mailto:[EMAIL PROTECTED]] Sent: Saturday, 25 January 2003 3:13 PM To: '[EMAIL PROTECTED]' Subject: Re: Using docbook chunk.xsl with cocoon On Fri, Jan 24, 2003 at 04:45:43PM +1000, Jerome Paul wrote: Hi, I'm trying to convert xml documents using docbook-xsl-1.58.1\html\chunk.xsl with tomcat 4.0 and cocoon 2.0.4 windows 2000. Anyway the conversion takes a while (it's converting a decent sized xml document) when the conversion stops Internet explorer displays nothing when using the standard html\docbook.xsl it work fine. I'm pretty sure that the error is with the chunk.xsl because it's been hardcoded to write to the hdd and the way it actually creates many web pages instead of a single page. Has anyone else had this problem? what's the solution that other people have used? Er.. what does chunk.xsl do? The one on my hdd doesn't seem to write to disk.. Would I be correct in guessing that chunk.xsl breaks a large Docbook file into chapters or something? If so, you could use the XPathTransformer in Cocoon bugzilla to achieve the same thing. that's how I generated the chapter views of a single XML file user manual at: http://aft.sourceforge.net/manual/ I can post details if that's the problem you're trying to solve. --Jeff any help would be greatly appreciated Jerome - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using docbook chunk.xsl with cocoon
Hi Jerome, you are right, XPathTransformer won't fit your requirements. I use some stylesheets with xalan:redirect extension for debugging outputs, so there should not be a problem in general. But I don't know the exact implementation/usage of xalan redirect in DocBook xsl. I can imagine that no output is created from the transformation itself, but only to xalan redirect. This means you have no response to send to the client. But why using chunk.xsl on the fly? Are these dynamic data? We use it for online help for example and the chunk.xsl is used at build time, not at request/run time. Regards, Joerg Jerome Paul wrote: Hi Jeff, I'm not sure that XPathTransformer does exactly what I need. Basically chunk.xsl breaks an xml file to varying depths (user specified) for my case it breaks the document into chapters. When I transform an xml document from the command line using xalan it puts each chapter into a seperate file and creates an index for each chapter and at the begining an overall index for the document. It also creates next and previous tabs to traverse the document. Correct me if I'm wrong but using XPathTransformer I'd have to convert to a single document and specify a different url filter for each chapter. Idealy what I want is a way to get cocoon to convert the xml document using chunk.xsl without modification but I accept that this probably isn't possible. As I'm completly new to cocoon I have no idea if this is possible any ideas? cheers Jerome -Original Message- From: Jeff Turner [mailto:[EMAIL PROTECTED]] Sent: Saturday, 25 January 2003 3:13 PM To: '[EMAIL PROTECTED]' Subject: Re: Using docbook chunk.xsl with cocoon On Fri, Jan 24, 2003 at 04:45:43PM +1000, Jerome Paul wrote: Hi, I'm trying to convert xml documents using docbook-xsl-1.58.1\html\chunk.xsl with tomcat 4.0 and cocoon 2.0.4 windows 2000. Anyway the conversion takes a while (it's converting a decent sized xml document) when the conversion stops Internet explorer displays nothing when using the standard html\docbook.xsl it work fine. I'm pretty sure that the error is with the chunk.xsl because it's been hardcoded to write to the hdd and the way it actually creates many web pages instead of a single page. Has anyone else had this problem? what's the solution that other people have used? Er.. what does chunk.xsl do? The one on my hdd doesn't seem to write to disk.. Would I be correct in guessing that chunk.xsl breaks a large Docbook file into chapters or something? If so, you could use the XPathTransformer in Cocoon bugzilla to achieve the same thing. that's how I generated the chapter views of a single XML file user manual at: http://aft.sourceforge.net/manual/ I can post details if that's the problem you're trying to solve. --Jeff - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using docbook chunk.xsl with cocoon
On Sun, Jan 26, 2003 at 10:03:10AM +0800, Perry Molendijk wrote: I can post details if that's the problem you're trying to solve. Jeff that would be great if you could post this. (sorry for the delay) I used something close to this: map:transformers ... map:transformer name=xpath logger=sitemap.transformer.xpath src=org.apache.cocoon.transformation.XPathTransformer / /map:transformers ... map:match pattern=manual/*.xml map:generate src=content/xdocs/manual.xml/ map:transform src=resources/stylesheets/docbook2document.xsl/ map:transform type=xpath map:parameter name=include value=document/header | document/body/section[title='{1}']/ /map:transform map:transform src=resources/stylesheets/localizeheader.xsl/ map:serialize type=xml/ /map:match Where 'localizeheader.xsl' fixes the title: xsl:template match=header/title titlexsl:value-of select=/document/body/section/title//title /xsl:template Actual sitemap + transformer available with: export CVSROOT=:pserver:[EMAIL PROTECTED]:/cvsroot/aft cvs login cvs co Anteater/src/documentation --Jeff Thanks Perry Molendijk - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Using docbook chunk.xsl with cocoon
Hi Joerg, Currently I have an ant build convert the xml documents and place them in the correct place of the web server but adding new documents to this list is time consuming and can only really be done by a couple of people here, as you have to modify the build file. Adding new conversion pipelines is even more awkward. So I was looking at cocoon to make the job easier, simply dump new xml documents into a folder, specify the url and away you go. But I can only really do this if I can keep the same look and feel of the documents as when their created using ant. I'll do some investigation and see what redirect gives me but I was hoping to use chunk.xsl because it automates so much of the linking between chapters. Well if anyone knows an easy solution let me know in any case I'll start working on my own solution and post it if I find an acceptable one. cheers, Jerome -Original Message- From: Joerg Heinicke [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 28 January 2003 11:59 AM To: [EMAIL PROTECTED] Subject: Re: Using docbook chunk.xsl with cocoon Hi Jerome, you are right, XPathTransformer won't fit your requirements. I use some stylesheets with xalan:redirect extension for debugging outputs, so there should not be a problem in general. But I don't know the exact implementation/usage of xalan redirect in DocBook xsl. I can imagine that no output is created from the transformation itself, but only to xalan redirect. This means you have no response to send to the client. But why using chunk.xsl on the fly? Are these dynamic data? We use it for online help for example and the chunk.xsl is used at build time, not at request/run time. Regards, Joerg Jerome Paul wrote: Hi Jeff, I'm not sure that XPathTransformer does exactly what I need. Basically chunk.xsl breaks an xml file to varying depths (user specified) for my case it breaks the document into chapters. When I transform an xml document from the command line using xalan it puts each chapter into a seperate file and creates an index for each chapter and at the begining an overall index for the document. It also creates next and previous tabs to traverse the document. Correct me if I'm wrong but using XPathTransformer I'd have to convert to a single document and specify a different url filter for each chapter. Idealy what I want is a way to get cocoon to convert the xml document using chunk.xsl without modification but I accept that this probably isn't possible. As I'm completly new to cocoon I have no idea if this is possible any ideas? cheers Jerome -Original Message- From: Jeff Turner [mailto:[EMAIL PROTECTED]] Sent: Saturday, 25 January 2003 3:13 PM To: '[EMAIL PROTECTED]' Subject: Re: Using docbook chunk.xsl with cocoon On Fri, Jan 24, 2003 at 04:45:43PM +1000, Jerome Paul wrote: Hi, I'm trying to convert xml documents using docbook-xsl-1.58.1\html\chunk.xsl with tomcat 4.0 and cocoon 2.0.4 windows 2000. Anyway the conversion takes a while (it's converting a decent sized xml document) when the conversion stops Internet explorer displays nothing when using the standard html\docbook.xsl it work fine. I'm pretty sure that the error is with the chunk.xsl because it's been hardcoded to write to the hdd and the way it actually creates many web pages instead of a single page. Has anyone else had this problem? what's the solution that other people have used? Er.. what does chunk.xsl do? The one on my hdd doesn't seem to write to disk.. Would I be correct in guessing that chunk.xsl breaks a large Docbook file into chapters or something? If so, you could use the XPathTransformer in Cocoon bugzilla to achieve the same thing. that's how I generated the chapter views of a single XML file user manual at: http://aft.sourceforge.net/manual/ I can post details if that's the problem you're trying to solve. --Jeff - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using docbook chunk.xsl with cocoon
I can post details if that's the problem you're trying to solve. Jeff that would be great if you could post this. Thanks Perry Molendijk - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using docbook chunk.xsl with cocoon
On Fri, Jan 24, 2003 at 04:45:43PM +1000, Jerome Paul wrote: Hi, I'm trying to convert xml documents using docbook-xsl-1.58.1\html\chunk.xsl with tomcat 4.0 and cocoon 2.0.4 windows 2000. Anyway the conversion takes a while (it's converting a decent sized xml document) when the conversion stops Internet explorer displays nothing when using the standard html\docbook.xsl it work fine. I'm pretty sure that the error is with the chunk.xsl because it's been hardcoded to write to the hdd and the way it actually creates many web pages instead of a single page. Has anyone else had this problem? what's the solution that other people have used? Er.. what does chunk.xsl do? The one on my hdd doesn't seem to write to disk.. Would I be correct in guessing that chunk.xsl breaks a large Docbook file into chapters or something? If so, you could use the XPathTransformer in Cocoon bugzilla to achieve the same thing. that's how I generated the chapter views of a single XML file user manual at: http://aft.sourceforge.net/manual/ I can post details if that's the problem you're trying to solve. --Jeff any help would be greatly appreciated Jerome - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Using docbook chunk.xsl with cocoon
Hi, I'm trying to convert xml documents using docbook-xsl-1.58.1\html\chunk.xsl with tomcat 4.0 and cocoon 2.0.4 windows 2000. Anyway the conversion takes a while (it's converting a decent sized xml document) when the conversion stops Internet explorer displays nothing when using the standard html\docbook.xsl it work fine. I'm pretty sure that the error is with the chunk.xsl because it's been hardcoded to write to the hdd and the way it actually creates many web pages instead of a single page. Has anyone else had this problem? what's the solution that other people have used? any help would be greatly appreciated Jerome - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]