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]
Other format: [Raw text]

Re: XSL manipulating two XMLs


uhhh,

use the document() command to bring in your xml


for example

<xsl:variable name="doc1" select="document('test1.xml')"/>

<xsl:variable name="doc2" select="document('test2.xml')"/>


then apply your transform to $doc1 or $doc2

for example;

<xsl:apply-templates select="$doc1"/>
<xsl:apply-templates select="$doc2"/>


gl, jim fuller

----- Original Message -----
From: "Najmi, Jamal" <Jamal.Najmi@Artesia.com>
To: <xsl-list@lists.mulberrytech.com>
Sent: Thursday, April 18, 2002 1:43 PM
Subject: [xsl] XSL manipulating two XMLs


> Is it possibe to transform two separate XMLs with the same XSL to create
an
> HTML page where data is coming from two XMLs based on some rules defined
by
> the XSL.
>
> Thanks
>
> Jamal
>
> -----Original Message-----
> From: Michael Kay [mailto:michael.h.kay@ntlworld.com]
> Sent: Thursday, April 18, 2002 10:06 AM
> To: xsl-list@lists.mulberrytech.com
> Subject: RE: [xsl] setting global parameter in one template and
> accessing in another
>
>
> > Is it possible to set a global parameter in one template and
> > retrieve its
> > value in another template?
> >
>
> No, XSLT is a declarative language and therefore does not allow variable
> assignment. Tell use what your problem is, and someone will tell you how
to
> solve it declaratively.
>
>
> Michael Kay
> Software AG
> home: Michael.H.Kay@ntlworld.com
> work: Michael.Kay@softwareag.com
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>


 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]