This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: tree in 2 xml files


/ "Yasser El-Zein" <xsl_list@hotmail.com> was heard to say:
| Can the wollowing case be implemented in XML?
| 
| The element node (elmA) in the tree defined in (A.xml) is the root node of 
| the tree defined in (B.xml)

Uh, is this what you're after?

A.xml:

<!DOCTYPE foo [
<!ENTITY B.xml SYSTEM "B.xml">
]>
<foo>
<bar>
&B.xml;
</bar>
</foo>

B.xml:

<moo>
  <goo/>
</moo>

There's no way to make both A.xml and B.xml *valid*, because you can't
embed a document that begins with a DOCTYPE declaration, but for
well-formed documents, this is one way to achieve what I think you're
after.

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | Labor, n. One of the processes by which
http://nwalsh.com/            | A acquires property for B.--Ambrose
                              | Bierce


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]