Subject: 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