> -----Ursprüngliche Nachricht-----
> Von: users@cocoon.apache.org
> Gesendet: 23.05.06 15:47:40
> An: users@cocoon.apache.org
> Betreff: Re: Exception in ServerPagesGenerator.generate() during xinclude


> [EMAIL PROTECTED] wrote:
> > Hi,
> > 
> > I have a problem with the xinclude transformer. After calling it, I get the 
> > following error message:
> > 
> > org.apache.cocoon.ProcessingException: Exception in 
> > ServerPagesGenerator.generate(): java.lang.RuntimeException: 
> > java.lang.RuntimeException: 
> > org.xml.sax.SAXException: Exception occured during xinclude processing, and 
> > did not find a fallback element: null
> > 
> > Here are my files:
> > 
> > Sitemap:
> > ======
> > <map:match pattern="bs_add_schutzziele">
> >   <map:generate type="serverpages" 
> > src="resources/data/bs_insert_schutzziele.xml">
> >     <map:parameter name="server" value="{global:tamino-server}"/>
> >   </map:generate>
> >   <map:transform type="xinclude"/>
> >   <map:transform type="xslt" src="styles/portal/transformSchutzziele.xsl"/>
> >   <map:transform type="xslt" src="styles/select/bs_create_insert.xsl">
> >     <map:parameter name="server" value="{global:tamino-server}"/>
> >   </map:transform>
> >   <map:transform type="xinclude"/> <!-- AFTER THIS LINE, I GET THE ERROR!!! 
> > -->
> >   <map:transform type="xslt" src="styles/bs_save.xsl">
> >     <map:parameter name="url" 
> > value="bs-portlets-bskonzept?add=no&amp;type=Konzept&amp;id={request-param:gid}"/>
> >   </map:transform>
> >   <map:serialize type="html"/>
> > </map:match>
> > 
> > XML result before the xinclude transformer:
> > ===============================
> > <?xml version="1.0" encoding="ISO-8859-1" ?> 
> >   <data xmlns:ino="http://namespaces.softwareag.com/tamino/response2"; 
> > xmlns:xi="http://www.w3.org/2001/XInclude";>
> >   <xi:include 
> > href="http://localhost/tamino/BSDB/Hessen?_XQUERY=update+insert+<schutzziele>Allgemeine_Schutzziele_laut_Paragraph_14_MBO:_
> >               
> > Bauliche_Anlagen_sind_so_anzuordnen,_zu_errichten,_zu_aendern_und_instand_zu_halten,_dass_der_Entstehung_eines_Brandes_und_der_Ausbreitung_von_Feuer_und_Rauch_(Brandausbreitung)_
> >  
> > vorgebeugt_wird_und_bei_einem_Brand_die_Rettung_von_Menschen_und_Tieren_sowie_wirksame_Loescharbeiten_moeglich_sind.
> >  Besondere_Schutzziele:_ Keine 
> > </schutzziele>+into+input()/BS_Konzept[gebaeude_id="1"]" /> 
> 
> This is really the XML result?  I ask because it is not well-formed XML; 
> it contains special XML characters (<, ") within the href attribute.
> 
> >   </data>
> > 
> > If I type this url from the href attribute of xinclude into my browser, it 
> > works!
> > And this is a sample of another matcher and it works also in cocoon:
> > <?xml version="1.0" encoding="ISO-8859-1" ?> 
> >  <data xmlns:ino="http://namespaces.softwareag.com/tamino/response2"; 
> > xmlns:xi="http://www.w3.org/2001/XInclude";>
> >   <xi:include 
> > href="http://localhost/tamino/BSDB/Hessen?_XQUERY=update+insert+<brandgefahren>Keine</brandgefahren>+into+input()/BS_Konzept[gebaeude_id="1"]"
> >  /> 
> >   </data>
> > 
> > 
> > So, what is wrong here?
> > 
> > Kathi
> > 
> > _______________________________________________________________
> > SMS schreiben mit WEB.DE FreeMail - einfach, schnell und
> > kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


Yes, it's the xml code, that is in the pipeline. I got it with a <map:serialize 
type="xml"/> command directly before the xinclude transformer. And it contains 
characters like '<' or '>'. But I put another sample into my first mail that 
works. And there are also those characters in the xml pipeline. And the 
xinclude works there.

Kathi


______________________________________________________________
Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193


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

Reply via email to