This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Newbie document() question
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] Newbie document() question
- From: cutlass <cutlass at secure0 dot com>
- Date: Fri, 12 Jan 2001 17:13:29 +0000
- References: <E58BBFC673E3D311A93600508B0A0D725FF2F3@mailky1.fnf.com>
- Reply-To: xsl-list at lists dot mulberrytech dot com
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