> -----Ursprüngliche Nachricht----- > Von: users@cocoon.apache.org > Gesendet: 23.05.06 16:26:31 > An: users@cocoon.apache.org > Betreff: Re: Exception in ServerPagesGenerator.generate() during xinclude
> > > -----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&type=Konzept&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] > Hi again, I tried to put the characters like '<' or '>' out of my xml using '<' and '>' instead of it. The stylesheet that creates the above xinclude statement that does not work looks like that: <xsl:template match="insert"> <data> <xi:include> <xsl:attribute name="href"> <xsl:value-of select="$server" /> <xsl:text>?_XQUERY=update+insert</xsl:text> <xsl:if test="node_name"> <xsl:text>+<</xsl:text> <xsl:value-of select="node_name" /> <xsl:if test="ID"> <xsl:text>+ID="</xsl:text> <xsl:value-of select="ID" /> <xsl:text>"</xsl:text> </xsl:if> <xsl:text>></xsl:text> </xsl:if> <xsl:for-each select="element_list/element"> <xsl:text disable-output-escaping="yes">+<</xsl:text> <xsl:value-of select="name" /> <xsl:if test="ID"> <xsl:text>+ID='</xsl:text> <xsl:value-of select="ID"/> <xsl:text>'</xsl:text> </xsl:if> <xsl:text>></xsl:text> <xsl:value-of select="value" /> <xsl:if test="element"> <xsl:for-each select="element"> <xsl:text>+<</xsl:text> <xsl:value-of select="name" /> <xsl:text>></xsl:text> <xsl:value-of select="value" /> <xsl:if test="element"> <xsl:for-each select="element"> <xsl:text>+<</xsl:text> <xsl:value-of select="name" /> <xsl:text>></xsl:text> <xsl:value-of select="value" /> <xsl:text></</xsl:text> <xsl:value-of select="name" /> <xsl:text>></xsl:text> </xsl:for-each> </xsl:if> <xsl:text></</xsl:text> <xsl:value-of select="name" /> <xsl:text>></xsl:text> </xsl:for-each> </xsl:if> <xsl:text></</xsl:text> <xsl:value-of select="name" /> <xsl:text>></xsl:text> </xsl:for-each> <xsl:if test="node_name"> <xsl:text>+</</xsl:text> <xsl:value-of select="node_name" /> <xsl:text>></xsl:text> </xsl:if> <xsl:text>+into+input()/</xsl:text> <xsl:value-of select="path" /> </xsl:attribute> </xi:include> </data> </xsl:template> I tried to set the attribute 'disable-output-escaping' of the xsl:text element to 'no' and to 'yes' to create <schutzziele> instead of <schutzziele> but it doesn't work. The Pipeline always creates the above code. And what is strange too: The error message is 'Exception in ServerPagesGenerator.generate()' but the generate type="serverpages" was three steps ago, it's only a xinclude here. Please help me, I have no idea how to solve my problem!!! 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]