[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
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|