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

Re: multiple source files map to multiple target files

Subject: Re: multiple source files map to multiple target files
From: "Jon Gorman" <jonathan.gorman@xxxxxxxxx>
Date: Thu, 6 Apr 2006 12:47:23 -0500
evan gorman
On 4/6/06, Gosselin, Michael <Michael.Gosselin@xxxxxxxxxxxxxxxxxxxxx> wrote:
> Hi Evan et al,
>
> I am having a problem with document() as well.

I really don't see how your problem fits in with this thread though.
Typically it's better form to start a new thread if you have a
different problem.

> <file>
>    <first>the first element</first>
>    <second>the second element</second>
>    <third>the third element</third>
> </file>
>
> How do I call the document() function to get the individual nodes out of
the
> file "file.xml" to be used by FOP in "current.xsl"?

document("file.xml")/file/first or document("file.xml")/file or the like.

>
> I tried a merge, but it basically gave me all of both files, then formatted
> according to the "current.xsl".

I have no idea what you're talking about.  How did you try a "merge"?

> Do I need to create a second style sheet to
> use with xsl:apply-templates?

Not unless you're doing something weird.


> The information I found on the document()
> function wasn't extensive.

Where did you look?  The specs have an example or two.  Not all of
them are in the document section, some are given close to it if I
recall correctly.  The FAQ has an entire section:
http://www.dpawson.co.uk/xsl/sect2/N2602.html.  Googling document()
xslt turned up several pages.  Not to necessarily say that any of
these resources are extensive, but they should all answer basic
questions like referring to an element within an external document.

 Jon Gorman

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.