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

Reply via email to