Re: [Gestalt-users] Gexslt crash with xsl:import: URI format?
Status: Alpha
Brought to you by:
colin-adams
From: Florent G. <dar...@ya...> - 2006-08-30 22:58:28
|
Colin Adams wrote: Hi > I have just looked at routine `arity' (using view CVS > repository) and it doesn't seem that the pre-condition is > necessary. Can you comment it out, and try again using the > debugging-version of gexslt (as this certainly isn't the > cause of your problem)? Of course. > To do that, find xm_xslt_function.e in > %GOBO%/library/xml/xslt/style, search for: > arity: > and then add two hyphens (--) to the begining of the line: > attributes_prepared: attributes_prepared > so that it looks like: > -- attributes_prepared: attributes_prepared Done. > Then compile afresh (geant compile_ise_debug - that should > take only a few seconds, as it will be an incremental > compile), and run the test again, posting the new stack > trace here. Running the new build on the reduced sample I sent today (with the three little files), I get the following error: gexslt: system execution failed. Following is the set of recorded exceptions: ------------------------------------------------------------------------------- Class / Object Routine Nature of exception Effect ------------------------------------------------------------------------------- XM_XSLT_FUNCTION prepare_attributes @6 not_excluded: <000000000349B80C> Precondition violated. Fail ------------------------------------------------------------------------------- XM_XSLT_FUNCTION function_fingerprint @5 <000000000349B80C> Routine failure. Fail ------------------------------------------------------------------------------- XM_XSLT_FUNCTION validate @11 <000000000351B36C> Routine failure. Fail ------------------------------------------------------------------------------- XM_XSLT_FUNCTION validate_subtree @9 <000000000351B36C> (From XM_XSLT_STYLE_ELEMENT) Routine failure. Fail ------------------------------------------------------------------------------- XM_XSLT_STYLESHEET preprocess @21 <00000000033FEF4C> Routine failure. Fail ------------------------------------------------------------------------------- XM_XSLT_STYLESHEET_COMPILER create_style_sheet_executable @16 <0000000003332984> Routine failure. Fail ------------------------------------------------------------------------------- XM_XSLT_STYLESHEET_COMPILER prepare @6 <0000000003332984> Routine failure. Fail ------------------------------------------------------------------------------- XM_XSLT_TRANSFORMER_FACTORY create_new_transformer @8 <0000000003329104> Routine failure. Fail ------------------------------------------------------------------------------- GEXSLT process_uris @38 <000000000331003C> Routine failure. Fail ------------------------------------------------------------------------------- GEXSLT execute @42 <000000000331003C> Routine failure. Fail ------------------------------------------------------------------------------- GEXSLT root's creation <000000000331003C> Routine failure. Exit ------------------------------------------------------------------------------- So in the same file I commented out the following line in function_fingerprint: if not attributes_prepared then prepare_attributes end Then the transformation (on the simplified sample) run at the end, and produced no output (only the whitespace nodes, that is correct). Then I came back to the original files, and there I got the following stacktrace (and biginning of output): $ gexslt test/test-hello-world.xts.xsl test/hello-world.xsl <?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="htt p://www.fgeorges.org/xslt-unit/report-to-html.xsl"?> <report xmlns:xsl="http://www.w3.org/1999/XSL/Transform" tested="hello-world.xsl " tested-absolute="file:/c:/Documents%20and%20Settings/Florent%20Georges/My%20Do cuments/xslt/xslt-unit/test/hello-world.xsl" date="2006-08-30T22:36:58.187+02:00 "> <variable name="elem" as="element()"> <elem id="id"/> </variable>Tests: hello-world(), arity 0 <tests id="hello-world-0"> <title>hello-world(), arity 0</title> <expect-selected>Hello, world!</expect-selected> gexslt: system execution failed. Following is the set of recorded exceptions: ------------------------------------------------------------------------------- Class / Object Routine Nature of exception Effect ------------------------------------------------------------------------------- XM_XSLT_USER_FUNCTION_CALL create_node_iterator @1 node_sequence: <0000000003325B4C> Precondition violated. Fail ------------------------------------------------------------------------------- XM_XSLT_COMPILED_FOR_EACH map_nodes @2 <0000000003325A14> Routine failure. Fail ------------------------------------------------------------------------------- XM_XPATH_NODE_MAPPING_ITERATOR advance @26 <0000000003533F34> Routine failure. Fail ------------------------------------------------------------------------------- XM_XPATH_NODE_MAPPING_ITERATOR forth @4 <0000000003533F34> Routine failure. Fail ------------------------------------------------------------------------------- XM_XPATH_NODE_MAPPING_ITERATOR start @3 <0000000003533F34> (From XM_XPATH_SEQUENCE_ITERATOR) Routine failure. Fail ------------------------------------------------------------------------------- XM_XPATH_PROGRESSIVE_ITERATOR forth @9 <0000000003533FEC> Routine failure. Fail ------------------------------------------------------------------------------- XM_XPATH_PROGRESSIVE_ITERATOR start @3 <0000000003533FEC> (From XM_XPATH_SEQUENCE_ITERATOR) Routine failure. Fail ------------------------------------------------------------------------------- XM_XPATH_SINGLETON_ATOMIZER evaluate_item @8 <000000000332676C> Routine failure. Fail ------------------------------------------------------------------------------- XM_XPATH_VALUE_COMPARISON calculate_effective_boolean_value @11 <000000000332663C> Routine failure. Fail ------------------------------------------------------------------------------- XM_XPATH_IF_EXPRESSION evaluate_item @5 <000000000332650C> Routine failure. Fail ------------------------------------------------------------------------------- XM_XPATH_IF_EXPRESSION eagerly_evaluate @49 <000000000332650C> (From XM_XPATH_EXPRESSION) Routine failure. Fail ------------------------------------------------------------------------------- XM_XPATH_IF_EXPRESSION lazily_evaluate @13 <000000000332650C> (From XM_XPATH_COMPUTED_EXPRESSION) Routine failure. Fail ------------------------------------------------------------------------------- XM_XPATH_LET_EXPRESSION process @7 <000000000332638C> Routine failure. Fail ------------------------------------------------------------------------------- XM_XSLT_BLOCK process_leaving_tail @13 <0000000003325064> Routine failure. Fail ------------------------------------------------------------------------------- XM_XSLT_BLOCK process @7 <0000000003325064> (From XM_XSLT_INSTRUCTION) Routine failure. Fail ------------------------------------------------------------------------------- XM_XPATH_LET_EXPRESSION process @17 <0000000003325314> Routine failure. Fail ------------------------------------------------------------------------------- XM_XSLT_COMPILED_TEMPLATE expand @6 <000000000335A9BC> Routine failure. Fail ------------------------------------------------------------------------------- XM_XSLT_COMPILED_CALL process @10 <000000000335A884> Routine failure. Fail ------------------------------------------------------------------------------- XM_XSLT_COMPILED_CALL process_leaving_tail @5 <000000000335A884> Routine failure. Fail ------------------------------------------------------------------------------- XM_XSLT_BLOCK process_leaving_tail @11 <0000000003359E6C> Routine failure. Fail ------------------------------------------------------------------------------- XM_XSLT_BLOCK process @7 <0000000003359E6C> (From XM_XSLT_INSTRUCTION) Routine failure. Fail ------------------------------------------------------------------------------- XM_XSLT_FIXED_ELEMENT process_leaving_tail @22 <0000000003359D24> (From XM_XSLT_ELEMENT_CONSTRUCTOR) Routine failure. Fail ------------------------------------------------------------------------------- XM_XSLT_BLOCK process_leaving_tail @11 <000000000335916C> Routine failure. Fail ------------------------------------------------------------------------------- XM_XSLT_COMPILED_TEMPLATE expand @4 <000000000335913C> Routine failure. Fail ------------------------------------------------------------------------------- XM_XSLT_COMPILED_CALL process @10 <0000000003359004> Routine failure. Fail ------------------------------------------------------------------------------- XM_XSLT_COMPILED_CALL process_leaving_tail @5 <0000000003359004> Routine failure. Fail ------------------------------------------------------------------------------- XM_XSLT_BLOCK process_leaving_tail @11 <00000000033576D4> Routine failure. Fail ------------------------------------------------------------------------------- XM_XSLT_BLOCK process @7 <00000000033576D4> (From XM_XSLT_INSTRUCTION) Routine failure. Fail ------------------------------------------------------------------------------- XM_XSLT_FIXED_ELEMENT process_leaving_tail @22 <000000000335758C> (From XM_XSLT_ELEMENT_CONSTRUCTOR) Routine failure. Fail ------------------------------------------------------------------------------- XM_XSLT_BLOCK process_leaving_tail @11 <0000000003356A54> Routine failure. Fail ------------------------------------------------------------------------------- XM_XSLT_COMPILED_TEMPLATE expand @4 <0000000003356A24> Routine failure. Fail ------------------------------------------------------------------------------- XM_XSLT_COMPILED_TEMPLATE process_leaving_tail @5 <0000000003356A24> Routine failure. Fail ------------------------------------------------------------------------------- XM_XSLT_TRANSFORMER apply_templates @28 <0000000003470674> (From XM_XSLT_TEMPLATE_ROUTINES) Routine failure. Fail ------------------------------------------------------------------------------- XM_XSLT_TRANSFORMER perform_transformation @7 <0000000003470674> Routine failure. Fail ------------------------------------------------------------------------------- XM_XSLT_TRANSFORMER transform_document @19 <0000000003470674> Routine failure. Fail ------------------------------------------------------------------------------- XM_XSLT_TRANSFORMER transform @66 <0000000003470674> Routine failure. Fail ------------------------------------------------------------------------------- GEXSLT perform_transformation @32 <0000000003F9795C> Routine failure. Fail ------------------------------------------------------------------------------- GEXSLT execute @44 <0000000003F9795C> Routine failure. Fail ------------------------------------------------------------------------------- GEXSLT root's creation <0000000003F9795C> Routine failure. Exit ------------------------------------------------------------------------------- I let you deduce the conclusion ;-). I put the two files (input + stylesheet) there: http://www.fgeorges.org/tmp/hello-world.xsl http://www.fgeorges.org/tmp/test-hello-world.xts.xsl > Your first lesson in Eiffel :-) Ayup. > Note that the keyword "require" on the line above > introduces the pre-conditions for the routine. Yes, I guessed that. The only thing I know about Eiffel, I must admit, is that it has native support for the programing by contract. As I said, unfortunately, I'll not be able to follow any discussion until the 5th of September at least (maybe a little tomorrow). But I'll check the Gestalt mailing list on the 5th. Enjoy ;-) Regards, --drkm p5.vert.ukl.yahoo.com uncompressed/chunked Wed Aug 30 12:13:41 GMT 2006 ___________________________________________________________________________ Découvrez un nouveau moyen de poser toutes vos questions quelque soit le sujet ! Yahoo! Questions/Réponses pour partager vos connaissances, vos opinions et vos expériences. http://fr.answers.yahoo.com |