>> English << | По-русскиZVON > Tutorials > XInclude Tutorial
>> Example 13 << | Prev | Next | Contents

Missing href attribute


Description

If the attribute href is missing, it is equivalent to: href="". In this case, xpointer attribute must be present. Warning: this may be treated as resource error.

Valid example

The file a.xml includes its first "p" element.
File a.xml:
    <a> 
     <p>aaaa</p>
     <xi:include
                 xpointer="element(/a/p[1])"
                 parse="xml"
      xmlns:xi="http://www.w3.org/2001/XInclude"/>
    </a>
   

File a.xml after processing:
    <a>
     <p>aaaa</p>
     <p>aaaa</p>
    </a>