Hello, the xslt tranform xml to xml, but the HTML serializer transform the result xml in html. If you tell to the sitemap that the serilizer is xml then your result as xml. For example: <map:match pattern="files/**.xml"> <map:generate src="{1}.xml"/> <map:transform src="transformer.xsl"/> <map:serialize type="xml"/> </map:match> I has a problem, because the serializer don't put the ISO-8859-1 encoding. My solution was put the encoding in the serializer definition: <map:serializers default="html-iso"> <map:serializer name="xml-iso" mime-type="text/xml" logger="sitemap.serializer.xml.iso" src="org.apache.cocoon.serialization.XMLSerializer" pool-max="32" pool-min="16" pool-grow="4"> <encoding>iso-8859-1</encoding> </map:serializer> <map:serializer name="html-iso" mime-type="text/html" logger="sitemap.serializer.html" src="org.apache.cocoon.serialization.HTMLSerializer"> <encoding>iso-8859-1</encoding> </map:serializer> </map:serializers>
KOZLOV Roman wrote: > Hello, > > Could somebody help me, please? Is it possible to use xsl:output in > stylesheets processed by cocoon's xslt transformer? It seems that it has > no effect. Indeed, the problem is that I can't tell to xslt transformer > that I need a pure XML as a result, but the xslt transformer always > transforms <img .../> to <img ...> and it leads to crash of a pipeline. > My xsl begins like this: > > <?xml version="1.0" encoding="UTF-8" ?> > <xsl:stylesheet version="1.0" > xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> > <xsl:output method="xml" encoding="ISO-8859-1" indent="yes"/> > . . . > > Thank you in advance. > > --------------------------------------------------------------------- > 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]>
begin:vcard n:Adrover;Bartomeu x-mozilla-html:FALSE org:UIB;Servei de Cālcul i Informatizaciķ version:2.1 email;internet:[EMAIL PROTECTED] adr;quoted-printable:;;Edifici Anselm Turmeda, Campus de la UIB=0D=0ACarretera de Valldemossa Km 7,5 ;Palma de Mallorca;Illes Balears;07071;Espanya fn:Baromeu Adrover end:vcard
--------------------------------------------------------------------- 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]>