cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Handling errors retrieving a <map:part> for <map:aggregate>
Date Wed, 01 Jun 2016 17:56:53 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

All,

Using Cocoon 2.1, I've got an aggregate generator like this:

  <map:match pattern="foo.html">
    <map:aggregate element="bar">
      <map:part src="/path/to/main.xml" />
      <map:part src="http://remote-server/baz.xml" />
    </map:aggregate>
    ...
  </map:match>

There are times when "remote-server" is not available and I'd like to
basically include nothing at that location within the aggregate document
.

Can I do that within the <map:aggregate> or <map:part> elements, or is
it better to wrap the <map:part> another <map:match> with an error
handled?

Followup question: how can I configure an error handler to do whatever
I want? I only want this particular behavior to happen for this
particular <map:part> ... presumably, I'll want other behavior in
other situations.

Thanks,
- -chris
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAldPIeUACgkQ9CaO5/Lv0PBW7wCfZtyG7w8bcgOuVn80V4NZtxoy
n10AnAtqYx0F2uHml7wbEPh4Bg9G3s3Y
=aPSk
-----END PGP SIGNATURE-----

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


Mime
View raw message