cancel
Showing results for 
Search instead for 
Did you mean: 

XSLT transformation

boa
Champ in-the-making
Champ in-the-making
Hi All,

I have some XML documents. Now I want to create some custom actions (and rules) to do a server side XSLT transformation to HTML and XSL FO (for PDF output) using Saxon and Apache FOP. What is the correct approach for implementing that action.

Thank you in advance.

Boa
1 REPLY 1

valentin
Champ in-the-making
Champ in-the-making
Hi,

I also want to make a custom transformation (XML to PDF), but I have some problems.
I wrote java code what make the transformation (extended from AbstractContentTransformer2), and I wanted to add it to transformation actions (see below). It doesn't give any error messages but the output pdf is the original XML just the file name is different. I think alfresco didn't use my class to transformation.

<bean id="transformer.XMLPDF" class="com.bull.transformation.fop.XmlPdf" parent="baseContentTransformer">
     <property name="explicitTransformations">
         <list>
            <!–bean class="org.alfresco.repo.content.transform.ContentTransformerRegistry$TransformationKey" –>
            <bean class="org.alfresco.repo.content.transform.ExplictTransformationDetails" >
               
                <constructor-arg><value>text/xml</value></constructor-arg>
                <constructor-arg><value>application/pdf</value></constructor-arg>
            </bean>


I'm interested in any other solutions to how to make a pdf from xml (with xslt) too.
Thanks for your help.