Re: Is it possible to fire an error from a XSL file ?

2002-04-10 Thread Michael McKibben

I haven't tried this with Xalan, and the behavior is very processor
specific, but one idea is to try:

404 Resource Not Found.

in your stylesheet and then add a handle-errors section in your pipeline
with a serializer that sets the status-code="404". The unknown is how
Xalan handles the terminate="yes" attribute. If I recall correctly, Xalan
handles this by throwing an exception, which should bubble up and be
handled by the Cocoon error handler.

The suggestion by Liam is cleaner in that it is less
transformer specific, but I just thought I'd throw this out there as
quick and dirty option :)

Regards,

--mike

On Mon, 8 Apr 2002, Liam Morley wrote:

> What you might do (and this is just one approach) is to write a
> java transformer that will verify that the file exists, and if it doesn't,
> throw a ResourceNotFoundException(). Then, if it does exist, pass the SAX
> information on to the XSLT transformer. By that time, you don't have to
> worry whether or not you'll find it or not. Or (and I'm not sure about
> this) write a transformer that simply extends TraxTransformer, and
> overwrite the setup() method. From here, you can check parameters passed
> from the sitemap. You wouldn't have to overwrite any other code.
>
> Liam Morley
>
>
> On Mon, 8 Apr 2002, Sylvain Fétiveau wrote:
>
> > Hi,
> >
> > When someone requests an URL like /glossary/*.html, I use a single XML
> > file for all the glossaries + an XSL file to transform it (I pass the
> > filename of the glossary page to the XSL transformer). Sometimes, an
> > unexisting page is requested (i.e. a page which is not listed in my
> > large XML file). Is there a way to "fire" something to make cocoon
> > consider this request as an error 404, which will be then handled ? As
> > long as I handle the 404 errors, I guess that it's not a real problem if
> > I already outputed some content when I "fire" my error... Or maybe I
> > should write a Xalan extension to redirect the user to my error 404
> > page...
> >
> > Thank you in advance.
> >
> > --
> > °v° Sylvain Fétiveau   Tel. (613) 731-4046
> > / \ Webmotion Inc. http://www.webmotion.com
> > " " mailto:[EMAIL PROTECTED]
> >
> > -
> > Please check that your question has not already been answered in the
> > FAQ before posting. 
> >
> > 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. 
>
> 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. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Re: XInclude

2001-11-26 Thread Michael McKibben

I used the source from cvs.

Regards,

--mike

On Thu, 22 Nov 2001, Stephan Michels wrote:

>
>
> On Tue, 20 Nov 2001, Michael McKibben wrote:
>
> > Ahh yes you are correct. I've been using a modified XInclude transformer
> > that uses a custom URI class to better handle uri's supplied via the href
> > attribute. This modified version correctly handles relative/absolute URI's
> > (including the Cocoon custom protocols.) I haven't submitted it back to
> > the Cocoon community yet because I haven't fully documented/tested it, but
> > it does work. You are welcome to test it out. I've attached the necessary
> > source files you'll need to this message. Let me know what you think.
> >
>
> Thank you, but I need to compile these classes a
> org.apache.cocoon.components.xpath.XPathProcessor
>
> The cocoon-rc2 doesn't contain the XPathProcessor. Can you explain where I
> can get this processor?.
>
>
> -
> 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: <[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/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Re: XInclude

2001-11-20 Thread Michael McKibben

Ahh yes you are correct. I've been using a modified XInclude transformer
that uses a custom URI class to better handle uri's supplied via the href
attribute. This modified version correctly handles relative/absolute URI's
(including the Cocoon custom protocols.) I haven't submitted it back to
the Cocoon community yet because I haven't fully documented/tested it, but
it does work. You are welcome to test it out. I've attached the necessary
source files you'll need to this message. Let me know what you think.

Regards,

--mike

On Wed, 21 Nov 2001, Stephan Michels wrote:

>
>
> On Tue, 20 Nov 2001, Michael McKibben wrote:
>
> > Also, don't forget the parse="xml" attribute on your xinclude element. I
> > didn't see it in the original example you sent.
> >
>
> I thought this were the default.
>
> From XInclude.java(87):
> if (null == parse) parse="xml";
>
>
>
> -
> 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: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>



XIncludeTransformer.java
Description: Binary data


MalformedURIException.java
Description: Binary data


URI.java
Description: Binary data

-
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>


Re: XInclude

2001-11-20 Thread Michael McKibben

Also, don't forget the parse="xml" attribute on your xinclude element. I
didn't see it in the original example you sent.

Regards,

--mike

On Wed, 21 Nov 2001, Bernhard Huber wrote:

> Try using  after xinclude, this will show you
> the xml-content
> after xinclude transformation, and before xinclude
> Perhaps the xslt processing eats up the include element?
> Use copyover.xsl to copy elements see in the documents stylesheet
> directory for copyover.
>
> bye
>
> Stephan Michels wrote:
>
> >
> >On Tue, 20 Nov 2001, Bernhard Huber wrote:
> >
> >>hi,
> >>have included the  in the pipeline of
> >>your sitemap?
> >>
> >>something like that:
> >>  
> >>
> >>
> >> 
> >
> > 
> > 
> >
> >
> >
> >
> >
> >
> >>Stephan Michels wrote:
> >>
> >>>Hi,
> >>>has anyone a working example for the xinclude transformer. My example
> >>>doesnt'work:
> >>>
> >>>I want to include another xml file from my fs.
> >>>
> >>>Abbildung: Beispieltitel
> >>> http://www.w3.org/2001/XInclude";>
> >>>  
> >>>  
> >>> 
> >>> 
> >>> 
> >>>  Erläuterner Text:
> >>> 
> >>> 
> >>>  bla bla bla bla bla bla bla bla bla
> >>> 
> >>>
> >>>
> >>>
> >>>output:
> >>>
> >>>Abbildung: Beispieltitel
> >>> http://www.w3.org/2001/XInclude";
> >>>-Here the output stopps---
> >>>
> >>>I couldn't find an error in the log files.
> >>>
> >>>I have also a question, must I use "file://"?
> >>>
> >>>Thanx, Stephan Michels.
> >>>
> >>>
> >>>-
> >>>Please check that your question has not already been answered in the
> >>>FAQ before posting. 
> >>>
> >>>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. 
> >>
> >>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. 
> >
> >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. 
>
> 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. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Re: temp directory

2001-10-29 Thread Michael McKibben

Sorry if you've already received a reply to this, but the timing of my
apache list mail seems to be lagged...

Did you try getting Constants.CONTEXT_WORK_DIR from the context passed to
your generator via the object model (or if you extend from
ServletGenerator the context is available as a proteted member)?

Regards,

--mike

On Mon, 29 Oct 2001, Sam wrote:

> Hi list,
> I am writing a custom generator that uses database queries. I would like
> to store some temporary state in the servlet temp directory, but I can't
> seem to work out how to obtain what directory that is, or even obtain
> the ServletContext which could also tell me the same. Can anyone point
> me in the right direction?
>
> Many thanks in advance,
> Sam
>
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> 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. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Re: i18n & with subelements

2001-09-25 Thread Michael McKibben

Would it work if the text was wrapped as CDATA? I.e.



Regards,

--mike

On Tue, 25 Sep 2001, Piroumian, Konstantin wrote:

> > I am developing an international website with mainly static content, but
> > have run into a problem related to i18n.
> >
> > I would like to translate whole paragraphs of text using the i18n
> framework,
> > but would like these paragraphs to contain some more or less html-like
> tags.
> > The problem is that I18nTransformer seems to only copy the last text node
> > from a  tag.
>
> Yes, that's true. i18ntransformer does not support nested XML. Speaking
> frankly I've been thinking about this, but couldn't find a good solution.
> For large XML text insertions maybe it'd better to use something like
> XInclude ot CInclude?
>
> >
> > An example of what I would like to have:
> >
> > The first paragraph
> >
> > giving the translated english result:
> > "The first paragraph"
> >
> > ...later to be serialized into an html file.
> >
> > Howewver, the result is just:
> > "paragraph"
> >
> > I can understand that there is some basic framework constraint I could be
> > violating, but I don't have the experience to point it out. Could someone
> do
> > that for me? Anyone with a solution or a work-around?
>
> An ugly workaround is to use separate translation tags for every part, but,
> sure, it's not a good way:
>
> Thefirstpara
> graph.
>
> As I remember, this problem appears because of XML format of dictionaries.
> How would you specify a translation entry like that in the dictionary?
>
> Maybe, we need something like  tag? But I have no clear idea of
> how to implement it.
>
> >
> > /Gustav
> >
> >
>
> Best regards,
>
> Konstantin Piroumian
> Sr. Software engineer
>
> Protek Flagship LLC
> Phone: + 7 095 795 0520 (add. 1288)
> Fax: + 7 095 795 0525
> E-mail: [EMAIL PROTECTED]
> http://www.protek.com
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> 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. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




RE: Newbie Question (Static HTML from Cocoon2)

2001-09-24 Thread Michael McKibben

Hello, Cocoon also includes a command line utility for this. Run "java -jar
cocoon.jar -help" for usage description (the cocoon.jar file contains a
Class-Path manifest so as long as cocoon.jar is in your cocoon lib directory
your classpath should be set up automatically.)

Regards,

--mike

-Original Message-
From: Sebastian Mäder [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 24, 2001 2:51 AM
To: [EMAIL PROTECTED]
Subject: Newbie Question (Static HTML from Cocoon2)


Hi there,

my name is sebastian and im a trainee on a company in Gemany. Im was
building a website with xhtml and cocoon2 ..

Now my big boss said to me, that i have to build a "STATIC HTML VERSION" of
my cocoon site, and I don't know how I can do this.
The only way I know is, to save from Browser, but that's not the way.

Are there any instructions for the sitemap.xmap or a batch file, which
generated this static version ??
I will hope you can help me. How can I get this information?

THX

Sebastian





-
Please check that your question has not already been answered in the
FAQ before posting. 

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. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Re: XHTML Serializer

2001-09-20 Thread Michael McKibben

Sorry, I didn't pay close enough attention to who was asking the question.
Interestingly, I do not have this problem in my stylesheets.  Here is what
I do:

(in my xml file)
http://namespace1";>
...
http://namespace2"/>
...


(in my xsl stylesheet)
http://www.w3.org/1999/xhtml";
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
xmlns:ns1="http://namespace1";
xmlns:ns2="http://namespace2";
exclude-result-prefixes="ns1 ns2">

...

Notice that I declare the namespaces used in my xml file in my stylesheet
also. Hope this helps.

Regards,

--mike

On Thu, 20 Sep 2001, Martin Kavalar wrote:

> Well, if i do that, all i get is replies to my older questions.
>
> exclude-result-prefixes didnt get rid of the default namespace, and using '#default' 
>as suggested didnt work, either.
> Furthermore, i still got all the namespaces of elements further down the tree than 
>the root element. How do i get rid of them?
>
> thanks
> martin
>
>
>
> Michael McKibben wrote:
>
> >Search the mail list archives for this month on "exclude-result-prefixes".
> >
> >Regards,
> >
> >--mike
> >
> >On Wed, 19 Sep 2001, Martin Kavalar wrote:
> >
> >>that still doesnt get rid of any namespaces, it produces the same output
> >>as the code i used i think. Anyone know how to get rid of the namespaces?
> >>
> >>Colin Paul Adams wrote:
> >>
> >>>>>>>>"Martin" == Martin Kavalar <[EMAIL PROTECTED]> writes:
> >>>>>>>>
> >>>   Martin> I was wondering why there is no XHTML serializer in
> >>>   Martin> c2. When defining my own i use the XML serializer and set
> >>>   Martin> the content type to text/html. Unfortunatly i then get all
> >>>   Martin> the namespaces from previous documents in my xhtml which
> >>>   Martin> keeps it from validating as XHTML 1.0. Can anyone help?
> >>>   Martin> thanks martin
> >>>
> >>>here's what I use:
> >>>
> >>>  >>>   src="org.apache.cocoon.serialization.XMLSerializer">
> >>>   -//W3C//DTD XHTML 1.1//EN
> >>>   
>http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd
> >>>   UTF-8
> >>>   no
> >>> 
> >>>
> >>
> >>
> >>-
> >>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: <[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/faqs.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/faqs.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/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Re: XHTML Serializer

2001-09-19 Thread Michael McKibben


Search the mail list archives for this month on "exclude-result-prefixes".

Regards,

--mike

On Wed, 19 Sep 2001, Martin Kavalar wrote:

> that still doesnt get rid of any namespaces, it produces the same output
> as the code i used i think. Anyone know how to get rid of the namespaces?
>
> Colin Paul Adams wrote:
>
> >>"Martin" == Martin Kavalar <[EMAIL PROTECTED]> writes:
> >>
> >
> >Martin> I was wondering why there is no XHTML serializer in
> >Martin> c2. When defining my own i use the XML serializer and set
> >Martin> the content type to text/html. Unfortunatly i then get all
> >Martin> the namespaces from previous documents in my xhtml which
> >Martin> keeps it from validating as XHTML 1.0. Can anyone help?
> >Martin> thanks martin
> >
> >here's what I use:
> >
> >   >src="org.apache.cocoon.serialization.XMLSerializer">
> >-//W3C//DTD XHTML 1.1//EN
> >
>http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd
> >UTF-8
> >no
> >  
> >
>
>
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> 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. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Re: [C2] multiple versus individual pipelines

2001-09-12 Thread Michael McKibben

Hello, when first looking at Cocoon2 I had the same question. This is what
I have been able to discover. The distinction is subtle. The multiple
pipeline approach allows you to define seperate "handle-errors" pipelines
for error handling. Also, you can you multiple pipelines to segregate
public vs. "internal-only" pipelines.

Regards,

--mike

On Wed, 12 Sep 2001, Jeremy Quinn wrote:

> Dear All,
>
> What is the difference in behaviour between having multiple
> s and s with multiple s?
>
> Thanks
>
> regards Jeremy
> --
>___
>
>Jeremy Quinn   Karma Divers
>webSpace Design
> HyperMedia Research Centre
>
>  
> 
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> 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. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Re: Velocity and sitemap

2001-09-10 Thread Michael McKibben

Hello, I believe also the Velocity Cocoon2 Generator currently configures
the Velocity engine to resolve template files relative to the templates/
directory inside the cocoon webapp, so your src path should not include
the "templates/" part.

Regards,

--mike

On Sat, 8 Sep 2001, Daniel Owsianski wrote:

> Hi,
>
> I use Cocoon2b2 and Tomcat 3.2.3 with Apache.
> sitemap has the following entries:
>
> 
>
> 
> 
> 
>
>
> 
>
> 
> 
> 
>
>
> 
>
> 
> 
> 
>
>
> Why only 'C' works fine ??
> Both 'A' and 'B' generates processing exception (unable to find
> 'templates/hello-page.vm') in VelocityGenerator.
> Please, a bit of help and explanation.
> Thx in advance...
>  Daniel
>
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> 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. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Re: [c1] HTML Output and xmlns

2001-09-07 Thread Michael McKibben

Hello, you can restrict the output of namespace prefixes by adding the
exclude-result-prefixes attribute to the root xsl:stylesheet element in
your stylesheets. The attribute accepts whitespace separated namespace
prefixes to exclude from the result. For example,

http://www.w3.org/1999/XSL/Transform";
exclude-result-prefixes="rightbar">
...

Regards,

--mike

On Fri, 7 Sep 2001, Brent L Johnson wrote:

> Quick question - probably easy to answer - but why when I view the source of
> the transformed HTML document in my browser, why do I see xmlns tags in the
> HTML document (along with some other xml related code).  Can I restrict it
> to only HTML compliant that will work for most all browsers?  Here are the
> first 3 lines of my source document:
>
> 
> 
> http://www.reedyriverpress.com/rightbar";>
>
> Obviously I dont want that xml-stylesheet tag in there - but I'm not sure
> WHY it is there.
>
> This isn't causing me a problem with IE or later versions of Netscape, but
> I'm putting a site into production using Cocoon 1.8.2 (which should get
> fairly heavily traffic) - and I've already got a support call from someone
> who is actually SEEING the HTML source code (maybe because of the DOCTYPE
> tag or something).  I remember reading somewhere that Cocoon 1.8.2 was
> production quality, but Cocoon2 was still in beta (correct?).  There other
> people using Cocoon for higher traffic commercial sites?
>
> Thanks,
>
> - Brent
>
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> 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. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Re: [C2] Output indent problem NOT solved

2001-09-06 Thread Michael McKibben

Hello, I am not sure if you have stumbled across a bug or not, but I have
gotten xinclude to work without indenting in C2b2. The way I got this to
work is by including an internal pipeline using a cocoon:// style url from
my aggregate xml file (probably not the only way, but this is what I am
doing). So my sitemap looks something like:


...






...









And in my "aggregateFile.xml" I have an xinclude lines like the following


And of course don't forget the no for your serializers.
Hope this helps!

Regards,

--mike

On Thu, 6 Sep 2001, Jorn Heid wrote:

> This works for the main xslt-stylesheet but when using xsl:include the
> problem remains:
>
> n3k Homepage name="autor"> content="coming soon" name="description"> name="keywords"> href="/images/n3k.ico" rel="shortcut icon"> marginwidth="0" margintop="0" marginleft="0" topmargin="0" leftmargin="0"
> bgcolor="#ff"> style="padding-left:10px;padding-right:10px;padding-top:50px">
>style="color:#0C3D91;font-size:13pt;font-weight:bold;font-family:verdana,ari
> al,sans-serif">The IP & Performance Management Experts
>style="padding-left:40px;color:#00;font-size:9pt;font-weight:normal;font
> -family:verdana,arial,sans-serif" class="text"> With the rapid growth of IP
> networks we are uniquely placed to provide the very best solutions to manage
> and control corporate IP networks. Founded in 1996, as Internet &
> Intranet Solutions we developed rapidly into the largest reseller in our
> niche. We have just changed our name to n3k Informatik as part of a wider
> European alliance. The company provides total solutions in the following
> areas: 
>   
> ...
>
> As you can see the indent is still there - with all elements which I have
> included using
>
> 
>
> The sitemap:
>
>src="org.apache.cocoon.serialization.HTMLSerializer">
>   false
>   no
>   
>
>
> Is this a bug?
>
> JOERN_HEID
>
>
>
> -Ursprungliche Nachricht-
> Von: Jorg Heinicke [mailto:[EMAIL PROTECTED]]
> Gesendet: Donnerstag, 6. September 2001 13:29
> An: [EMAIL PROTECTED]
> Betreff: Re: [C2]Output indent problem.
>
>
> Cocoon 2 (don't know Cocoon 1) ignores the , you must this
> parameters in the sitemap. Have a look at
> http://xml.apache.org/cocoon2/sitemap.html. There can be found examples at
> he point 'Serializers'.
>
> Joerg
>
> Ling Kok Choon wrote:
> > Hi All,
> >
> >   I use cocoon to build a web site, when the output ( html ) shown, and i
> view the source, the
> > html code is in very well form.
> >
> >   like:
> >
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >
> > so it make my output ( html ) got a space between this 2 pic, and what i
> need is this 2 image
> > joined togather, like:
> >
> > 
> > 
> > 
> > 
> >
> > but how to let the output ( html ) like above ? i have try to put
>  > indent="no"/> on the xsl, but still can't work. Is anyone can help me ?
> >
> >
> >
> > Thank you.
> >
> >
> > Kok Choon.
>
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> 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. 
>
> 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. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Re: xsp xincluding

2001-09-05 Thread Michael McKibben

Hello, one way to deal with this issue is to have your xinclude url
refer another pipeline defined in your sitemap. For example if I had the
following fragment in my sitemap:

sitemap.xmap:
...




...

Then, my xsp file had the following xinclude:
...

...

This would only work if your xsp files are independent of each other.
Another approach would be to use XSP logicsheets instead of xinclude. I am
still new to Cocoon2 and learning as I go along, so take my advice with a
grain of salt! Perhaps others on this list have can offer a better
solution.

Regards,

--mike

On Wed, 5 Sep 2001, Andrew Answer wrote:

> Hello cocoon-users,
>
>   how to do xsp xincluding? Because xinclude is a transformer, i can't
>   push it before xsp generator in sitemap pipeline...
>   But i can't also do xsp processing later because of xsp is a
>   generator and i must place it first in pipeline...
>   What i can do?
>
> --
> Best regards,
>  Andrew  mailto:[EMAIL PROTECTED]
>
>
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> 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. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




[C2] easy Q: about pipelines

2001-08-31 Thread Michael McKibben

Hello, I have a (dare I say 'dumb'?) question regarding pipelines defined
in the sitemap. What is the difference between defining one pipeline (with
a whole bunch of match elements) and several pipelines (with the same
match elements in total, but spread across several pipeline elements). For
example, consider the following:

sitemap1 (one pipeline):
...



















...

sitemap2 (several pipelines):
...


























It seems to me that both forms are equivalent. So I guess my question is
'Why would one choose one form over the other?' Is it just to define
seperate "handle-errors" processing on a per pipeline basis? Thanks in
advance for your input.

Regards,

--mike


-
Please check that your question has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Re: [C2b2]sub sitemap error?

2001-08-31 Thread Michael McKibben

Ahh, I see now. Thank you for the explaination.

It seems to me that compiled components that get embedded into the sitemap
java file could still support "inheritance" from the parent sitemap. All
that would be required is that at sub sitemap code generation time,
sitemap markup component could "inject" the parent's component code as
if in the xml I had written something like the following in the sub
sitemap xml:


http://apache.org/cocoon/sitemap/1.0)xpointer(//map:components/map:matchers)"/>


But this is probably more trouble than it's worth, heh? I imagine this
would make sitemap reloading difficult to handle, i.e. if a parent sitemap
changed, then all descendants would have to be regenerated/recompiled as
well.

Regards,

--mike


On Fri, 31 Aug 2001, java guru wrote:

> Hi.,
>   I had same problem earlier..but after little bit of
> "code" reading..this is what i come up with..
>
> Ofcourse, this explanation is purely my understanding
> and it may be true to core...
>
> 1. The "inherited", we are talking about really doesnt
> exist. From the code perspective, the sub sitemaps are
> independent of main sitemap.
>
> 2. If u look at some of the components of c2 (like
> transformers) with perspective of pure objects living
> in the environment pool to be accessed ans requested
> to do some job, then all the sitemaps could use them
> irrespective of the fact that they are defined in THAT
> particular sitemap file or not. Defining them only
> ensures that they WILL be created and made accessible.
>
>
> 3. On the other hand. Some of the components(from
> sitemap file perspective) like matcher is not really
> like the point2. The matcher functionality requires
> code & logic to be embedded into generated sitemap
> java file. Hence these type of "components" need to be
> mentioned so that that the code generation framework
> takes care of it.
>
> This is what my understanding. Correct me if u have
> any points towards this.
>
>
>
>
>
>
>  --- Sergio Carvalho <[EMAIL PROTECTED]> wrote:
> >
> > I also have the same doubt. Why do matchers behave
> > different from other
> > components? For transformers, it is enough to say:
> >  ...
> >  
> >  ...
> > But for matchers, one has to declare:
> >  ...
> >  
> >>
> src="org.apache.cocoon.matching.WildcardURIMatcherFactory"/>
> >   >  ...
> >
> > Cheers,
> >
> > Sérgio
> > On Fri, 31 Aug 2001 13:05:22 -0600 (Mountain
> > Daylight Time), Michael McKibben
> > wrote:
> > From: Michael McKibben <[EMAIL PROTECTED]>
> > --
> >
> > > Hello, I am using Coccon2 beta2 on Tomcat 3.2.2,
> > and I am trying to
> > > understand an error I am seeing in a sub sitemap
> > of mine.
> > >
> > > Basically, in my sub sitemap I have the following
> > line in my sitemap file:
> > > ...
> > > 
> > > ...
> > >
> > > It was my understanding that this would use the
> > "inherited" wildcard
> > > matcher defined in the parent sitemap as the
> > default. But when I try to
> > > access my sub site, I get an internal server error
> > explaining that the
> > > component for hint "wildcard" cannot be found.
> > >
> > > Looking at the example sub sitemap that comes with
> > cocoon2 I noticed that
> > > it adds a matcher definition (even though it is
> > already defined in the
> > > parent sitemap).
> > >
> > > ...
> > > 
> > >   >
> src="org.apache.cocoon.matching.WildcardURIMatcherFactory"/>
> > > 
> > > ...
> > >
> > > Now, I can add the line in my sub sitemap similar
> > to the example sub
> > > sitemap and make it work. My question is WHY? Is
> > this a bug? It feels
> > > awkward that all the other components inherit from
> > the parent sitemap
> > > except for matchers! But maybe there is a good
> > reason for this. Any ideas?
> > >
> > > Thanks,
> > >
> > > --mike
> > >
> > > P.S. Here is the verbatim exception info I am
> > seeing:
> > > ---
> > > type internal-server-error
> > >
> > > message UnnamedSelector: ComponentSelector could
> > not find the component
> > > for hint: wildcard
> > >
> > > description
> >
> org.apache.avalon.framework.component.ComponentException:
> > > UnnamedSelector: ComponentSelector could not find

[C2b2]sub sitemap error?

2001-08-31 Thread Michael McKibben

Hello, I am using Coccon2 beta2 on Tomcat 3.2.2, and I am trying to
understand an error I am seeing in a sub sitemap of mine.

Basically, in my sub sitemap I have the following line in my sitemap file:
...

...

It was my understanding that this would use the "inherited" wildcard
matcher defined in the parent sitemap as the default. But when I try to
access my sub site, I get an internal server error explaining that the
component for hint "wildcard" cannot be found.

Looking at the example sub sitemap that comes with cocoon2 I noticed that
it adds a matcher definition (even though it is already defined in the
parent sitemap).

...

 

...

Now, I can add the line in my sub sitemap similar to the example sub
sitemap and make it work. My question is WHY? Is this a bug? It feels
awkward that all the other components inherit from the parent sitemap
except for matchers! But maybe there is a good reason for this. Any ideas?

Thanks,

--mike

P.S. Here is the verbatim exception info I am seeing:
---
type internal-server-error

message UnnamedSelector: ComponentSelector could not find the component
for hint: wildcard

description org.apache.avalon.framework.component.ComponentException:
UnnamedSelector: ComponentSelector could not find the component for hint:
wildcard

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

request-uri

/cocoon/buildManager/

exception

org.apache.avalon.framework.component.ComponentException: UnnamedSelector:
ComponentSelector could not find the component for hint: wildcard

path-info

buildManager/

stacktrace

org.apache.avalon.framework.component.ComponentException: UnnamedSelector:
ComponentSelector could not find the component for hint: wildcard
at
org.apache.avalon.excalibur.component.ExcaliburComponentSelector.select(ExcaliburComponentSelector.java:239)
at
org.apache.cocoon.sitemap.SitemapComponentSelector.select(SitemapComponentSelector.java:49)
at
org.apache.cocoon.sitemap.SitemapComponentSelector.select(SitemapComponentSelector.java:52)
at
org.apache.cocoon.sitemap.SitemapComponentSelector.select(SitemapComponentSelector.java:52)
at
org.apache.cocoon.www.buildManager.buildManager_xmap.wildcardMatchN2A(buildManager_xmap.java:302)
at
org.apache.cocoon.www.buildManager.buildManager_xmap.process(buildManager_xmap.java:214)
at
org.apache.cocoon.www.buildManager.buildManager_xmap.process(buildManager_xmap.java:175)
at org.apache.cocoon.sitemap.Handler.process(Handler.java:160)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:103)
at
org.apache.cocoon.www.sitemap_xmap.wildcardMatchN1FF(sitemap_xmap.java:2643)
at
org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2141)
at
org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2079)
at org.apache.cocoon.sitemap.Handler.process(Handler.java:160)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:103)
at org.apache.cocoon.Cocoon.process(Cocoon.java:423)
at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:489)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.connector.Ajp13ConnectionHandler.processConnection(Ajp13ConnectionHandler.java:160)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)


-
Please check that your question has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Purpose of LinkSerializer?

2001-08-23 Thread Michael McKibben
Title: Purpose of LinkSerializer?





I've been playing around with Cocoon2 and came across the LinkSerializer. The documentation simply states that is shows the targets of the links in a document. How is this used? What can it be used for? I was looking for some examples using this serializer but couldn't find any. Just curious. Thanks,

--mike





XML Schema validation of sitemap

2001-08-23 Thread Michael McKibben

Hello, I was wondering if anyone had any thoughts/comments/insights into the
evolution of the schema for the sitemap.xmap file in Cocoon2. Currently, it
doesn't seem possible to validate the sitemap.xmap file against an XML
schema or DTD. This is because each component may have it's own markup used
to configure its parameters. It seems that in order for validation to be
supported, each component will have to define a schema/namespace describing
the parameters it requires. As an exercise, I converted the sitemap DTD
included with the distribution to the XML schema format, and created a
corresponding schema definition for the TraxTransformer. This resulted in a
sitemap looking similar to the following:

http://apache.org/cocoon/sitemap/1.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://apache.org/cocoon/sitemap/1.0
file://uri_to_sitemap_schema_file">

...



http://apache.org/cocoon/transformers/TraxTransformer/1.0"; 
 
xsi:schemaLocation="http://apache.org/cocoon/transformers/TraxTransformer/1.
0 file://uri_to_TraxTransformer_schema_file">
true




...



With this format, I was able to edit/validate the sitemap in an XML editor.
Is this how we will work with the sitemap in the future when Coccon2 is
release? Regards,

--mike

-
Please check that your question has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>