forum.bitel.ru http://forum.bitel.ru/ |
|
Валидация XSL http://forum.bitel.ru/viewtopic.php?f=22&t=10064 |
Страница 1 из 1 |
Автор: | max [ 06 янв 2015, 19:26 ] |
Заголовок сообщения: | Валидация XSL |
После обновления наступили на грабли того что вместо карточки договора отображается чёрный крест. Взяли валидатор что хелпе по обновлению натравили на файл, кое что поправили, но вот кто подскажет что не так щас? Код: the path 'dogovor_in.xsl' is file process file 'dogovor_in.xsl'... =>validator XmlSaxErrorsValidator : OK XSL-FO detected =>validator FoFileValidator : OK =>validator TableBlockValidator : OK =>validator TableAttributesValidator : OK =>validator BlockWhiteSpaceCollapseValidator : OK =>validator TableColumnCountValidator : OK line:408,col:22; корректная таблица уровня 1: ** line:703,col:22; корректная таблица уровня 1: ** line:740,col:22; корректная таблица уровня 1: ** line:1008,col:22; корректная таблица уровня 1: ** line:1045,col:22; корректная таблица уровня 1: ** line:1324,col:22; корректная таблица уровня 1: ** line:1361,col:22; корректная таблица уровня 1: ** line:1745,col:24; корректная таблица уровня 1: ** ** ** ** ** ** ** ** line:1797,col:24; корректная таблица уровня 1: ** ** ** line:1821,col:22; корректная таблица уровня 1: ** line:1857,col:22; корректная таблица уровня 1: ** line:1893,col:22; корректная таблица уровня 1: ** line:1945,col:24; корректная таблица уровня 1: ** ** line:1975,col:24; корректная таблица уровня 1: ** line:2061,col:24; корректная таблица уровня 1: **** **** line:2187,col:24; корректная таблица уровня 1: ***** ***** ***** line:2309,col:34; корректная таблица уровня 2: -- -- ** ** ** -- line:2394,col:34; корректная таблица уровня 2: -- -- ** ** ** -- line:2485,col:34; корректная таблица уровня 2: -- -- ** ** ** -- line:2586,col:34; корректная таблица уровня 2: -- ** ** ** ** ** line:2591,col:24; корректная таблица уровня 1: ** ** line:2663,col:24; корректная таблица уровня 1: ** ** ** ** line:2695,col:24; корректная таблица уровня 1: ** =>validator TableColumnCountValidator2 : OK дополнительная валидация по xsd (карточки шаблонъ): xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-datatype-valid.1.2.3: '?scale-to-fit' is not a valid value of union type 'content_height_Type'., line: -1, column: -1 xml error: cvc-attribute.3: The value '?scale-to-fit' of attribute 'content-width' on element 'fo:external-graphic' is not valid with respect to its type, 'content_height_Type'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-datatype-valid.1.2.3: '?scale-to-fit' is not a valid value of union type 'content_height_Type'., line: -1, column: -1 xml error: cvc-attribute.3: The value '?scale-to-fit' of attribute 'content-width' on element 'fo:external-graphic' is not valid with respect to its type, 'content_height_Type'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-datatype-valid.1.2.3: '?scale-to-fit' is not a valid value of union type 'content_height_Type'., line: -1, column: -1 xml error: cvc-attribute.3: The value '?scale-to-fit' of attribute 'content-width' on element 'fo:external-graphic' is not valid with respect to its type, 'content_height_Type'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-datatype-valid.1.2.3: '?scale-to-fit' is not a valid value of union type 'content_height_Type'., line: -1, column: -1 xml error: cvc-attribute.3: The value '?scale-to-fit' of attribute 'content-width' on element 'fo:external-graphic' is not valid with respect to its type, 'content_height_Type'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-datatype-valid.1.2.3: '?scale-to-fit' is not a valid value of union type 'content_height_Type'., line: -1, column: -1 xml error: cvc-attribute.3: The value '?scale-to-fit' of attribute 'content-width' on element 'fo:external-graphic' is not valid with respect to its type, 'content_height_Type'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-datatype-valid.1.2.3: '?scale-to-fit' is not a valid value of union type 'content_height_Type'., line: -1, column: -1 xml error: cvc-attribute.3: The value '?scale-to-fit' of attribute 'content-width' on element 'fo:external-graphic' is not valid with respect to its type, 'content_height_Type'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-datatype-valid.1.2.3: '?scale-to-fit' is not a valid value of union type 'content_height_Type'., line: -1, column: -1 xml error: cvc-attribute.3: The value '?scale-to-fit' of attribute 'content-width' on element 'fo:external-graphic' is not valid with respect to its type, 'content_height_Type'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-datatype-valid.1.2.3: '?scale-to-fit' is not a valid value of union type 'content_height_Type'., line: -1, column: -1 xml error: cvc-attribute.3: The value '?scale-to-fit' of attribute 'content-width' on element 'fo:external-graphic' is not valid with respect to its type, 'content_height_Type'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-datatype-valid.1.2.3: 'proportional-column-width(auto)' is not a valid value of union type 'column_width_Type'., line: -1, column: -1 xml error: cvc-attribute.3: The value 'proportional-column-width(auto)' of attribute 'column-width' on element 'fo:table-column' is not valid with respect to its type, 'column_width_Type'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'align' is not allowed to appear in element 'fo:table-cell'., line: -1, column: -1 xml error: cvc-datatype-valid.1.2.3: 'proportional-column-width(auto)' is not a valid value of union type 'column_width_Type'., line: -1, column: -1 xml error: cvc-attribute.3: The value 'proportional-column-width(auto)' of attribute 'column-width' on element 'fo:table-column' is not valid with respect to its type, 'column_width_Type'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-datatype-valid.1.2.3: 'proportional-column-width(auto)' is not a valid value of union type 'column_width_Type'., line: -1, column: -1 xml error: cvc-attribute.3: The value 'proportional-column-width(auto)' of attribute 'column-width' on element 'fo:table-column' is not valid with respect to its type, 'column_width_Type'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-datatype-valid.1.2.3: 'proportional-column-width(auto)' is not a valid value of union type 'column_width_Type'., line: -1, column: -1 xml error: cvc-attribute.3: The value 'proportional-column-width(auto)' of attribute 'column-width' on element 'fo:table-column' is not valid with respect to its type, 'column_width_Type'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-datatype-valid.1.2.3: 'proportional-column-width(auto)' is not a valid value of union type 'column_width_Type'., line: -1, column: -1 xml error: cvc-attribute.3: The value 'proportional-column-width(auto)' of attribute 'column-width' on element 'fo:table-column' is not valid with respect to its type, 'column_width_Type'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-datatype-valid.1.2.3: '?scale-to-fit' is not a valid value of union type 'content_height_Type'., line: -1, column: -1 xml error: cvc-attribute.3: The value '?scale-to-fit' of attribute 'content-width' on element 'fo:external-graphic' is not valid with respect to its type, 'content_height_Type'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 xml error: cvc-complex-type.3.2.2: Attribute 'text-decoration' is not allowed to appear in element 'fo:block'., line: -1, column: -1 =>validator XsdValidator : OK попытка отрендерить в pdf (карточки шаблонъ): ошибка рендеринга в pdf =>validator FoRenderValidator : STOP Координата линии -1 это конечно прикольно, но если честно абсолютно нифига не понятно чё делать дальше.... |
Автор: | skn [ 07 янв 2015, 02:17 ] |
Заголовок сообщения: | Re: Валидация XSL |
попробуйте поискать по тексту "text-decoration" и удалите этот аттрибут |
Автор: | max [ 07 янв 2015, 05:45 ] |
Заголовок сообщения: | Re: Валидация XSL |
А что делать вот с этим? Код: xml error: cvc-attribute.3: The value '?scale-to-fit' of attribute 'content-width' on element 'fo:external-graphic' is not valid with respect to its type, 'content_height_Type'., line: -1, column: -1
|
Автор: | dimOn [ 07 янв 2015, 17:29 ] |
Заголовок сообщения: | Re: Валидация XSL |
max писал(а): А что делать вот с этим? Код: xml error: cvc-attribute.3: The value '?scale-to-fit' of attribute 'content-width' on element 'fo:external-graphic' is not valid with respect to its type, 'content_height_Type'., line: -1, column: -1 ну, наверное, тоже надо убрать... вы зачем это добавляли? когда в клиенте рисуется чёрный крест - в логах (клиента) что происходит? |
Автор: | max [ 07 янв 2015, 19:37 ] |
Заголовок сообщения: | Re: Валидация XSL |
Тут как бы такое дело, шаблон рисовали не мы, а подрядчики и было это давно, очень давно, ибо для нас этот xlst долбанная клинопись шумерская. И вот мы тут обновились с 5.1 на 5.2 и вылезла такая фигня. Подрядчика уже давно нет, а разгребать приходится мне. По логам клиента: Код: http://10.0.0.222:8080/bgbilling/executer?BGBillingSecret=xKwODqxx3Y8dmR92UGuMWeFu&module=contract&action=ContractCard2&type=dogovor_in.xsl&cid=58&
[ length = 120476 ] xml = <?xml version="1.0" encoding="windows-1251"?><data secret="547867DE563E5B26D0F3A50BDA262E9A" status="ok"><fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:counter="bitel.billing.server.util.exslt.Counter" xmlns:sql="bitel.billing.server.util.exslt.SQLQuery" xmlns:svg="http://www.w3.org/2000/svg" xmlns:utils="bitel.billing.server.util.Utils" xmlns:xalan="http://xml.apache.org/xalan"><fo:layout-master-set><fo:simple-page-master margin-bottom="0.0cm" margin-left="0.8cm" margin-right="0.8cm" margin-top="0.4cm" master-name="first" page-height="30.5cm" page-width="21cm"><fo:region-body margin-bottom="0.0cm" margin-top="0.0cm"/><fo:region-before extent="0.0cm"/><fo:region-after extent="0.0cm"/></fo:simple-page-master></fo:layout-master-set><fo:page-sequence master-reference="first"><fo:flow flow-name="xsl-region-body"><fo:table space-after="0.3cm" table-layout="fixed"><fo:table-column column-width="10cm"/><fo:table-column column-width="proportional-column-width(1)"/><fo:table-body><fo:table-row><fo:table-cell><fo:block><fo:external-graphic height="30px" src="url('http://www.v-lan.ru/billing/head.gif')" width="30px"/></fo:block></fo:table-cell><fo:table-cell><fo:block end-indent="0.1cm" font-family="arial" font-size="8pt" linefeed-treatment="preserve" padding-bottom="0cm" padding-top="-0.3cm" start-indent="0.1cm" text-align="right" text-decoration="none" white-space-collapse="false"> ГРУППА КОМПАНИЙ <fo:inline font-weight="bold">«СПЕЦСВЯЗЬ»</fo:inline> ... ru.bitel.bgbilling.common.BGException: Ошибка трансформации FO-шаблона at bitel.billing.module.common.AWTViewer.setData(AWTViewer.java:117) at bitel.billing.module.contract.ContractPanel_Card2.showCard(ContractPanel_Card2.java:327) at bitel.billing.module.contract.ContractPanel_Card2.setData(ContractPanel_Card2.java:298) at bitel.billing.module.contract.ContractPanel_Card.setData(ContractPanel_Card.java:56) at bitel.billing.module.contract.ContractEditor.setData(ContractEditor.java:146) at bitel.billing.module.contract.ContractEditor$1.stateChanged(ContractEditor.java:128) at javax.swing.JTabbedPane.fireStateChanged(Unknown Source) at javax.swing.JTabbedPane$ModelListener.stateChanged(Unknown Source) at javax.swing.DefaultSingleSelectionModel.fireStateChanged(Unknown Source) at javax.swing.DefaultSingleSelectionModel.setSelectedIndex(Unknown Source) at javax.swing.JTabbedPane.setSelectedIndexImpl(Unknown Source) at javax.swing.JTabbedPane.setSelectedIndex(Unknown Source) at javax.swing.plaf.basic.BasicTabbedPaneUI$Handler.mousePressed(Unknown Source) at java.awt.Component.processMouseEvent(Unknown Source) at javax.swing.JComponent.processMouseEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$400(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue$4.run(Unknown Source) at java.awt.EventQueue$4.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) Caused by: javax.xml.transform.TransformerException: org.apache.fop.fo.ValidationException: Invalid property encountered on "fo:table-cell": align (See position 0:0) at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:401) at ru.bitel.common.FOUtils.render(FOUtils.java:206) at ru.bitel.common.FOUtils.render(FOUtils.java:212) at bitel.billing.module.common.AWTViewer.setData(AWTViewer.java:107) ... 43 more Caused by: org.apache.fop.fo.ValidationException: Invalid property encountered on "fo:table-cell": align (See position 0:0) at org.apache.fop.events.ValidationExceptionFactory.createException(ValidationExceptionFactory.java:38) at org.apache.fop.events.EventExceptionManager.throwException(EventExceptionManager.java:54) at org.apache.fop.events.DefaultEventBroadcaster$1.invoke(DefaultEventBroadcaster.java:175) at com.sun.proxy.$Proxy29.invalidProperty(Unknown Source) at org.apache.fop.fo.PropertyList.handleInvalidProperty(PropertyList.java:470) at org.apache.fop.fo.PropertyList.convertAttributeToProperty(PropertyList.java:389) at org.apache.fop.fo.PropertyList.addAttributesToList(PropertyList.java:319) at org.apache.fop.fo.FObj.processNode(FObj.java:119) at org.apache.fop.fo.flow.table.TableFObj.processNode(TableFObj.java:233) at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.java:282) at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:171) at org.apache.xalan.transformer.TransformerIdentityImpl.startElement(TransformerIdentityImpl.java:1073) at org.apache.xml.serializer.TreeWalker.startNode(TreeWalker.java:359) at org.apache.xml.serializer.TreeWalker.traverse(TreeWalker.java:145) at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:390) ... 46 more http://10.0.0.222:8080/bgbilling/executer?module=admin&action=Command&command=get& [ length = 64 ] xml = <?xml version="1.0" encoding="windows-1251"?><data status="ok"/> |
Автор: | max [ 07 янв 2015, 19:44 ] |
Заголовок сообщения: | Re: Валидация XSL |
ЗЫ: Если честно давно хотел задаться вопросом, почему нельзя было сделать проще, создаёшь ртф документ с переменными подстановки в качестве шаблона, и при необходимости формируешь документ .doc с данными из договора вместо переменных подстановки, так у нашего старого биллинга было, просто и легко, а не через эту жопу называемую XLST! В качествен примера геморроя с ним есть эта тема, а ещё могу пример из жизни привести! Сидишь никого не трогаешь, тут бац появляется клиент с ВООООООООООТ таким дилинным названием, или с ВОООООООООТ такой длинной фамилией директор, и всё жопа! все форматирование (и красота с логотипом в колонитулах, и прочим) съесжает на бок! И приходится такого клиента всё равно делать в ворде или опять править эти долбанные клинописи в шаблне! Наболело! |
Автор: | dimOn [ 07 янв 2015, 20:15 ] |
Заголовок сообщения: | Re: Валидация XSL |
Ну, тут вроде всё понятно написано: Invalid property encountered on "fo:table-cell": align. Ищите fo:table-cell с таким property "align". Ну и XLST это не жопа, а распространённая универсальная технология. В некоторых местах уже было сделано с этими подстановками (см. documents плагин и какие-то там ещё), но в общем случае "ртф с подстановками" - это утопия. Интересно поглядеть как вы в таком случае будете делать хитрую логику (от замены некоторых данных налету до sql-запросов) в шаблоне, которая очень и очень часто используется (нами и нашими клиентами). |
Автор: | stark [ 08 янв 2015, 19:07 ] |
Заголовок сообщения: | Re: Валидация XSL |
max писал(а): ЗЫ: Если честно давно хотел задаться вопросом, почему нельзя было сделать проще, создаёшь ртф документ с переменными подстановки в качестве шаблона, и при необходимости формируешь документ .doc с данными из договора вместо переменных подстановки, так у нашего старого биллинга было, просто и легко, а не через эту жопу называемую XLST! Так в плагине documents такое можно делать. |
Автор: | max [ 13 янв 2015, 17:21 ] |
Заголовок сообщения: | Re: Валидация XSL |
можно ссылку на рецепт? |
Автор: | stark [ 13 янв 2015, 17:28 ] |
Заголовок сообщения: | Re: Валидация XSL |
max писал(а): можно ссылку на рецепт? Описано тут : http://bgbilling.ru/v6.1/doc/ch44s04.html и тут : viewtopic.php?f=23&t=7608 |
Автор: | skyb [ 14 янв 2015, 09:36 ] |
Заголовок сообщения: | Re: Валидация XSL |
max писал(а): Тут как бы такое дело, шаблон рисовали не мы, а подрядчики и было это давно, очень давно, ибо для нас этот xlst долбанная клинопись шумерская. И вот мы тут обновились с 5.1 на 5.2 и вылезла такая фигня. Подрядчика уже давно нет, а разгребать приходится мне. ну не чего, ещё на 6-ю версию переходить будите, у меня вообще все к чертям поломалось))) |
Автор: | max [ 16 янв 2015, 01:21 ] |
Заголовок сообщения: | Re: Валидация XSL |
skyb писал(а): max писал(а): Тут как бы такое дело, шаблон рисовали не мы, а подрядчики и было это давно, очень давно, ибо для нас этот xlst долбанная клинопись шумерская. И вот мы тут обновились с 5.1 на 5.2 и вылезла такая фигня. Подрядчика уже давно нет, а разгребать приходится мне. ну не чего, ещё на 6-ю версию переходить будите, у меня вообще все к чертям поломалось))) Спасибо обрадовал! ![]() |
Автор: | max [ 16 янв 2015, 01:26 ] |
Заголовок сообщения: | Re: Валидация XSL |
stark писал(а): max писал(а): можно ссылку на рецепт? Описано тут : http://bgbilling.ru/v6.1/doc/ch44s04.html и тут : viewtopic.php?f=23&t=7608 О! Спасибо, кажется то что надо! А то я уже повеситься хотел, наконец то долбанные XSL сгорят в аду. |
Страница 1 из 1 | Часовой пояс: UTC + 5 часов [ Летнее время ] |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |