Doctype declaration missing

2004-05-04 Thread Sarah Haff
Hi,

I have XSLT that does XML - XML transformation. I
want to include a doctype declaration in the output so
my XSLT starts with:

xsl:output method=xml
doctype-system=http://docbook.org/xml/4.2/docbookx.dtd;
doctype-public=-//OASIS//DTD DocBook XML//EN
omit-xml-declaration=no/

However output that cocoon produces does not include
the DocType Declaration. Any ideas and/or suggestions?

Thank you.
Sarah




__
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs  
http://hotjobs.sweepstakes.yahoo.com/careermakeover 

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



RE: Doctype declaration missing

2004-05-04 Thread Conal Tuohy
Sarah Haff wrote:

 I have XSLT that does XML - XML transformation. I
 want to include a doctype declaration in the output so
 my XSLT starts with:
 
 xsl:output method=xml
 doctype-system=http://docbook.org/xml/4.2/docbookx.dtd;
 doctype-public=-//OASIS//DTD DocBook XML//EN
 omit-xml-declaration=no/
 
 However output that cocoon produces does not include
 the DocType Declaration. Any ideas and/or suggestions?

Yes ... I suggest you check your email and read my reply to your earlier question :-)

As far as I know you just can't do this with XSLT in Cocoon - you must configure a 
serializer in your Cocoon sitemap - take a look. If you use xsl:output in your XSLT 
it will be ignored. 

Cheers

Con

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



RE: Doctype declaration missing

2004-05-04 Thread Sarah Haff
Con,

Thanks for the reply. In my sitemap, I do have:
  map:serializer name=docbook mime-type=text/xml;
charset=iso-8859-1
src=org.apache.cocoon.serialization.XMLSerializer
 doctype-public//OASIS//DTD DocBook XML
V4.2//EN/doctype-public
 
doctype-systemhttp://docbook.org/xml/4.2/docbookx.dtd/doctype-system
encodingiso-8859-1/encoding
  /map:serializer

and 
map:serialize type=docbook/
in the pipeline section. But the output has not
Doctype Declaration.

Any ideas?

Thanks.
Sarah


--- Conal Tuohy [EMAIL PROTECTED] wrote:
 Hi Sarah
 
 In Cocoon, serialization is done in a separate step
 from transformation. So xsl:output is ignored. To
 change your serialization, configure the serializer
 component. e.g. you can configure the XML serializer
 as a docbook serializer, and use map:serialize
 type=docbook/ in your pipelines.
 
 Cheers
 
 Con
 
 -Original Message-
 From: Sarah Haff [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, 4 May 2004 2:22 p.m.
 To: [EMAIL PROTECTED]
 Subject: Doctype declaration missing 
 
 
 Hi,
 
 I have XSLT that does XML - XML transformation. I
 want to include a doctype declaration in the output
 so
 my XSLT starts with:
 
 xsl:output method=xml

doctype-system=http://docbook.org/xml/4.2/docbookx.dtd;
 doctype-public=-//OASIS//DTD DocBook XML//EN
 omit-xml-declaration=no/
 
 However output that cocoon produces does not include
 the DocType Declaration. Any ideas and/or
 suggestions?
 
 Thank you.
 Sarah
 
 
 
 
 
 Do you Yahoo!?
 Win a $20,000 Career Makeover at Yahoo! HotJobs 
 

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





__
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs  
http://hotjobs.sweepstakes.yahoo.com/careermakeover 

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



RE: Doctype declaration missing

2004-05-04 Thread Conal Tuohy
Hi Sarah. That looks correct to me. So I don't know what's going wrong now, sorry.
Have you changed the source document? Cocoon may still be serving a 
previously-serialized file from its cache, so it may be an idea to clear or invalidate 
the cache, if you haven't already.

 -Original Message-
 From: Sarah Haff [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, 5 May 2004 3:00 a.m.
 To: [EMAIL PROTECTED]
 Subject: RE: Doctype declaration missing 
 
 
 Con,
 
 Thanks for the reply. In my sitemap, I do have:
   map:serializer name=docbook mime-type=text/xml;
 charset=iso-8859-1
 src=org.apache.cocoon.serialization.XMLSerializer
  doctype-public//OASIS//DTD DocBook XML
 V4.2//EN/doctype-public
  
 doctype-systemhttp://docbook.org/xml/4.2/docbookx.dtd/docty
 pe-system
 encodingiso-8859-1/encoding
   /map:serializer
 
 and 
 map:serialize type=docbook/
 in the pipeline section. But the output has not
 Doctype Declaration.
 
 Any ideas?

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



Doctype declaration missing

2004-05-03 Thread Sarah Haff



Hi,

I have XSLT that does XML - XML transformation. I
want to include a doctype declaration in the output so
my XSLT starts with:

xsl:output method="xml"
doctype-system="http://docbook.org/xml/4.2/docbookx.dtd"
doctype-public="-//OASIS//DTD DocBook XML//EN"
omit-xml-declaration="no"/

However output that cocoon produces does not include
the DocType Declaration. Any ideas and/or suggestions?

Thank you.
Sarah


		Do you Yahoo!?Win a $20,000 Career Makeover at Yahoo! HotJobs