RE: [xep-support] xsl:import - split a stylesheet?

From: Jeff Beal (jeff.beal@ansys.com)
Date: Thu Mar 27 2003 - 05:48:35 PST

  • Next message: W. Eliot Kimber: "Re: [xep-support] More on <rx:page-index>: feature request"

    Try changing the order of your imports so the attribute-set declarations (in
    pdf_styles.xsl) are before their use (in pdf_toc.xsl).

    -----Original Message-----
    From: Obenaus, Detlef [mailto:DObenaus@frankfurt.sema.slb.com]
    Sent: Thursday, March 27, 2003 7:58 AM
    To: xep-support@renderx.com
    Subject: [xep-support] xsl:import - split a stylesheet?

    Hello,

    I want to split my stylesheet in different XSL files.

    Therefore I want to use xsl:import in my main stylesheet
    seminar2pdf_main.xsl:

    <xsl:import href="./seminar2pdf_cover_front.xsl"/>
    <xsl:import href="./seminar2pdf_cover_back.xsl"/>
    <xsl:import href="./seminar2pdf_document_info.xsl"/>
    <xsl:import href="./seminar2pdf_toc.xsl"/>
    <xsl:import href="./seminar2pdf_body.xsl"/>
    <xsl:import href="./seminar2pdf_glossary.xsl"/>
    <xsl:import href="./seminar2pdf_scripts.xsl"/>
    <xsl:import href="./seminar2pdf_styles.xsl"/>
    <xsl:import href="./seminar2pdf_translate_en.xsl"/>

    But something is wrong, if I call xep:

    D:\Data\Diet\XSL\Testenviroment\PDFEngine>xep -xml Seminar_TA_1711_rep.xml
    -xsl ../seminar/seminar2pdf_main.xsl -out Seminar_RenderX.pdf
    Error at fo:block on line 174 of
    file:/D:/Data/Diet/XSL/Testenviroment/seminar/seminar2pdf_toc.xsl: No
    attribute-set exists named TOCNumber
    Error at fo:block on line 201 of
    file:/D:/Data/Diet/XSL/Testenviroment/seminar/seminar2pdf_toc.xsl: No
    attribute-set exists named TOCNumber
    Error at fo:block on line 228 of
    file:/D:/Data/Diet/XSL/Testenviroment/seminar/seminar2pdf_toc.xsl: No
    attribute-set exists named TOCNumber
    Error at fo:block on line 255 of
    file:/D:/Data/Diet/XSL/Testenviroment/seminar/seminar2pdf_toc.xsl: No
    attribute-set exists named TOCNumber
    Formatting failed: the formatter has thrown an exception.
    javax.xml.transform.TransformerConfigurationException: Failed to compile
    stylesheet. 4 errors detected.
    Some problems may be caused by incorrect input. Is your XSL FO source
    validated?

    The attributes-set exist in seminar2pdf_styles.xsl.

    Could you give me a hint!?

    Regards,

    Detlef Obenaus
    Technical Writer

    SchlumbergerSema Management GmbH
    Otto-Hahn-Straße 36
    63303 Dreieich

    Tel.: +49 (0) 69 23 83-33 90

    EMail: DObenaus@frankfurt.sema.slb.com

    -------------------
    (*) To unsubscribe, send a message with words 'unsubscribe xep-support'
    in the body of the message to majordomo@renderx.com from the address
    you are subscribed from.
    (*) By using the Service, you expressly agree to these Terms of Service
    http://www.renderx.com/tos.html

    -------------------
    (*) To unsubscribe, send a message with words 'unsubscribe xep-support'
    in the body of the message to majordomo@renderx.com from the address
    you are subscribed from.
    (*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html



    This archive was generated by hypermail 2.1.5 : Thu Mar 27 2003 - 05:40:42 PST