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: Newbie document() question



Edmund Mitchell wrote:

> 
> How should I write a mostly-identity transformation that puts a.xml into a
> specific child of b.xml and outputs the whole thing?  
> I've tried

-------------------------------------------------------------
method 1

use  <xsl:copy-of select='document("somexmldocument.xml")'/>

-------------------------------------------------------------
mehtod 2 : include it using a DTD

<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE document [ <!ENTITY  resourcedb SYSTEM 
'file:/some/absolute/path/a.xml'> ]>
<resource>
<childofb>&resourcedb;<childofb>
</resource>

--------------------------------------------------------------

,jim fuller


 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]