[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: XSL manipulating two XMLs

Subject: RE: XSL manipulating two XMLs
From: "Najmi, Jamal" <Jamal.Najmi@xxxxxxxxxxx>
Date: Thu, 18 Apr 2002 09:19:50 -0400
RE:  XSL manipulating two XMLs
Thanks for the quick response!

I am using xalan for transformatrion in servlets.  How would that work with
the xalan API?  Is there API to associate two XML sources with one XSL
source?

Jamal  

  

-----Original Message-----
From: cutlass [mailto:cutlass@xxxxxxxxxxx]
Sent: Thursday, April 18, 2002 1:57 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: 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@xxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Thursday, April 18, 2002 1:43 PM
Subject:  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@xxxxxxxxxxxx]
> Sent: Thursday, April 18, 2002 10:06 AM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: RE:  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@xxxxxxxxxxxx
> work: Michael.Kay@xxxxxxxxxxxxxx
>
>
>  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

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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.