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: : How to handle two XML sources in one style sheet


one can easily create

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

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

then reference would be through its var name

for example <xsl:apply-templates select="$doc1"/> would apply templates to
doc1

or

for example <xsl:value-of select="$doc2//test"/> would print out the value
of test element in doc2

i think that purchasing a nice xslt book would be a good starting point (
recc. Mike Kay's XSLT tome ).

cheers, jim fuller
----- Original Message -----
From: "Hewko, Doug" <Doug.Hewko@ccra-adrc.gc.ca>
To: <xsl-list@lists.mulberrytech.com>
Sent: Monday, October 01, 2001 3:58 PM
Subject: RE: [xsl]: How to handle two XML sources in one style sheet


> In the referenced example, how does the stylesheet know to use doc1.xml
and
> doc2.xml instead of foo.xml and filename.xml? There is no reference to the
> two xml filenames "doc1.xml" and "doc2.xml".
>
> > -----Original Message-----
> > From: cutlass [mailto:cutlass@secure0.com]
> > Sent: October 1, 2001 10:05 AM
> > To: xsl-list@lists.mulberrytech.com
> > Subject: Re: [xsl]: How to handle two XML sources in one style sheet
> >
> >
> > http://www.dpawson.co.uk/xsl/sect2/N2602.html
> >
> > yes it is amazing
> >
> > jim fuller
> > ----- Original Message -----
> > From: "Uronis, Jeremy" <Jeremy.Uronis@usa.xerox.com>
> > To: <xsl-list@lists.mulberrytech.com>
> > Sent: Monday, October 01, 2001 3:01 PM
> > Subject: RE: [xsl]: How to handle two XML sources in one style sheet
> >
> >
> > > Would you be kind enough to point me to
> > > some sample code?
> > >
> > > Thank you - Jeremy
> > >
> > > -----Original Message-----
> > > From: Michael Kay [mailto:mhkay@iclway.co.uk]
> > > Sent: Friday, September 28, 2001 3:22 PM
> > > To: xsl-list@lists.mulberrytech.com
> > > Subject: RE: [xsl]: How to handle two XML sources in one style sheet
> > >
> > >
> > > > This has been causing me problems. How to I create the
> > > > left side of the page with one string of XML data
> > > > and the right side of the page with another string
> > > > of XML data from the same style sheet?
> > > >
> > > By using the XSLT document() function.
> > >
> > > It's amazing how often this question is asked.
> > >
> > > Mike Kay
> > >
> > >  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
>


 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]