Hi,
I have a problem with the xinclude transformer. I produce the xinclude command
in the following stylesheet:
<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: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>
And this ist the xml that goes to the pipeline:
<?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"]" />
The output contains characters like '<' or '>' and not '<' and '>'. After
this stylesheet there is the xinclude transformer, and it produces 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
How can I get a xml result with < and > in it? And is this the reason for
the above error?
Kathi
p.s. I've posted this problem some time ago, but I get not many answers. But
there is some more information on this problem:
http://www.mail-archive.com/[email protected]/msg33785.html
______________________________________________________________
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]