You can improve the use of the document() function if you do something
like that: 

document('urltoyourxmlfile')/mystuff/entry[position() = 3]/text

which basically means that you can append an XPath statement to further
restrict the content to be included. I use this to include language
dependant textblocks. If you wrap the result using node-set() function
(See Xalan documentation) you can even apply templates from your
stylesheet to it.

> Thanks for your reply. The problem is that I need to replace certain place 
> holders in my .fo file with corresponding tags in the xml file. I dont need 
> to dump the whole xml file in the fo file. For eg:
> To: <replace with Client Name>
>  
> is in the fo file, and the client name is in the xml file as a tag.

Cheers,
Jeremias Märki

mailto:[EMAIL PROTECTED]

OUTLINE AG
Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
Tel. +41 41 317 2020 - Fax +41 41 317 2029
Internet http://www.outline.ch

Reply via email to