cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject xsl produces not well-formded xml for a XInclude command
Date Mon, 29 May 2006 08:52:08 GMT

I have a problem with the xinclude transformer. I produce the xinclude command in the following

<xsl:template match="insert">
      <xsl:attribute name="href">
        <xsl:value-of select="$server" />
        <xsl:if test="node_name">
          <xsl:value-of select="node_name" />
          <xsl:if test="ID">
            <xsl:value-of select="ID" />

     <xsl:for-each select="element_list/element">
       <xsl:text disable-output-escaping="yes">+&lt;</xsl:text>
       <xsl:value-of select="name" />
       <xsl:if test="ID">
         <xsl:value-of select="ID"/>
       <xsl:value-of select="value" />
       <xsl:value-of select="name" />

     <xsl:if test="node_name">
       <xsl:value-of select="node_name" />
     <xsl:value-of select="path" />

And this ist the xml that goes to the pipeline:

<?xml version="1.0" encoding="ISO-8859-1" ?>
<data xmlns:ino="" xmlns:xi="">
<xi:include href="http://localhost/tamino/BSDB/Hessen?_XQUERY=update+insert+<schutzziele>Allgemeine_Schutzziele_laut_Paragraph_14_MBO:_
Besondere_Schutzziele:_ Keine </schutzziele>+into+input()/BS_Konzept[gebaeude_id="1"]"

The output contains characters like '<' or '>' and not '&lt;' and '&gt;'. 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:
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 &lt; and &gt; in it? And is this the reason for the
above error? 


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:

Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt bei WEB.DE FreeMail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message