xml declaration

2003-03-13 Thread Nesto



Hi!
I'm trying to serialize my xhtml pages with the 
xhtml serializer, but I don't want to serialize the xml declaration at the top 
of the document.
This because with Pocket Internet Explorer the 
declaration is visible at the top of the page.
 
I tried this:

    
-//W3C//DTD XHTML 1.0 
Transitional//EN
    
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
    
ISO-8859-1
    
yes 
>
 
but the page sent still contains the xml 
declaration.
 
Why??
And how can I solve my 
problem??
 
(If I use the html serializer the declaration disappears, 
but there are problems with the content i want to deliver, so I don't want the 
html serializer!)
 
Thanks in advance!
 
Nesto


Re: XML declaration in text/plain output

2002-11-19 Thread Frank Taffelt
see my previous posting on this topic:
http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=103598703627408&w=2

this seems to be a long time bug in cocoon2.1-dev  ;-)

hth,
Frank Taffelt


-
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: XML declaration in text/plain output

2002-11-18 Thread Oskar Casquero
The same happens to me
(http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=103761475526736&w=2). If
you don't need the new features of cocoon-2.1-dev, try using cocoon-2.0.3.

Oskar.

- Original Message -
From: "Hay Bruce" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, November 18, 2002 12:21 PM
Subject: XML declaration in text/plain output


> Hi,
>
> I've a simple pipeline to make CSV data:
>
> 
> 
>   
>   
> 
> 
> 
>   
> 
>
> where I've tried putting
>
>   
>
> in the XSLT transformation, and
>
> true
>
> or
>
> yes
>
> in the serializer declaration in the sitemap
>
>pool-max="8" pool-min="2" pool-grow="2"
> src="org.apache.cocoon.serialization.TextSerializer"
> logger="sitemap.serializer.text">
> true
>   
>
> In all cases I still end up with
>
> 
>
> prior to the plain text output. This is with cocoon 2.1-dev.
>
> Anyone any ideas?
>
> Thanks,
>
> Bruce
>
> This message is for the named person's use only. It may contain
> confidential, proprietary or legally privileged information. No
> confidentiality or privilege is waived or lost by any mistransmission.
> If you receive this message in error, please notify the sender urgently
> and then immediately delete the message and any copies of it from your
> system. Please also immediately destroy any hardcopies of the message.
> You must not, directly or indirectly, use, disclose, distribute, print,
> or copy any part of this message if you are not the intended recipient.
> The sender's company reserves the right to monitor all e-mail
> communications through their networks. Any views expressed in this
> message are those of the individual sender, except where the message
> states otherwise and the sender is authorised to state them to be the
> views of the sender's company.
>
> -
> 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]>




XML declaration in text/plain output

2002-11-18 Thread Hay Bruce
Hi,

I've a simple pipeline to make CSV data:



  
  



  


where I've tried putting 

  

in the XSLT transformation, and

true

or

yes

in the serializer declaration in the sitemap

  
true
  

In all cases I still end up with



prior to the plain text output. This is with cocoon 2.1-dev.

Anyone any ideas?

Thanks,

Bruce

This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please notify the sender urgently
and then immediately delete the message and any copies of it from your
system. Please also immediately destroy any hardcopies of the message.
You must not, directly or indirectly, use, disclose, distribute, print,
or copy any part of this message if you are not the intended recipient.
The sender's company reserves the right to monitor all e-mail
communications through their networks. Any views expressed in this
message are those of the individual sender, except where the message
states otherwise and the sender is authorised to state them to be the
views of the sender's company. 

-
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: XML Declaration

2002-03-19 Thread cyril vidal

 I've made some tests with my xsl stylesheet.
With IE6, there's no problem: I get a correct .fo document.
But when I try with xt, strangely, I obtain a "syntax error" on line 4. (I
think it's the same problem with Trax xslt engine that Cocoon uses in my
pipeline)
This is the beginning of the file:

http://www.w3.org/1999/XSL/Transform";
  xmlns:fo="http://www.w3.org/1999/XSL/Format";>
 

  

So, why this syntax error?
Thanks for your answers,
Cyril.

- Original Message -
From: "Bertrand Delacretaz" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 19, 2002 4:40 PM
Subject: Re: XML Declaration


> On Tuesday 19 March 2002 16:25, cyril vidal wrote:
> > Exception in creating Transform Handler
>
> Usually means an error in your XSLT transform.
>
> Locating such problems is easier if you can isolate them: you might
> want to comment out parts of your XSLT transform until it works, or
> start with a known good XSLT and work from here step by step.
>
> If you're generating PDF, try outputting the xml of the XSL-FO version
> first (by replacing the fo2pdf serializer with the xml one): until the
> XML version works there's no way you can get PDF output.
>
> >  > name="cocoon-format">type="text/xslfo"
>
> This is not needed with Cocoon 2, the sitemap handles this.
>
> Hope this helps...
> --
>  Bertrand Delacrétaz (codeconsult.ch, jfor.org)
>
>  buzzwords: XML, java, XSLT, cocoon, mentoring/teaching/coding.
>  disclaimer: eternity is very long. mostly towards the end. get ready.
>
>
>
>
>
>
> -
> 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: XML Declaration

2002-03-19 Thread Matthieu Benéteau



You may get 
a more explicit error message if you use the following error handler in your 
pipeline :
 
  

    

    

  

 
where 
"error2html.xsl" is the error stylesheet provided in the cocoon default webapp 
(in webapp\stylesheets\system).
 
 
Matthieu
 

  -Message d'origine-De : cyril vidal 
  [mailto:[EMAIL PROTECTED]]Envoyé : mardi 19 mars 2002 
  16:26Objet : XML Declaration
  I hope one day I will succeed in 
  transforming  XML->PDF  with Cocoon...
  After the "tranform" corrected, I now obtain the 
  following message:
  
  message 
  Exception in creating Transform Handler
  description org.apache.cocoon.ProcessingException: 
  Exception in creating Transform Handler: org.xml.sax.SAXParseException: The 
  XML declaration may only appear at the very beginning of the document
  This is my xml document:
    
      
  Shakespeare    
  William    
  British    
  1564    
  1616  
    Sonnet 130  
      My mistress' eyes are nothing 
  like the sun,    Coral is far more 
  red than her lips red.    If snow 
  be white, why then her breasts are dun,    
  If hairs be wires, black wires grow on her 
  head.    I have seen roses 
  damasked, red and white,    But no 
  such roses see I in her cheeks.    
  And in some perfumes is there more 
  delight    Than in the breath that 
  from my mistress reeks.    I love 
  to hear her speak, yet well I know    
  That music hath a far more pleasing 
  sound.    I grant I never saw a 
  goddess go,    My mistress when 
  she walks, treads on the ground.    
  And yet, by Heaven, I think my love as 
  rare    As any she belied with 
  false compare.  
  
  and the summary of the XLS-fo 
  one:
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"  
  xmlns:fo="http://www.w3.org/1999/XSL/Format">      
  
    
  name="cocoon-format">type="text/xslfo"
  
  What do you think is 
wrong?
  Thanks for your answers,
  Cyril.
   
  Thanks for your answer,
  Cyril.


Re: XML Declaration

2002-03-19 Thread Bertrand Delacretaz

On Tuesday 19 March 2002 16:25, cyril vidal wrote:
> Exception in creating Transform Handler

Usually means an error in your XSLT transform.

Locating such problems is easier if you can isolate them: you might 
want to comment out parts of your XSLT transform until it works, or 
start with a known good XSLT and work from here step by step.

If you're generating PDF, try outputting the xml of the XSL-FO version 
first (by replacing the fo2pdf serializer with the xml one): until the 
XML version works there's no way you can get PDF output.

>  name="cocoon-format">type="text/xslfo"

This is not needed with Cocoon 2, the sitemap handles this.

Hope this helps...
-- 
 Bertrand Delacrétaz (codeconsult.ch, jfor.org)

 buzzwords: XML, java, XSLT, cocoon, mentoring/teaching/coding.
 disclaimer: eternity is very long. mostly towards the end. get ready.






-
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]>




XML Declaration

2002-03-19 Thread cyril vidal



I hope one day I 
will succeed in transforming  XML->PDF  with 
Cocoon...
After the "tranform" corrected, I now 
obtain the following message:

message 
Exception in creating Transform Handler
description org.apache.cocoon.ProcessingException: 
Exception in creating Transform Handler: org.xml.sax.SAXParseException: The XML 
declaration may only appear at the very beginning of the document
This is my xml document:
  
    
Shakespeare    
William    
British    
1564    
1616  
  Sonnet 130  
    My mistress' eyes are nothing 
like the sun,    Coral is far more 
red than her lips red.    If snow be 
white, why then her breasts are dun,    
If hairs be wires, black wires grow on her 
head.    I have seen roses damasked, 
red and white,    But no such roses 
see I in her cheeks.    And in some 
perfumes is there more delight    
Than in the breath that from my mistress 
reeks.    I love to hear her speak, 
yet well I know    That music hath a 
far more pleasing sound.    I grant 
I never saw a goddess go,    My 
mistress when she walks, treads on the 
ground.    And yet, by Heaven, I 
think my love as rare    As any she 
belied with false compare.  

and the summary of the XLS-fo 
one:
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"  
xmlns:fo="http://www.w3.org/1999/XSL/Format">      

  
name="cocoon-format">type="text/xslfo"

What do you think is wrong?
Thanks for your answers,
Cyril.
 
Thanks for your answer,
Cyril.


RE: XMLTransformer without XML declaration?

2002-03-13 Thread Vadim Gritsenko

> From: Noah Mittman [mailto:[EMAIL PROTECTED]]
> 
> Sorry, that would be the TextSerializer and XMLSerializer...
> 
> On Tuesday, March 12, 2002, at 03:12  PM, Noah Mittman wrote:
> 
> > I'm using Cocoon to output ASX (Windows Media playlists) content,
> > but since it's a wonderful Microsoft product, it's XML formatted,
> > but if you include an XML declaration, it doesn't work. Can I use
> > the XMLTransformer, but without the xml declaration it adds (i.e.
> > is it configurable?) or am I stuck faking it out with the
> > TextTransformer?

In the src/webapp/sitemap.xmap search for:

yes

Vadim


-
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]>




PS: XMLTransformer without XML declaration?

2002-03-12 Thread Noah Mittman

Sorry, that would be the TextSerializer and XMLSerializer...

On Tuesday, March 12, 2002, at 03:12  PM, Noah Mittman wrote:

> I'm using Cocoon to output ASX (Windows Media playlists) content, 
> but since it's a wonderful Microsoft product, it's XML formatted, 
> but if you include an XML declaration, it doesn't work. Can I use 
> the XMLTransformer, but without the xml declaration it adds (i.e. 
> is it configurable?) or am I stuck faking it out with the 
> TextTransformer?
>


-
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]>




XMLTransformer without XML declaration?

2002-03-12 Thread Noah Mittman

I'm using Cocoon to output ASX (Windows Media playlists) content, 
but since it's a wonderful Microsoft product, it's XML formatted, 
but if you include an XML declaration, it doesn't work. Can I use 
the XMLTransformer, but without the xml declaration it adds (i.e. 
is it configurable?) or am I stuck faking it out with the 
TextTransformer?


-
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]>