## FoXsltTransformer

FoXsltTransformer —

## Synopsis

    #define     FO_XSLT_TRANSFORMER_ERROR
    GQuark      fo_xslt_transformer_error_quark (void);
    enum        FoXsltTransformerError;
    struct      FoXsltTransformer;
    FoXsltTransformer* fo_xslt_transformer_new  (void);
    FoXsltTransformer* fo_xslt_transformer_ref  (FoXsltTransformer *fo_xslt_transformer);
    void        fo_xslt_transformer_unref       (FoXsltTransformer *fo_xslt_transformer);
    gboolean    fo_xslt_transformer_transform   (FoXsltTransformer *fo_xslt_transformer,
                                                 FoLibfoContext *libfo_context,
                                                 GError **error);
    const gchar* fo_xslt_transformer_get_filename
                                                (FoXsltTransformer *fo_xslt_transformer);
    void        fo_xslt_transformer_set_filename
                                                (FoXsltTransformer *fo_xslt_transformer,
                                                 const gchar *filename);
    FoXmlDoc*   fo_xslt_transformer_get_xml_doc (FoXsltTransformer *fo_xslt_transformer);
    void        fo_xslt_transformer_set_xml_doc (FoXsltTransformer *fo_xslt_transformer,
                                                 FoXmlDoc *xml_doc);
    FoXmlDoc*   fo_xslt_transformer_get_result  (FoXsltTransformer *fo_xslt_transformer);

## Description

## Details

### FO_XSLT_TRANSFORMER_ERROR

    #define     FO_XSLT_TRANSFORMER_ERROR

### fo_xslt_transformer_error_quark ()

    GQuark      fo_xslt_transformer_error_quark (void);

Get the error quark for FoXsltTransformer.

If the quark does not yet exist, create it.

Returns : | GQuark associated with FoXsltTransformer errors.

### enum FoXsltTransformerError

    typedef enum
    {
      FO_XSLT_TRANSFORMER_ERROR_FAILED,
      FO_XSLT_TRANSFORMER_ERROR_TRANSFORM_FAILED,
      FO_XSLT_TRANSFORMER_ERROR_PARSE_FAILED,
      FO_XSLT_TRANSFORMER_ERROR_NO_FILENAME,
      FO_XSLT_TRANSFORMER_ERROR_NO_XML_DOC,
      FO_XSLT_TRANSFORMER_ERROR_NO_SGML_CATALOG_FILES
    } FoXsltTransformerError;

### struct FoXsltTransformer

    struct FoXsltTransformer;

### fo_xslt_transformer_new ()

    FoXsltTransformer* fo_xslt_transformer_new  (void);

Creates a new FoXsltTransformer.

Returns : | the newly created FoXsltTransformer. Use fo_xslt_transformer_unref to free the result.

### fo_xslt_transformer_ref ()

    FoXsltTransformer* fo_xslt_transformer_ref  (FoXsltTransformer *fo_xslt_transformer);

Make a copy of a FoXsltTransformer.

`fo_xslt_transformer` : | a FoXsltTransformer
Returns : | a newly allocated FoXsltTransformer. This value must be freed using fo_xslt_transformer_unref().

### fo_xslt_transformer_unref ()

    void        fo_xslt_transformer_unref       (FoXsltTransformer *fo_xslt_transformer);

Unref and possibly free a FoXsltTransformer.

`fo_xslt_transformer` : | FoXsltTransformer.

### fo_xslt_transformer_transform ()

    gboolean    fo_xslt_transformer_transform   (FoXsltTransformer *fo_xslt_transformer,
                                                 FoLibfoContext *libfo_context,
                                                 GError **error);

Transforms `fo_xslt_transformer`.

`fo_xslt_transformer` : | FoXsltTransformer.
`libfo_context` : | FoLibfoContext.
`error` : | GError.
Returns : | Success indication.

### fo_xslt_transformer_get_filename ()

    const gchar* fo_xslt_transformer_get_filename
                                                (FoXsltTransformer *fo_xslt_transformer);

Get the filename in `fo_xslt_transformer`.

`fo_xslt_transformer` : | FoXsltTransformer
Returns : | Filename of file parsed to make `fo_xslt_transformer`.

### fo_xslt_transformer_set_filename ()

    void        fo_xslt_transformer_set_filename
                                                (FoXsltTransformer *fo_xslt_transformer,
                                                 const gchar *filename);

Set the filename in `fo_xslt_transformer`. Voids the transformation result.

`fo_xslt_transformer` : | FoXsltTransformer.
`filename` : | Filename of XSLT stylesheet.

### fo_xslt_transformer_get_xml_doc ()

    FoXmlDoc*   fo_xslt_transformer_get_xml_doc (FoXsltTransformer *fo_xslt_transformer);

Get the FoXmlDoc used as input to `fo_xslt_transformer`.

`fo_xslt_transformer` : | FoXsltTransformer
Returns : | FoXmlDoc used as input to `fo_xslt_transformer`.

### fo_xslt_transformer_set_xml_doc ()

    void        fo_xslt_transformer_set_xml_doc (FoXsltTransformer *fo_xslt_transformer,
                                                 FoXmlDoc *xml_doc);

Set the FoXmlDoc in `fo_xslt_transformer`. Voids the transformation result.

`fo_xslt_transformer` : | FoXsltTransformer.
`xml_doc` : | FoXmlDoc.

### fo_xslt_transformer_get_result ()

    FoXmlDoc*   fo_xslt_transformer_get_result  (FoXsltTransformer *fo_xslt_transformer);

Get the FoXmlDoc used as input to `fo_xslt_transformer`.

`fo_xslt_transformer` : | FoXsltTransformer
Returns : | FoXmlDoc used as input to `fo_xslt_transformer`.