|
Subject: Re: [xsl]: How to handle two XML sources in one style sheet From: "cutlass" <cutlass@xxxxxxxxxxx> Date: Mon, 1 Oct 2001 16:09:37 +0100 |
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@xxxxxxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
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@xxxxxxxxxxx]
> > Sent: October 1, 2001 10:05 AM
> > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> > 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@xxxxxxxxxxxxx>
> > To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
> > 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@xxxxxxxxxxxx]
> > > Sent: Friday, September 28, 2001 3:22 PM
> > > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> > > 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
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: [xsl]: How to handle two XML so, Hewko, Doug | Thread | RE: [xsl]: How to handle two XML so, Uronis, Jeremy |
| RE: [xsl]: How to handle two XML so, Uronis, Jeremy | Date | Re: [xsl] Why doesn't XSL properly , cutlass |
| Month |