org.inria.ns.reflex.xml.filter
Class XIncludeRules

java.lang.Object
  extended by org.inria.ns.reflex.xml.filter.XIncludeRules

public class XIncludeRules
extends Object

The rules for XInclude filters.

Author:
Philippe Poulard
See Also:
XIncludeFilter, XIncludeFilterContextFactory

Field Summary
static List XINCLUDE_RULES
          An immutable list of XInclude rules.
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XINCLUDE_RULES

public static final List XINCLUDE_RULES
An immutable list of XInclude rules.

The XInclude rules are :

<xcl:rule pattern="xi:include/xi:include"
        xmlns:xi="http://www.w3.org/2001/XInclude">
     <!--Fatal error-->
</xcl:rule>

<xcl:rule pattern="xi:include"
        xmlns:xi="http://www.w3.org/2001/XInclude">
    <xcl:forward channel="...">
        <!--Include the content specified by the attributes.
               The channel to forward to is either the output
               to which the filter is connected if the content
               to include is some raw text, or an XInclude
               filter that is connected to the same output
               if the content to include is XML-->
    </xcl:forward>
</xcl:rule>

<xcl:rule pattern="xi:include/xi:fallback[ 1 ]"
        xmlns:xi="http://www.w3.org/2001/XInclude">
     <!--Apply the content with this filter
            if the parent <xi:include> fails,
            or ignore if the inclusion is successful -->
</xcl:rule>

<xcl:rule pattern="xi:*"
        xmlns:xi="http://www.w3.org/2001/XInclude">
     <!--Fatal error-->
</xcl:rule>

<xcl:rule pattern="xi:include/node()"
        xmlns:xi="http://www.w3.org/2001/XInclude">
    <!--Other nodes are ignored-->
</xcl:rule>

See Also:
Rule