Re: [xsl] external files

Subject: Re: [xsl] external files
From: "Betty L. Harvey" <harvey@xxxxxxxxxxxxxxxxx>
Date: Wed, 11 Jul 2001 08:54:58 -0400 (EDT)
Mike:

	I am not sure I understand exactly what you want to do but
if you are calling an external XML fragment into another XML document
you don't have to make any changes to your XSL.

	For example the following files:

Main XML File
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet href="a.xsl" type="text/xsl"?>
<!DOCTYPE a [
<!ENTITY b SYSTEM "b.xml">
]>
<a>&b;</a>

XML Fragment

<b>
    <c>Text</c>
</b>

As long as you have <xsl:template> rules for <b>
and <c> in the XSL file it will render the XML as
if it were one file.

Betty

/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
Betty Harvey                         | Phone: 410-787-9200 FAX: 9830 
Electronic Commerce Connection, Inc. |        
harvey@xxxxxxxxxx                    | Washington,DC SGML/XML Users Grp
URL:  http://www.eccnet.com          | http://www.eccnet.com/xmlug/
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\\/\/  



On Wed, 11 Jul 2001, Mike Lamb wrote:

> Thanks all for your comments. I think I can simplify my inquiry:
> 
> I need to be able to import an XML file specified in my source document and
> process it using templates in my ORIGINAL xsl file. I suspect that the
> document() function allows me to do exactly this, but I am very unclear on
> the mechanics. Any thoughts on this simplified problem?
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 

-- 



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


Current Thread