[docbook-apps] Preprocess ?
Hello list, I would like to make a kind of preprocess to my docbook's files but I don't know How to do that. Let me explain. Inside my sources file there is a lot of imageobject conformance=custom_size imagedata fileref=picture.tiff/ /imageobject imageobject conformance=USLetters imagedata fileref=picture.png/ /imageobject The value of profile.conformance is defined inside my custom stylesheet. The problem is how can I generate a docbook file (not a fop one) with only the right imageobject ? Thanks in advance, Jacques - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
Re: [docbook-apps] Preprocess ?
On 04/07/2010 05:24 AM, Jacques Foucry wrote: Hello list, I would like to make a kind of preprocess to my docbook's files but I don't know How to do that. Let me explain. Inside my sources file there is a lot of imageobject conformance=custom_size imagedata fileref=picture.tiff/ /imageobject imageobject conformance=USLetters imagedata fileref=picture.png/ /imageobject The value of profile.conformance is defined inside my custom stylesheet. The problem is how can I generate a docbook file (not a fop one) with only the right imageobject ? I believe that's exactly what profiling allows you to do. Specifically, with two-phase processing: http://www.sagehill.net/docbookxsl/AlternateText.html#ProfileFilter Stefan -- ...ich hab' noch einen Koffer in Berlin... - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
Re: [docbook-apps] Preprocess ?
hi, Stefan Seefeld wrote: On 04/07/2010 05:24 AM, Jacques Foucry wrote: Hello list, I would like to make a kind of preprocess to my docbook's files but I don't know How to do that. Let me explain. Inside my sources file there is a lot of imageobject conformance=custom_size imagedata fileref=picture.tiff/ /imageobject imageobject conformance=USLetters imagedata fileref=picture.png/ /imageobject The value of profile.conformance is defined inside my custom stylesheet. The problem is how can I generate a docbook file (not a fop one) with only the right imageobject ? I believe that's exactly what profiling allows you to do. Specifically, with two-phase processing: http://www.sagehill.net/docbookxsl/AlternateText.html#ProfileFilter Stefan This is interesting. Do you think one could use it to create a variant of the xsl? This would be useful if you need to apply the very same xsl to dozens of xml sources. Stefan - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
Re: [docbook-apps] Preprocess ?
On 7 avr. 2010, at 13:00, Stefan Seefeld wrote: Hello Stefan, I believe that's exactly what profiling allows you to do. Specifically, with two-phase processing: http://www.sagehill.net/docbookxsl/AlternateText.html#ProfileFilter Yes, you find the answer. I read many times Bob's book and many time this section but... As you know human memory doesn't work as expected :-) Thanks a lot, Jacques - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
Re: [docbook-apps] Preprocess ?
On 04/07/2010 10:53 AM, Stefan Kost wrote: hi, Stefan Seefeld wrote: On 04/07/2010 05:24 AM, Jacques Foucry wrote: Hello list, I would like to make a kind of preprocess to my docbook's files but I don't know How to do that. Let me explain. Inside my sources file there is a lot of imageobject conformance=custom_size imagedata fileref=picture.tiff/ /imageobject imageobject conformance=USLetters imagedata fileref=picture.png/ /imageobject The value of profile.conformance is defined inside my custom stylesheet. The problem is how can I generate a docbook file (not a fop one) with only the right imageobject ? I believe that's exactly what profiling allows you to do. Specifically, with two-phase processing: http://www.sagehill.net/docbookxsl/AlternateText.html#ProfileFilter Stefan This is interesting. Do you think one could use it to create a variant of the xsl? This would be useful if you need to apply the very same xsl to dozens of xml sources. I'm afraid I don't understand the question. What do you mean by variant of the xsl ? Are you suggesting to profile the stylesheets instead of the docbook sources themselves ? Sorry, Stefan -- ...ich hab' noch einen Koffer in Berlin... - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
Re: [docbook-apps] Preprocess ?
Am 07.04.2010 18:22, schrieb Stefan Seefeld: On 04/07/2010 10:53 AM, Stefan Kost wrote: hi, Stefan Seefeld wrote: On 04/07/2010 05:24 AM, Jacques Foucry wrote: Hello list, I would like to make a kind of preprocess to my docbook's files but I don't know How to do that. Let me explain. Inside my sources file there is a lot of imageobject conformance=custom_size imagedata fileref=picture.tiff/ /imageobject imageobject conformance=USLetters imagedata fileref=picture.png/ /imageobject The value of profile.conformance is defined inside my custom stylesheet. The problem is how can I generate a docbook file (not a fop one) with only the right imageobject ? I believe that's exactly what profiling allows you to do. Specifically, with two-phase processing: http://www.sagehill.net/docbookxsl/AlternateText.html#ProfileFilter Stefan This is interesting. Do you think one could use it to create a variant of the xsl? This would be useful if you need to apply the very same xsl to dozens of xml sources. I'm afraid I don't understand the question. What do you mean by variant of the xsl ? Are you suggesting to profile the stylesheets instead of the docbook sources themselves ? Right now one needs to write a customization layer to override templates etc. Unfortunately this is making the processing even slower. It would be nice to preprocess the xsl to a single file, resolve constant expressions and kick out dead codepath. This all in the hope that processing the own xml docuemnts with the prerpocessed xsl would be faster. Stefan Sorry, Stefan - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org