You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by bu...@apache.org on 2002/06/17 05:20:51 UTC

DO NOT REPLY [Bug 8379] - Exception when xinclude is combined with xspExpr(Node)

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8379>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8379

Exception when xinclude is combined with xspExpr(Node)

vgritsenko@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID



------- Additional Comments From vgritsenko@apache.org  2002-06-17 03:20 -------
Can't reproduce the issue. Sitemap snippet:

  <map:match pattern="xsp/*">
    <map:generate src="docs/samples/xsp/{1}.xsp" type="serverpages"/>
    <map:transform type="xinclude"/>
    <map:transform src="stylesheets/dynamic-page2html.xsl">
    <map:parameter name="view-source" value="docs/samples/xsp/{1}.xsp"/>
    </map:transform>
    <map:serialize/>
  </map:match>

XSP page:

<?xml version="1.0" encoding="ISO-8859-1"?>

<xsp:page language="java" xmlns:xsp="http://apache.org/xsp">
  <page>
    <title>Hello</title>
    <content>
      <xsp:logic>
        try {
          javax.xml.parsers.DocumentBuilder builder =
            javax.xml.parsers.DocumentBuilderFactory.newInstance
().newDocumentBuilder();
          org.w3c.dom.Document doc = builder.newDocument();
          org.w3c.dom.Node n = doc.createElement("i");
          n.appendChild(doc.createTextNode("text in bold italic"));
          <b><xsp:expr>n</xsp:expr></b>
        }catch (Exception e){
          e.printStackTrace();
          <b><xsp:expr>e</xsp:expr></b>
        }
      </xsp:logic>
    </content>
  </page>
</xsp:page>

Please provide (short!) XSP page reproducing the problem. Thanks.

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org