RE: Using values from a different XML as attribute values
I see that you cross-posted this to the XSL list (not considered good form), but you can find many examples of doing what you want to do on that list's archives. Search for the 'document()' function. -- Charles Knell [EMAIL PROTECTED] - email -Original Message- From: Sent: Wed, 8 Oct 2003 09:56:44 -0700 (PDT) To: [EMAIL PROTECTED] Subject: Using values from a different XML as attribute values Hi, I know this list is mainly for FOP questions. My question in mainly related to XSLT but I am posting this just in case if anyone has done what I am trying to achieve. I dont really know if what I have in mind is feasible. I have a stylesheet that is used for a number of documents. This stylesheet is used to generate PDF using FOP. Hence I am setting various attribute values such as page size, margins, font-size, font-family etc in the stylesheet. What I would like to know is that is there a way to get the values of these paramters from another XML file dynamically. I mean depending on the attribute values in the XML I want to conver to PDF I would like to get values from another XML for the above mentioned attributes. I think this is like opening a XML file through XSL and accessing the content in the XML. I would like to know if this is feasible and if anyone has tried something similar. Thanks, Abhi __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Using values from a different XML as attribute values
-Original Message- From: Abhijit Junnare [mailto:[EMAIL PROTECTED] I would like to know if this is feasible and if anyone has tried something similar. It certainly is feasible. I remember a vaguely similar situation where I had to have multi-language support, and I did not want to hard-code a separate XSLT for each language... There are a number of possible approaches. In attachment you will find two possible methods of dealing with this. I dl'ed them from some 'XML-tips' website, but I seem to have lost the address... As you can derive from the names of the zips, there should also exist a 'Method1', but for some reason I didn't find that method to be very useful. (Sorry I can't be more specific; it's been quite a long time since I had a look at these, but they may give you some ideas.) I hope you find them to be of use. XSL needs to be modified if you want to use the second XML for attribute values instead of element names. Greetz, Andreas attachment: Method3.zip attachment: Method2.zip - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Using values from a different XML as attribute values
Thanks a lot for your help. Will keep your suggestion in mind. Thanks again. Abhi --- [EMAIL PROTECTED] wrote: I see that you cross-posted this to the XSL list (not considered good form), but you can find many examples of doing what you want to do on that list's archives. Search for the 'document()' function. -- Charles Knell [EMAIL PROTECTED] - email -Original Message- From: Sent: Wed, 8 Oct 2003 09:56:44 -0700 (PDT) To: [EMAIL PROTECTED] Subject: Using values from a different XML as attribute values Hi, I know this list is mainly for FOP questions. My question in mainly related to XSLT but I am posting this just in case if anyone has done what I am trying to achieve. I dont really know if what I have in mind is feasible. I have a stylesheet that is used for a number of documents. This stylesheet is used to generate PDF using FOP. Hence I am setting various attribute values such as page size, margins, font-size, font-family etc in the stylesheet. What I would like to know is that is there a way to get the values of these paramters from another XML file dynamically. I mean depending on the attribute values in the XML I want to conver to PDF I would like to get values from another XML for the above mentioned attributes. I think this is like opening a XML file through XSL and accessing the content in the XML. I would like to know if this is feasible and if anyone has tried something similar. Thanks, Abhi __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Blank pages in PDF was: Re: Using values from a different XML as attribute values
Jignesh-NX01880 Kapadia wrote: The out out contains sometimes a blank page in between and also some of the pages are duplicated. I went through the code but could not find out what pattent causes it. Check http://xml.apache.org/fop/faq.html#blank-page-between-page-sequences for how to deal with blank pages. It is also possible that you are actually requesting FOP to insert blank pages by other means. Also we get a blank page at the end of .PDF generation. Most likely the same as above, additionally it could be caused by a variety of other reasons. It would help if you also seek local assistance on mailing list etiquette. Specifically, if you want to ask a new question, don't reply to an existing, completely unrelated message. For further help, recast your question. See http://xml.apache.org/fop/maillist.html for ressources which may help you in restating your problem. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]