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 2005/06/28 12:06:39 UTC

DO NOT REPLY [Bug 35521] New: - [PATCH] NEW - a NullSource component

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

http://issues.apache.org/bugzilla/show_bug.cgi?id=35521

           Summary: [PATCH] NEW - a NullSource component
           Product: Cocoon 2
           Version: Current SVN 2.1
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: general components
        AssignedTo: dev@cocoon.apache.org
        ReportedBy: mlundquist2@comcast.net


A Source that generates an empty XML document.  Why?

(1) So that you can write something this, which I wrote in a sitemap (see the <otherwise> part):

    <match type="regexp" pattern="([^/]*)(.*):nav-secondary">
      <select type="resource-exists">
        <when test="content/{1}/navmenu.xml">
          <generate src="content/{1}/navmenu.xml" />
          <serialize type="xml"/>
        </when>
        <otherwise>
          <generate src="null:" />
          <serialize type="xml"/>
        </otherwise>
      </select>
    </match>

2) So that you can write pipelines in which a stream is synthesized entirely in XSLT, not needing any 
source document (see http://blogs.cocoondev.org/stevenn/archives/000496.html)

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.