| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734 |
- <?xml version="1.0" encoding="UTF-8"?>
- <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:p5_tr_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd"
- xmlns:p5_tr_map_js="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map_js.xsd"
- xmlns:xs="http://www.w3.org/2001/XMLSchema"
- xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
- xmlns:exslt="http://exslt.org/common"
- xmlns:dyn="http://saxon.sf.net/"
- xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
- xmlns:TERYT_terc_xml_import_after_main="http://biuro.biall-net.pl/xmlschema_procesy5/default_objects/TERYT_terc_xml_import_after_main.xsd"
- xmlns:default_default_objects_types="http://biuro.biall-net.pl/xmlschema_procesy5/default_objects/default_objects_types.xsd"
- xmlns:default_db="http://biuro.biall-net.pl/xmlschema_procesy5/default_db"
- xmlns:default_projects="http://biuro.biall-net.pl/xmlschema_procesy5/default_objects/projects.xsd"
- xmlns:default_db_CRM_WSKAZNIK="http://biuro.biall-net.pl/xmlschema_procesy5/default_db/CRM_WSKAZNIK"
- xmlns:default_infrastructure_buildings="http://biuro.biall-net.pl/xmlschema_procesy5/default_objects/infrastructure_buildings.xsd"
- xmlns:default_workers="http://biuro.biall-net.pl/xmlschema_procesy5/default_objects/workers.xsd"
- xmlns:bpmn20="http://www.omg.org/spec/BPMN/20100524/MODEL"
- xmlns:database_objects="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/database_objects.xsd"
- xmlns:system_cache__procesy5_xsd_business_objects="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/procesy5_xsd_business_objects.xsd"
- xmlns:default_crm_proces="http://biuro.biall-net.pl/xmlschema_procesy5/default_objects/crm_proces.xsd"
- xmlns:teryt="http://biuro.biall-net.pl/xmlschema_procesy5/default_objects/teryt.xsd"
- xmlns:default_db_TELBOXES="http://biuro.biall-net.pl/xmlschema_procesy5/default_db/TELBOXES"
- xmlns:graph_relation_elements="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/graph_relation_elements.xsd"
- xmlns:default_corespondence="http://biuro.biall-net.pl/xmlschema_procesy5/default_objects/corespondence.xsd"
- xmlns:default_db_CRM_LISTA_ZASOBOW="http://biuro.biall-net.pl/xmlschema_procesy5/default_db/CRM_LISTA_ZASOBOW"
- xmlns:default_db_BUILDINGS="http://biuro.biall-net.pl/xmlschema_procesy5/default_db/BUILDINGS"
- xmlns:default_db_DEVICES="http://biuro.biall-net.pl/xmlschema_procesy5/default_db/DEVICES"
- xmlns:default_recurring_accounting_features="http://biuro.biall-net.pl/xmlschema_procesy5/default_objects/recurring_accounting_features.xsd"
- xmlns:system_cache__filesystem="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/filesystem.xsd"
- xmlns:gml="http://www.opengis.net/gml/3.2"
- xmlns:xlink="http://www.w3.org/1999/xlink"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:system_cache__resources_tree_generate_xsl_required_occurs_raport="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/resources_tree_generate_xsl_require_occurs_raport"
- xmlns:p5="https://biuro.biall-net.pl/wfs"
- exclude-result-prefixes="xs dyn exslt"
- version="2.0">
-
-
-
- <!-- @2015-11-19 - PRZERABIANY I CZYSZCZONY XSL NA BAZIE crm_lista_zasobow_to_xml_tree_instances.xsl z funkcjami wylacznie do schematu p5_tr_map.xsd
- XSL do stworzenia instancji XML na podstawie ktorego system bedzie mozliwa analiza jakie typy zasobow w jakich tabelach
- sa ze soba powiazane aby wyszukiwac ich instancji w tabelach dla danych typow obiektow
- - buduje drzewo zasobow
- - sprawdza czy dany typ zasobu jako schemat XSD TYPE moze miec pod soba inny zasob jako child
- - sprawdza czy jest taki typ zasobu w relacji XSD opisany (dla standardowych przypadkow dzial/magazyn/urzadzenie)
- - sprawdza czy jest taki typ zasobu w relacji XSD opisany jako substitution_group (dla przypadku stanowisko/magazyn)
- - dla kazdego z typow zasobow na podstawie TYPE odczytuje jaki jest to typ zasobu pierwotnego z DEFAULT_OBJECTS_TYPES i
- szuka w powiaznej tabeli instancyjnej dla danego typu wpisow instancyjnych dla danego miejsca w aktualnym XPATH danego zagłębienia obiektu.
- - jest w stanie stwierdzic czy dane obiekty istnieją w fizycznie, czego brakuje, czego jest za duzo...
- - mozna wygenerowac informacje o tym czego brakuje - wpisy na waitingu.
- ( jezeli obiekty beda uzywane zgodne ze schematami XSD to ich relacje z CRM_XPATH_TREE beda mozliwe do powtorzenia w ich natywnych relacjach)
-
-
- -->
-
-
- <!--<xsl:import href="../default_db_xml_cache.public/import_resource_table_xml_from_api.xsl"/>-->
-
- <!--<xsl:import href="replace_xml_elements_in_xml.xsl"/>-->
- <!--<xsl:import href="get_all_xsd.xsl"/>-->
- <xsl:import href="../default_db_xml_cache/build_complexType.xsl"/>
- <!-- @2015-05-02 template do wgrania obiektu z planu $system_cache__appinfo:save_to_api_xml problematyka @evaluate_key_value oraz @read_key_value
- musi jechac raz z gory raz z dolu, az wszystkie read_key_value zostana wypelnione aby moc wypelnic evaluate_key_value
- powinien robic mape do ewentualnej kompensacji -->
- <!--<xsl:import href="system_cache_appinfo-save_to_api_xml_save.xsl"/>-->
- <xsl:import href="form_occurs_max_sequence.xsl"/>
- <xsl:param name="debug_level_param"/>
- <xsl:param name="default_db.instance.xml" required="yes"/>
- <xsl:param name="default_db.instance.xml.symlink" required="yes"/>
-
- <xsl:param name="vrtfNamespaces_file" required="yes"/> <!--/Users/a.binder/Documents/xmlschema_procesy5/src-xmlschema/public_html/default_db.instance.xml/transformed/vrtfNamespaces.xml-->
- <xsl:param name="procesy5_system_schema_file" required="yes"/> <!--/Users/a.binder/Documents/xmlschema_procesy5/src-xmlschema/public_html/default_db.instance.xml/transformed/procesy5_system_schema.xml-->
-
- <xsl:param name="parent_type"/> <!-- used from ant xsl direct call / error when global! -->
-
- <xsl:variable name="vrtfNamespaces" select="doc($vrtfNamespaces_file)/system_cache__appinfo:vrtfNamespaces/*"/>
- <xsl:variable name="procesy5_system_schema" select="doc($procesy5_system_schema_file)"/>
-
-
- <xsl:param name="p5_tr_map:targetNamespaces_for_4777_list"><!-- okreslenie jakie targetNamespaces ze schematow w przypadku @ref, maja byc integrowane z instancja elementu bazowego i traktowane jako @event_type='4777'-->
- <p5_tr_map:targetNamespaces_for_4777_list>
- <p5_tr_map:targetNamespaces_for_4777>http://biuro.biall-net.pl/xmlschema_procesy5/default_db</p5_tr_map:targetNamespaces_for_4777>
- <!-- <p5_tr_map:targetNamespaces_for_4777>https://biuro.biall-net.pl/wfs/default_db/table/CRM_WSKAZNIK.xsd</p5_tr_map:targetNamespaces_for_4777>
- <p5_tr_map:targetNamespaces_for_4777>https://biuro.biall-net.pl/wfs/default_db/table/CRM_PROCES.xsd</p5_tr_map:targetNamespaces_for_4777>
- <p5_tr_map:targetNamespaces_for_4777>https://biuro.biall-net.pl/wfs/default_db/table/CRM_LISTA_ZASOBOW.xsd</p5_tr_map:targetNamespaces_for_4777>-->
- </p5_tr_map:targetNamespaces_for_4777_list>
- </xsl:param>
- <xsl:variable name="debug_level">
- <xsl:choose>
- <xsl:when test="$debug_level_param"><xsl:value-of select="$debug_level_param"/></xsl:when>
- <xsl:otherwise>0</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- <!--<xsl:variable name="CRM_LISTA_ZASOBOW">
- <xsl:call-template name="import_resource_table_xml_from_api">
- <xsl:with-param name="cache" select="'read'"/>
- <xsl:with-param name="resource" select="'CRM_LISTA_ZASOBOW'"/>
- </xsl:call-template>
- </xsl:variable>-->
- <!--<xsl:variable name="procesy5_system_schema">
- <xsl:call-template name="system_cache__appinfo:get_all_xsd">
- <xsl:with-param name="path2collection" select="'../'"/>
- </xsl:call-template>
- </xsl:variable>--> <!-- odczytanie schematu bazy danych w XSD -->
- <!--<xsl:variable name="vrtfNamespaces">
-
- <xsl:for-each select=
- "$procesy5_system_schema//schema/namespace::node()" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
- <ns element="{name(..)}"
- prefix="{name()}" uri="{.}"/>
- </xsl:for-each>
- </xsl:variable>-->
-
- <xsl:template name="main">
- <!--<xsl:variable name="element" select="'teryt:Teryt_Adres_Prawidlowy'"/>--> <!-- default_default_objects_types:BUDYNEK test_objects:klient 'infrastructure_buildings:Device' 'test_objects:AAAAA' prove_portal:klient 'prove_portal:event' default_default_objects_types:NARZEDZIE default_accounting:currencies test_objects:klient AAAAAL default_default_objects_types:URZADZENIE -->
- <!--<xsl:variable name="element" select="'default_workers:worker'"/>-->
- <!--<xsl:variable name="element" select="'teryt:Teryt_Adres_Prawidlowy'"/>-->
- <!--<xsl:variable name="element" select="'default_resources_suppliers:resource_supply'"/>-->
- <!--<xsl:variable name="element" select="'test_objects:t459-type-derev-el'"/>-->
- <!--<xsl:variable name="element" select="'test_objects:t459b-type-el'"/>-->
- <!--<xsl:variable name="element" select="'test_objects:t459b-el'"/>-->
- <!--<xsl:variable name="element" select="'test_objects:klient'"/>-->
- <!--<xsl:variable name="element" select="'default_default_objects_types:URZADZENIE'"/>-->
- <xsl:variable name="element" select="'default_db__x3A__CRM_PROCES:CRM_PROCES'"/>
- <!--<xsl:variable name="element" select="'default_infrastructure:Obiekt_infrastruktury_PROJEKT'"/>-->
- <!--<xsl:variable name="element" select="'TERYT_terc_xml_import_after_main:after_main'"/>-->
- <!--<xsl:variable name="element" select="'default_default_objects_types:RESOURCE'"/>-->
- <!--<xsl:variable name="element" select="'test_objects:BBA-el'"/>-->
- <!--<xsl:variable name="element" select="'restriction-test-for-transformations:BetaEx'"/>-->
- <!--<xsl:variable name="element" select="'default_default_objects_types:URZADZENIA_I_OZNACZENIA_BHP'"/>-->
- <xsl:variable name="p5_tr_map:go_recurse_from_root_by_build_element">
- <xsl:call-template name="p5_tr_map:go_recurse_from_root_by_build_element_cache">
- <xsl:with-param name="parent_type" select="$element"/>
- <xsl:with-param name="cache" select="'refresh'"/>
- </xsl:call-template>
- </xsl:variable>
- <!--<xsl:variable name="p5_tr_map:go_recurse_from_root_by_build_element">
- <xsl:call-template name="p5_tr_map:go_recurse_from_root_by_build_complexType_cache">
- <xsl:with-param name="parent_type" select="$element"/>
- <xsl:with-param name="cache" select="'refresh'"/>
- </xsl:call-template>
- </xsl:variable>-->
- <xsl:result-document href="{concat('../default_db.instance.xml/p5_tr_map/go_recurse_from_root_by_build_element/',$element,'.xml')}">
- <xsl:copy-of select="$p5_tr_map:go_recurse_from_root_by_build_element" copy-namespaces="no"/>
- </xsl:result-document>
- <!--<xsl:result-document href="{concat('../default_db.instance.xml/p5_tr_map/rebuild_p5_tr_map_file_cache','.xml')}">
- <xsl:call-template name="p5_tr_map:rebuild_p5_tr_map_file_cache"/>
- </xsl:result-document>-->
- </xsl:template>
- <xsl:template mode="p5_tr_map:element_complexType_tr_map" match="system_cache__appinfo:element_complexType"> <!-- do hurtowego wygenerowania plaskich obiektow -->
- <!-- {http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd}build_complexType -->
- <build_tr_map_raport>
- <xsl:for-each select="build_cache">
- <xsl:element name="{name()}">
- <xsl:copy-of select="@*"/>
- <xsl:choose>
- <xsl:when test="@name='build_complexType'">
- <xsl:call-template name="p5_tr_map:go_recurse_from_root_by_build_complexType_cache">
- <xsl:with-param name="parent_type" select="with-param/@select"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test="@name='build_element'">
- <xsl:call-template name="p5_tr_map:go_recurse_from_root_by_build_element_cache">
- <xsl:with-param name="parent_type" select="with-param/@select"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:message terminate="yes">#308 unexpected @name=<xsl:value-of select="@name"/>;</xsl:message>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:element>
- </xsl:for-each>
- </build_tr_map_raport>
- </xsl:template>
-
- <xsl:template name="p5_tr_map:rebuild_p5_tr_map_file_cache"><!-- @2016-01-26 funkcja do wygenerowania wszystkich aktualnych p5_tr_map oraz build_complexType -->
- <xsl:param name="href" select="'../rebuild_p5_tr_map_file_cache.sh'"/>
- <xsl:param name="targetNamespace" select="'http://biuro.biall-net.pl/xmlschema_procesy5/default_db'"/>
- <xsl:result-document href="{$href}" omit-xml-declaration="yes">
- export SAXON_HOME=/opt/local/share/java/
-
-
- <xsl:for-each select="$procesy5_system_schema/get_all_xsd_list/get_all_xsd[ substring-before(@system_cache__appinfo:document-uri,'/')!='default_db_xml_cache']" xpath-default-namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd">
- <xsl:variable name="get_all_xsd_236" select="."/>
- <xsl:for-each select="schema" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"><!--[ @targetNamespace != $targetNamespace ] namespace::node() = $targetNamespace and @targetNamespace='moj_ogrodek' -->
- <xsl:variable name="targetNamespace_134" select="@targetNamespace"/>
- <xsl:variable name="prefix_134" select="namespace::node()[. = $targetNamespace_134][1]/name()"/>
- #134 jade schema <xsl:value-of select="$targetNamespace_134"/>;
- <xsl:choose>
- <xsl:when test="count(.//node()[(local-name()='element' or local-name()='complexType' or local-name()='sequence' or local-name()='choice' or local-name()='complexContent' or local-name()='extension' ) and not(@id)])=0">
- <xsl:for-each select="(element|complexType)" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"><!-- dla ograniczenia mozna [$prefix_134='test_objects']-->
- echo "#135 jade element/complexType <xsl:value-of select="@name"/>;"
- <xsl:variable name="complexType_or_element_name186">
- <xsl:choose>
- <xsl:when test="local-name()='element'"><xsl:value-of select="@name"/></xsl:when>
- <xsl:when test="local-name()='complexType'"><xsl:value-of select="@name"/></xsl:when>
- <xsl:otherwise><xsl:message terminate="yes">#391 it should work only for element or complexType</xsl:message></xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:choose>
- <xsl:when test="local-name()='element'">
- <!--<xsl:call-template name="p5_tr_map:go_recurse_from_root_by_build_element_cache">
- <xsl:with-param name="parent_type"
- select="concat($prefix_134, ':', $complexType_or_element_name186)"/>
- <xsl:with-param name="output" select="'disable'"/>
- </xsl:call-template>-->
- ./../../test-saxon-cmd/saxon-he-with-expath-http-client.sh -xsl:Makefile.xsl -it:go_recurse_from_root_by_build_element_cache parent_type="<xsl:value-of select="concat($prefix_134, ':', $complexType_or_element_name186)"/>"
- </xsl:when>
- <xsl:when test="local-name()='complexType'">
- <!--<xsl:call-template name="p5_tr_map:go_recurse_from_root_by_build_complexType_cache">
- <xsl:with-param name="parent_type"
- select="concat($prefix_134, ':', $complexType_or_element_name186)"/>
- <xsl:with-param name="output" select="'disable'"/>
- </xsl:call-template>-->
- ./../../test-saxon-cmd/saxon-he-with-expath-http-client.sh -xsl:Makefile.xsl -it:go_recurse_from_root_by_build_complexType_cache parent_type="<xsl:value-of select="concat($prefix_134, ':', $complexType_or_element_name186)"/>"
-
- </xsl:when>
- </xsl:choose>
- </xsl:for-each>
- </xsl:when>
- </xsl:choose>
-
- #system_cache__resources_tree_generate_xsl_required_occurs_raport:schema_errors_id_too_long
- <xsl:choose>
- <xsl:when test=".//node()[ string-length(@id)>64]">
- <xsl:message>#571 too long @id values in schema elements:</xsl:message>
- <xsl:for-each select=".//node()[ string-length(@id)>64]">
- <xsl:message terminate="no">@id=<xsl:value-of select="@id"/>; </xsl:message>
- </xsl:for-each>
- <xsl:message terminate="yes">- fix this list and restart transformation.</xsl:message>
- </xsl:when>
- </xsl:choose>
-
- <xsl:choose>
- <xsl:when test="@targetNamespace = $targetNamespace"/><!-- pomijamy wykrywanie brakuajacych @id dla schematu default_db - ktory jest obcym systemem plaskim -->
- <xsl:when test="count(.//node()[(local-name()='element' or local-name()='complexType' or local-name()='sequence' or local-name()='choice' or local-name()='complexContent' or local-name()='extension' ) and not(@id)])>0">
- <xsl:variable name="new-schema-tempfile-name" select="replace($get_all_xsd_236/@system_cache__appinfo:document-uri,'.xsd','.xml')"/>
- <xsl:variable name="new-document-uri_with-id" select="concat('../default_db.instance.xml/new-schema-with-ID-to-move-and-rename-to-xsd/',$new-schema-tempfile-name)"/>
- #system_cache__resources_tree_generate_xsl_required_occurs_raport:generate_element_id_for_schema
- <!--<xsl:attribute name="system_cache__appinfo:document-uri" select="$get_all_xsd_236/@system_cache__appinfo:document-uri"></xsl:attribute>
- <xsl:attribute name="system_cache__appinfo:new-document-uri_with-id" select="$new-document-uri_with-id"/>-->
- #438: tutaj wygenerowano schemat z @id
- <xsl:choose>
- <xsl:when test="1=2"/>
- <!--<xsl:when test="$get_all_xsd_236/@system_cache__appinfo:document-uri='http://www.w3.org/1999/XSL/Transform'">Schema for </xsl:when>-->
- <xsl:otherwise>
- <xsl:result-document href="{$new-document-uri_with-id}">
- <xsl:apply-templates mode="system_cache__resources_tree_generate_xsl_required_occurs_raport:generate_element_id_for_schema" select="$get_all_xsd_236"/>
- </xsl:result-document>
- </xsl:otherwise>
- </xsl:choose>
- #/system_cache__resources_tree_generate_xsl_required_occurs_raport:generate_element_id_for_schema
- </xsl:when>
- </xsl:choose>
- </xsl:for-each>
- </xsl:for-each>
- </xsl:result-document>
- </xsl:template>
-
- <xsl:template name="p5_tr_map:go_recurse_from_root_by_build_element">
- <!-- template @2015-04-23 do złożenia obiektu xml na podstawie wygenerowanego wypłaszczonego rekursywnie schematu -->
- <xsl:param name="element"/> <!-- nazwa instancyjnego obiektu do wyszukania -->
- <xsl:param name="INSTANCE_ID"/> <!-- numer ID obiektu do znalezienia-->
- <xsl:if test="$debug_level>3"><xsl:message>122 tworze wyplaszczony schemat dla elementu</xsl:message></xsl:if>
- <xsl:variable name="schema_build_element"><!-- budujemy schemat dla elementu do parsowania-->
- <xsl:call-template name="system_cache__appinfo:build_element">
- <xsl:with-param name="element" select="$element"/>
- </xsl:call-template>
- </xsl:variable>
- <!--<xsl:result-document href="../default_db.instance.xml/schema_build_element.xml">
- <xsl:copy-of select="$schema_build_element"/>
- </xsl:result-document>-->
- <xsl:message>132 tworze mape przetwarzania obiektu go_recurse_from_root_by_build_element</xsl:message>
- <xsl:variable name="p5_tr_map:go_recurse_from_root_by_build_element">
- <p5_tr_map:go_recurse_from_root_by_build_element>
- <xsl:attribute name="xsi:schemaLocation" select="'../../default_db_xml_cache.public/p5_tr_map.xsd'"/>
- <!--<xsl:attribute name="INSTANCE_ID" select="$INSTANCE_ID"/>
- <xsl:attribute name="element" select="$element"/>-->
- <xsl:for-each select="$schema_build_element">
- <xsl:apply-templates mode="system_cache__appinfo:go_recurse_from_root_by_build_element">
- <xsl:with-param name="parent_type" select="$element"/>
- <xsl:with-param name="root_name" select="$element"/>
- <xsl:with-param name="INSTANCE_ID" select="$INSTANCE_ID"/>
- <xsl:sort select="@system_cache__appinfo:sort"/>
- </xsl:apply-templates>
- </xsl:for-each>
- </p5_tr_map:go_recurse_from_root_by_build_element>
- </xsl:variable>
- <xsl:result-document href="../default_db.instance.xml/p5_tr_map/go_recurse_from_root_by_build_element.xml">
- <xsl:copy-of select="$p5_tr_map:go_recurse_from_root_by_build_element"/>
- </xsl:result-document>
- </xsl:template>
-
-
- <!-- @2016-01-03 glownie na potrzeby dowiazywanych 477b complexType bez ref -->
- <xsl:template name="p5_tr_map:go_recurse_from_root_by_build_complexType">
- <!-- template @2015-04-23 do złożenia obiektu xml na podstawie wygenerowanego wypłaszczonego rekursywnie schematu -->
- <xsl:param name="complexType"/> <!-- nazwa instancyjnego obiektu do wyszukania -->
- <xsl:param name="INSTANCE_ID"/> <!-- numer ID obiektu do znalezienia-->
- <xsl:if test="$debug_level>3"><xsl:message>148 tworze wyplaszczony schemat dla elementu</xsl:message></xsl:if>
- <xsl:variable name="schema_build_element"><!-- budujemy schemat dla elementu do parsowania-->
- <xsl:call-template name="system_cache__appinfo:build_complexType">
- <xsl:with-param name="complexType" select="$complexType"/>
- </xsl:call-template>
- </xsl:variable>
- <!--<xsl:result-document href="../default_db.instance.xml/schema_build_element.xml">
- <xsl:copy-of select="$schema_build_element"/>
- </xsl:result-document>-->
- <xsl:message>161 tworze mape przetwarzania obiektu go_recurse_from_root_by_build_element</xsl:message>
- <xsl:variable name="p5_tr_map:go_recurse_from_root_by_build_element">
- <p5_tr_map:go_recurse_from_root_by_build_element>
- <xsl:attribute name="xsi:schemaLocation" select="'../../default_db_xml_cache.public/p5_tr_map.xsd'"/>
- <!--<xsl:attribute name="INSTANCE_ID" select="$INSTANCE_ID"/>
- <xsl:attribute name="element" select="$element"/>-->
- <temp><xsl:copy-of select="$schema_build_element"></xsl:copy-of></temp>
- <xsl:for-each select="$schema_build_element">
- <xsl:apply-templates mode="p5_tr_map:go_recurse_from_root_by_build_element">
- <xsl:with-param name="parent_type" select="$complexType"/>
- <xsl:with-param name="root_name" select="$complexType"/>
- <!--<xsl:with-param name="INSTANCE_ID" select="$INSTANCE_ID"/>-->
- <xsl:sort select="@system_cache__appinfo:sort"/>
- </xsl:apply-templates>
- </xsl:for-each>
- </p5_tr_map:go_recurse_from_root_by_build_element>
- </xsl:variable>
- <xsl:result-document href="../default_db.instance.xml/p5_tr_map/go_recurse_from_root_by_build_element.xml">
- <xsl:copy-of select="$p5_tr_map:go_recurse_from_root_by_build_element"/>
- </xsl:result-document>
- </xsl:template>
-
-
-
-
-
- <xsl:template name="p5_tr_map:go_recurse_from_root_by_build_element_cache">
- <xsl:param name="parent_type" select="$parent_type"/>
- <xsl:param name="cache" select="'read'"/>
- <xsl:param name="output" select="'enable'"/>
- <xsl:variable name="schema_build_element" select="doc(system_cache__appinfo:element-filename('element',$parent_type,'',''))">
- <!--<xsl:call-template name="system_cache__appinfo:build_element_cache">
- <xsl:with-param name="element" select="$parent_type"/>
- </xsl:call-template>-->
- </xsl:variable>
- <xsl:message>#101 p5_tr_map:go_recurse_from_root_by_build_element_cache im here for <xsl:value-of select="$parent_type"/></xsl:message>
- <!--<xsl:param name="namespace_uri_param"/>-->
-
- <xsl:choose>
- <xsl:when test="unparsed-text-available(p5_tr_map:element-filename.complete('go_recurse_from_root_by_build_element_cache',$parent_type)) and $cache='read'">
- <xsl:message>96: copy cached data for element:<xsl:value-of select="p5_tr_map:element-filename('go_recurse_from_root_by_build_element_cache',$parent_type)"/>;</xsl:message>
- <xsl:if test="$output='enable'">
- <xsl:copy-of select="doc(p5_tr_map:element-filename('go_recurse_from_root_by_build_element_cache',$parent_type))"/>
- </xsl:if>
- </xsl:when>
- <xsl:otherwise>
- <xsl:variable name="go_recurse_from_root_by_build_element_cache">
- <p5_tr_map:go_recurse_from_root_by_build_element>
- <xsl:attribute name="xsi:schemaLocation" select="'http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd ../../default_db_xml_cache.public/p5_tr_map.xsd'"/>
- <xsl:apply-templates mode="p5_tr_map:go_recurse_from_root_by_build_element" select="$schema_build_element">
- <xsl:with-param name="parent_type" select="$parent_type"/>
- <xsl:with-param name="root_name" select="$parent_type"/>
- <!--<xsl:sort select="@system_cache__appinfo:sort"/>-->
- </xsl:apply-templates>
- </p5_tr_map:go_recurse_from_root_by_build_element>
- </xsl:variable>
- <xsl:if test="$go_recurse_from_root_by_build_element_cache/node()[local-name()]">
- <xsl:result-document href="{doc(p5_tr_map:element-filename.symlink('go_recurse_from_root_by_build_element_cache',$parent_type))}">
- <xsl:copy-of select="$go_recurse_from_root_by_build_element_cache"/>
- </xsl:result-document>
- <xsl:variable name="prefixed_object_info">
- <xsl:call-template name="system_cache__appinfo:prefixed_object_info">
- <xsl:with-param name="prefixed_object" select="$parent_type"/>
- </xsl:call-template>
- </xsl:variable>
- <!-- zapisanie w strukturze dla prefixu bazy danych elementu -->
- <xsl:result-document href="{p5_tr_map:element-filename-prefixed.symlink($parent_type)}">
- <xsl:copy-of select="$go_recurse_from_root_by_build_element_cache"/>
- </xsl:result-document>
- <xsl:result-document href="{p5_tr_map:element-filename.symlink.complete('go_recurse_from_root_by_build_element_cache',$parent_type)}">
- <complete/>
- </xsl:result-document>
- <xsl:if test="$output='enable'">
- <xsl:copy-of select="$go_recurse_from_root_by_build_element_cache"/>
- </xsl:if>
- </xsl:if>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template name="p5_tr_map:go_recurse_from_root_by_build_complexType_cache">
- <xsl:param name="parent_type" select="$parent_type"/>
- <xsl:param name="cache" select="'read'"/>
- <xsl:param name="output" select="'enable'"/>
- <xsl:variable name="schema_build_element" select="doc(system_cache__appinfo:element-filename('complexType',$parent_type,'',''))">
- <!--<xsl:call-template name="system_cache__appinfo:build_complexType_cache">
- <xsl:with-param name="complexType" select="$parent_type"/>
- </xsl:call-template>-->
- </xsl:variable>
-
- <xsl:choose>
- <xsl:when test="unparsed-text-available(p5_tr_map:element-filename.complete('go_recurse_from_root_by_build_complexType_cache',$parent_type)) and $cache='read'"> <!-- concat('../default_db.instance.xml/p5_tr_map/complexType-',$element-filename,'.xml') -->
- <xsl:message>96: copy cached data for element:<xsl:value-of select="p5_tr_map:element-filename('go_recurse_from_root_by_build_complexType_cache',$parent_type)"/>;</xsl:message>
- <xsl:if test="$output='enable'">
- <xsl:copy-of select="doc(p5_tr_map:element-filename('go_recurse_from_root_by_build_complexType_cache',$parent_type))"/>
- </xsl:if>
- </xsl:when>
- <xsl:otherwise>
- <xsl:variable name="go_recurse_from_root_by_build_element_cache">
- <p5_tr_map:go_recurse_from_root_by_build_element>
- <xsl:attribute name="xsi:schemaLocation" select="'http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd ../../default_db_xml_cache.public/p5_tr_map.xsd'"/>
- <xsl:apply-templates mode="p5_tr_map:go_recurse_from_root_by_build_element" select="$schema_build_element">
- <xsl:with-param name="parent_type" select="$parent_type"/>
- <xsl:with-param name="root_name" select="$parent_type"/>
- <xsl:sort select="@system_cache__appinfo:sort"/>
- </xsl:apply-templates>
- </p5_tr_map:go_recurse_from_root_by_build_element>
- </xsl:variable>
- <xsl:if test="$go_recurse_from_root_by_build_element_cache/node()[local-name()]">
- <xsl:result-document href="{p5_tr_map:element-filename.symlink('go_recurse_from_root_by_build_complexType_cache',$parent_type)}">
- <xsl:copy-of select="$go_recurse_from_root_by_build_element_cache"/>
- </xsl:result-document>
- <xsl:result-document href="{p5_tr_map:element-filename.symlink.complete('go_recurse_from_root_by_build_complexType_cache',$parent_type)}">
- <complete/>
- </xsl:result-document>
- <xsl:if test="$output='enable'">
- <xsl:copy-of select="$go_recurse_from_root_by_build_element_cache"/>
- </xsl:if>
- </xsl:if>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template match="*" mode="p5_tr_map:go_recurse_from_root_by_build_element.root">
- <p5_tr_map:go_recurse_from_root_by_build_element>
- <xsl:apply-templates mode="p5_tr_map:go_recurse_from_root_by_build_element" select=".">
- <xsl:with-param name="parent_type" select="$parent_type"/>
- <xsl:with-param name="root_name" select="$parent_type"/>
- </xsl:apply-templates>
- </p5_tr_map:go_recurse_from_root_by_build_element>
- </xsl:template>
-
- <!-- @2015-04-23 TEMPLATE DO TWORZENIA MAPY SCHEMATU SCIAGNIECIA OBIEKTOW - SERCE SYSTEMU -->
- <xsl:template match="*" mode="p5_tr_map:go_recurse_from_root_by_build_element">
- <!--<xsl:param name="system_cache__appinfo:schema_build_element"/> - to jest obiektem przetwarzania-->
- <xsl:param name="parent_type"/> <!-- nazwa rodzica dla poszukiwania w tabeli danego type w kolumnie type - jezeli dowiazywany jest jakis complexType po REMOTE_ID / ginie na sequence i ...?-->
- <xsl:param name="ID"/> <!-- przekazywany parametr rodzica -->
- <xsl:param name="INSTANCE_ID"/> <!-- flaga instancji ginie za pierwszym complexType -->
- <xsl:param name="parent_name"/> <!-- wyzwalene przez pierwszy element ktory ma complexType[@type], aby zachowac nazwe elementu ze schematu -->
- <xsl:param name="root_name"/> <!-- wyzwalane przez template w celu wykrywania w funkcji jaki element jest bazowy, aby do niego nie dowiazywac prefixow -->
- <xsl:param name="system_cache__appinfo:xpath_full"/> <!-- tworzona w locie sciezka xpath elementu razem z derewiacjami -->
- <xsl:param name="system_cache__appinfo:xpath"/> <!-- tworzona w locie sciezka xpath elementu od glownej derewiacji -->
- <xsl:param name="p5_tr_map:last-type"/><!-- ostatni ustalony typ, do wlasciwego przetwarzania zwlaszcza 477 -->
- <xsl:param name="p5_tr_map:parent_name"/><!-- narzcane przez 477 do wlasciwego wlaczania 481* ktore powtarzaja ta flage i koncza -->
- <xsl:param name="p5_tr_map:parent_type"/> <!-- narzucone przez 477b dla complexType -->
- <xsl:variable name="prefix" select="substring-before($parent_type,':')"/>
- <xsl:variable name="element_name" select="substring-after($parent_type,':')"/>
- <xsl:variable name="p5_tr_map:uuid" select="generate-id()"/>
- <!--<xsl:variable name="namespace_uri" select="exslt:node-set($vrtfNamespaces)//@uri[../@prefix=$prefix]"/>-->
- <!-- template sklada obiekt odwolujac sie do tabel w poszukiwaniu rekordu ID oraz nazwy ewentualnego obiektu rodzica-->
- <!--<xsl:comment>2205:<xsl:value-of select="local-name()"/> id:<xsl:value-of select="@id"/>;</xsl:comment>-->
- <xsl:variable name="p5_tr_map:current290" select="."/>
- <xsl:variable name="p5_tr_map:check_if_targetNamespaces_for_4777_list"><!--@2016-01-21 - todo przydalby sie parametr globalny - jakie schematy/targetNamespaces sluza do budowania obiektow silnikowych - do wyzwolenia na poziomie @element and @ref -->
- <xsl:if test="@ref and local-name()='element' and @id">
- <xsl:for-each select="$p5_tr_map:targetNamespaces_for_4777_list//p5_tr_map:targetNamespaces_for_4777">
- <xsl:variable name="foreach_294" select="."/>
- <xsl:if test="$p5_tr_map:current290/child::node()/@system_cache__appinfo:namespace_uri=$foreach_294">
- <xsl:value-of select="true()"/>
- </xsl:if>
- </xsl:for-each>
- </xsl:if>
- </xsl:variable>
- <xsl:choose>
- <xsl:when test="@system_cache__appinfo:only_complexContent_definition">
- <xsl:apply-templates mode="#current">
- <xsl:with-param name="parent_type" select="$parent_type"/> <!-- todo brakuje prefixu-->
- <xsl:with-param name="ID" select="$ID"/>
- <xsl:with-param name="root_name" select="$root_name"/>
- <xsl:with-param name="system_cache__appinfo:xpath_full" select="$system_cache__appinfo:xpath_full"/>
- <xsl:with-param name="system_cache__appinfo:xpath" select="$system_cache__appinfo:xpath"/>
- <xsl:with-param name="p5_tr_map:last-type" select="$p5_tr_map:last-type"/>
- <xsl:sort select="@system_cache__appinfo:sort"/>
- </xsl:apply-templates>
- </xsl:when>
- <xsl:when test="local-name()='simpleType'">
- <xsl:element name="system_cache__appinfo:schema">
- <xsl:copy-of select="."/>
- </xsl:element>
- </xsl:when>
- <xsl:when test="local-name()='simpleContent'"> <!-- warunek odpuszczamy i nie rysujemy elementu -->
- <xsl:apply-templates mode="#current">
- <!--<xsl:with-param name="parent_type" select="$parent_type"/>--> <!-- nie potrzeba dla takiego przypadku juz przekazywac typu instancji -->
- <xsl:with-param name="ID" select="$ID"/>
- <xsl:with-param name="root_name" select="$root_name"/>
- <xsl:sort select="@system_cache__appinfo:sort"/>
- </xsl:apply-templates>
- </xsl:when>
- <xsl:when test=" local-name()='attributeGroup' or local-name()='group'"> <!-- warunek 436 nie ma dziecka - jest simple - powinno się go pobrac -->
- <p5_tr_map:go_recurse_from_root_by_build_element_436>
- <xsl:attribute name="p5_tr_map:uuid" select="$p5_tr_map:uuid"/>
- <xsl:attribute name="comment" select="'436 @2016-01-05 TODO powstanie blad w przetwarzaniu - elementy z grup powinny byc traktowane jako referencje i instancje lub jakos inaczej odpuszczamy simpleContent,attributeGroup,group i nizej bedziemy uzywac atrybutow jak zwyklych simpleType do PARENT'"/>
- <xsl:attribute name="event_type" select="436"/>
- <xsl:attribute name="local-name" select="local-name()"/>
- <xsl:attribute name="local-name-name" select="@name"/>
- <xsl:apply-templates mode="#current">
- <!--<xsl:with-param name="parent_type" select="$parent_type"/>--> <!-- nie potrzeba dla takiego przypadku juz przekazywac typu instancji -->
- <xsl:with-param name="ID" select="$ID"/>
- <xsl:with-param name="root_name" select="$root_name"/>
- <xsl:sort select="@system_cache__appinfo:sort"/>
- </xsl:apply-templates>
- </p5_tr_map:go_recurse_from_root_by_build_element_436>
- </xsl:when>
- <!-- simpleContent after refferred begin -->
- <xsl:when test="not($parent_type) and ( local-name()='complexType' ) and parent::node()[local-name()='complexType'] and child::node()[local-name()='complexType'] and ( not(descendant::node()/local-name()='sequence') and not(descendant::node()/local-name()='all') and not(descendant::node()/local-name()='choice') and descendant::node()/local-name()='simpleContent' )"> <!-- warunek 3811 dla simpleContent tutaj jest tabela z dodatkowa derewiacja @type , z instancjami z dwoch stron parent:: and child::, obcych obiektow (ComplexType), pytamy sie o konkretne ID=@REMOTE_ID w konkretnej tabeli (nie ma parent_type)-->
- <p5_tr_map:go_recurse_from_root_by_build_element_3811>
- <xsl:attribute name="p5_tr_map:uuid" select="$p5_tr_map:uuid"/>
- <xsl:attribute name="retrieve_ID" select="'parent::node()/REMOTE_ID'"/>
- <!--<xsl:attribute name="retrieve_TYPE" select="$parent_type"/>--><!-- TODO przydalo by sie zapytac o typ? ale jak jest REMOTE_ID-->
- <xsl:attribute name="local-name" select="local-name()"/>
- <xsl:attribute name="local-name-name" select="@name"/>
- <xsl:attribute name="requested-table-type" select="'INSTANCE'"/>
- <xsl:attribute name="event_type" select="3811"/>
- <xsl:attribute name="parent_name" select="$parent_name"/>
- <xsl:if test="$p5_tr_map:parent_type"><xsl:attribute name="p5_tr_map:parent_type" select="$p5_tr_map:parent_type"/></xsl:if><!-- glownie na potrzeby przetwarzania complexType po 477b-->
- <xsl:attribute name="comment" select="'3811 dla simpleContent tutaj jest tabela z dodatkowa derewiacja @type, z instancjami z dwoch stron parent:: and child:: , obych obiektow (ComplexType) , pytamy sie o konkretne ID=@REMOTE_ID w konkretnej tabeli (nie ma parent_type) '"/>
- <xsl:for-each select="@*">
- <xsl:choose>
- <xsl:when test="substring-before(name(),':')">
- <xsl:attribute name="{name()}" select="."/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:attribute name="{concat('system_cache__appinfo:',name())}" select="."/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- <xsl:apply-templates mode="#current">
- <xsl:with-param name="parent_type" select="$parent_type"/> <!-- todo brakuje prefixu-->
- <xsl:with-param name="ID" select="concat($parent_type,'(',$ID,')')"/>
- <xsl:with-param name="root_name" select="$root_name"/>
- <xsl:with-param name="p5_tr_map:parent_type" select="$p5_tr_map:parent_type"/><!-- glownie na potrzeby przetwarzania complexType po 477b-->
- <xsl:with-param name="p5_tr_map:parent_name" select="$p5_tr_map:parent_name"/>
- <xsl:sort select="@system_cache__appinfo:sort"/>
- </xsl:apply-templates>
- </p5_tr_map:go_recurse_from_root_by_build_element_3811>
- </xsl:when>
- <xsl:when test="not($parent_type) and local-name()='complexType' and parent::node()[local-name()='complexType'] and ( not(descendant::node()/local-name()='sequence') and not(descendant::node()/local-name()='all') and not(descendant::node()/local-name()='choice') and descendant::node()/local-name()='simpleContent' )"> <!-- warunek 3810 dla simpleContent jest tabela dodatkowa z derewiacja @type, z instancjami, obcych obiektow -->
- <p5_tr_map:go_recurse_from_root_by_build_element_3810>
- <xsl:attribute name="retrieve_ID" select="'parent::node()/REMOTE_ID'"/>
- <!--<xsl:attribute name="retrieve_TYPE" select="$parent_type"/>--><!-- TODO przydalo by sie zapytac o typ? ale jak jest REMOTE_ID-->
- <xsl:attribute name="local-name" select="local-name()"/>
- <xsl:attribute name="local-name-name" select="@name"/>
- <xsl:attribute name="requested-table-type" select="'INSTANCE'"/>
- <xsl:attribute name="event_type" select="3810"/>
- <xsl:attribute name="parent_name" select="$parent_name"/>
- <xsl:if test="$p5_tr_map:parent_type"><xsl:attribute name="p5_tr_map:parent_type" select="$p5_tr_map:parent_type"/></xsl:if><!-- glownie na potrzeby przetwarzania complexType po 477b-->
- <xsl:attribute name="p5_tr_map:uuid" select="$p5_tr_map:uuid"/>
- <xsl:attribute name="comment" select="'warunek 3810 dla simpleContent jest tabela dodatkowa z derewiacja @type, z instancjami, obcych obiektow'"/>
- <xsl:for-each select="@*">
- <xsl:choose>
- <xsl:when test="substring-before(name(),':')">
- <xsl:attribute name="{name()}" select="."/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:attribute name="{concat('system_cache__appinfo:',name())}" select="."/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- <xsl:apply-templates mode="#current">
- <xsl:with-param name="parent_type" select="$parent_type"/> <!-- todo brakuje prefixu-->
- <xsl:with-param name="ID" select="concat($parent_type,'(',$ID,')')"/>
- <xsl:with-param name="root_name" select="$root_name"/>
- <xsl:with-param name="p5_tr_map:parent_type" select="$p5_tr_map:parent_type"/>
- <xsl:sort select="@system_cache__appinfo:sort"/>
- </xsl:apply-templates>
- </p5_tr_map:go_recurse_from_root_by_build_element_3810>
- </xsl:when>
- <xsl:when test="not($parent_type) and local-name()='complexType' and ( not(descendant::node()/local-name()='sequence') and not(descendant::node()/local-name()='all') and not(descendant::node()/local-name()='choice') and descendant::node()/local-name()='simpleContent' ) and child::node()[local-name()='complexType']"> <!-- warunek 3812 derewiacja simpleContent na child::node=complexType, z instancjami... -->
- <p5_tr_map:go_recurse_from_root_by_build_element_3812>
- <xsl:attribute name="retrieve_ID" select="'parent::node()/REMOTE_ID'"/>
- <!--<xsl:attribute name="retrieve_TYPE" select="$parent_type"/>--><!-- TODO przydalo by sie zapytac o typ? ale jak jest REMOTE_ID-->
- <xsl:attribute name="local-name" select="local-name()"/>
- <xsl:attribute name="local-name-name" select="@name"/>
- <xsl:attribute name="requested-table-type" select="'INSTANCE'"/>
- <xsl:attribute name="event_type" select="3812"/>
- <xsl:attribute name="parent_name" select="$parent_name"/>
- <xsl:if test="$p5_tr_map:parent_type"><xsl:attribute name="p5_tr_map:parent_type" select="$p5_tr_map:parent_type"/></xsl:if><!-- glownie na potrzeby przetwarzania complexType po 477b-->
- <xsl:attribute name="p5_tr_map:uuid" select="$p5_tr_map:uuid"/>
- <xsl:attribute name="comment" select="'3812 derewiacja simpleContent na child::node=complexType, z instancjami , pytamy sie o konkretne ID=@REMOTE_ID w konkretnej tabeli (nie ma parent_type) '"/>
- <xsl:for-each select="@*">
- <xsl:choose>
- <xsl:when test="substring-before(name(),':')">
- <xsl:attribute name="{name()}" select="."/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:attribute name="{concat('system_cache__appinfo:',name())}" select="."/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- <xsl:apply-templates mode="#current">
- <xsl:with-param name="parent_type" select="$parent_type"/> <!-- todo brakuje prefixu-->
- <xsl:with-param name="ID" select="concat($parent_type,'(',$ID,')')"/>
- <xsl:with-param name="root_name" select="$root_name"/>
- <xsl:with-param name="p5_tr_map:parent_type" select="$p5_tr_map:parent_type"/>
- <xsl:with-param name="p5_tr_map:parent_name" select="$p5_tr_map:parent_name"/>
- <xsl:sort select="@system_cache__appinfo:sort"/>
- </xsl:apply-templates>
- </p5_tr_map:go_recurse_from_root_by_build_element_3812>
- </xsl:when>
- <xsl:when test="not($parent_type) and ( ( local-name()='complexType' and child::node()/local-name()='simpleContent') ) and ( not(descendant::node()/local-name()='sequence') and not(descendant::node()/local-name()='all') and not(descendant::node()/local-name()='choice') ) "> <!-- warunek 381 po refie simpleContent -->
- <p5_tr_map:go_recurse_from_root_by_build_element_381>
- <xsl:attribute name="retrieve_ID" select="'parent::node()/REMOTE_ID'"/>
- <!--<xsl:attribute name="retrieve_TYPE" select="$parent_type"/>--><!-- TODO przydalo by sie zapytac o typ? ale jak jest REMOTE_ID-->
- <xsl:attribute name="local-name" select="local-name()"/>
- <xsl:attribute name="local-name-name" select="@name"/>
- <xsl:attribute name="requested-table-type" select="'INSTANCE'"/>
- <xsl:attribute name="event_type" select="'381'"/>
- <xsl:attribute name="parent_name" select="$parent_name"/>
- <xsl:if test="$p5_tr_map:parent_type"><xsl:attribute name="p5_tr_map:parent_type" select="$p5_tr_map:parent_type"/></xsl:if><!-- glownie na potrzeby przetwarzania complexType po 477b-->
- <xsl:attribute name="p5_tr_map:uuid" select="$p5_tr_map:uuid"/>
- <xsl:attribute name="comment" select="'381 tutaj jest tabela z instancjami obych obiektow (simpleContent) , pytamy sie o konkretne ID=@REMOTE_ID w konkretnej tabeli (nie ma parent_type) '"/>
- <xsl:for-each select="@*">
- <xsl:choose>
- <xsl:when test="substring-before(name(),':')">
- <xsl:attribute name="{name()}" select="."/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:attribute name="{concat('system_cache__appinfo:',name())}" select="."/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- <xsl:apply-templates mode="#current">
- <xsl:with-param name="parent_type" select="$parent_type"/> <!-- todo brakuje prefixu-->
- <xsl:with-param name="ID" select="concat($parent_type,'(',$ID,')')"/>
- <xsl:with-param name="root_name" select="$root_name"/>
- <xsl:with-param name="p5_tr_map:last-type" select="'381'"/>
- <xsl:sort select="@system_cache__appinfo:sort"/>
- </xsl:apply-templates>
- </p5_tr_map:go_recurse_from_root_by_build_element_381>
- </xsl:when>
- <!-- simpleContent after refferred end -->
- <xsl:when test="not($parent_type) and local-name()='element' and ( $p5_tr_map:last-type!='477' and $p5_tr_map:last-type!='477b' ) and ( ( @type and not(child::node()) ) or child::node()/local-name()='simpleType' )"> <!-- warunek 428 nie ma dziecka - jest simple - powinno się go pobrac -->
- <p5_tr_map:go_recurse_from_root_by_build_element_428>
- <xsl:attribute name="p5_tr_map:uuid" select="$p5_tr_map:uuid"/>
- <xsl:attribute name="retrieve_ID" select="'parent::node()/ID'"/>
- <!--<xsl:attribute name="retrieve_TYPE" select="$parent_type"/>--> <!-- nie ma potrzeby wskazywania na typ, bo powiazany obiekt nie jest instancyjny-->
- <xsl:attribute name="local-name" select="local-name()"/>
- <xsl:attribute name="local-name-name" select="@name"/>
- <xsl:variable name="system_cache__appinfo:xpath_full">
- <xsl:choose>
- <xsl:when test="$system_cache__appinfo:xpath_full">
- <xsl:value-of select="concat($system_cache__appinfo:xpath_full,'/',@name)"/>
- </xsl:when>
- <xsl:otherwise><xsl:value-of select="@name"/></xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:attribute name="system_cache__appinfo:xpath_full" select="$system_cache__appinfo:xpath_full"/>
- <xsl:attribute name="system_cache__appinfo:xpath" select="concat($system_cache__appinfo:xpath,'/',@name)"/>
- <xsl:choose>
- <xsl:when test="substring-before($root_name,':')=@system_cache__appinfo:prefix"> <!-- dla lokalnego elementu prefixu nie dajemy prefixu -->
- <xsl:attribute name="create_element" select="@name"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:attribute name="create_element" select="concat(@system_cache__appinfo:prefix,':',@name)"/>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:attribute name="event_type" select="428"/>
- <xsl:attribute name="comment" select="concat('428 - parent_name:',$root_name)"/>
- <xsl:for-each select="@*">
- <xsl:choose>
- <xsl:when test="substring-before(name(),':')">
- <xsl:attribute name="{name()}" select="."/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:attribute name="{concat('system_cache__appinfo:',name())}" select="."/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- <xsl:comment>428 nie ma dziecka jest simple - pobieramy element z bazy szukajac PARENT_ID - np. MAGAZYN/sequence/T_TELBOX_TYPE:xs:simple, ktory ma dane w ID, VALUE </xsl:comment>
- </p5_tr_map:go_recurse_from_root_by_build_element_428>
- </xsl:when>
- <xsl:when test="local-name()='element' and @type and child::* and $parent_type and @id and ( not(child::node()/local-name()='simpleType') and not(child::node()/local-name()='simpleContent') ) and ( descendant::node()/local-name()='complexType' ) "> <!-- warunek 434 przepuszczenie pierszego elementu jezeli ma @type, nie ma dzieci? i ma ../@ref - czyli byl przed 477 -->
- <p5_tr_map:go_recurse_from_root_by_build_element_434>
- <xsl:attribute name="p5_tr_map:uuid" select="$p5_tr_map:uuid"/>
- <xsl:attribute name="comment" select="concat('434 przepuszczenie pierwszego elementu jezeli ma @type - magazynujemy go w complexType nizej local-name:',local-name(),' @name:',@name,' @id:',@id,' INSTANCE_ID:',$INSTANCE_ID,' np. dla elementu MAGAZYN, ktory ma @type MAGAZYN')"/>
- <xsl:attribute name="event_type" select="434"/>
- <xsl:attribute name="system_cache__appinfo:id" select="@id"/>
- <xsl:attribute name="event_name" select="'element[@type]/node()'"/>
- <xsl:attribute name="parent_type" select="$parent_type"/>
- <xsl:copy-of select="@system_cache__appinfo:namespace_uri"/>
- <xsl:copy-of select="appinfo//@*" xpath-default-namespace="http://www.w3.org/2001/XMLSchema" copy-namespaces="no"/>
- <xsl:choose>
- <xsl:when test="$parent_name">
- <xsl:apply-templates mode="#current">
- <xsl:with-param name="parent_type" select="$parent_type"/> <!-- todo brakuje prefixu-->
- <xsl:with-param name="INSTANCE_ID" select="$INSTANCE_ID"/>
- <xsl:with-param name="parent_name" select="$parent_name"/>
- <xsl:with-param name="root_name" select="$root_name"/>
- <xsl:sort select="@system_cache__appinfo:sort"/>
- </xsl:apply-templates>
- </xsl:when>
- <xsl:otherwise><!-- wymuszamy parent_type jak go nie ma za pierwszym razem -->
- <xsl:apply-templates mode="#current">
- <xsl:with-param name="parent_type" select="$parent_type"/> <!-- todo brakuje prefixu-->
- <xsl:with-param name="INSTANCE_ID" select="$INSTANCE_ID"/>
- <xsl:with-param name="parent_name" select="@name"/>
- <xsl:with-param name="root_name" select="$root_name"/>
- <xsl:sort select="@system_cache__appinfo:sort"/>
- </xsl:apply-templates>
- </xsl:otherwise>
- </xsl:choose>
- </p5_tr_map:go_recurse_from_root_by_build_element_434>
- </xsl:when>
- <xsl:when test="local-name()='element' and not(@type) and child::node()/local-name()='complexType' and not(@system_cache__appinfo:root_element_in_schema='true')" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"> <!-- element|sequence/complexType/element|sequence|attribute - to jest to cos w rodzaju sequence - element bez wartosci - do ktorego mozna gromadzic atrybuty lub inne elementy - nowy warunek 473b ( bylo warunek 434b przepuszczenie pierszego elementu dla przypadku //schema/element/complexType ) -->
- <!--<p5_tr_map:go_recurse_from_root_by_build_element_434b>
- <xsl:attribute name="comment" select="concat('434b przepuszczenie pierszego elementu dla przypadku //schema/element/complexType - magazynujemy go w complexType nizej local-name:',local-name(),' @name:',@name,' @id:',@id,' INSTANCE_ID:',$INSTANCE_ID,' np. dla elementu teryt(..):WOJ , ktory ma nizej complexType')"/>
- <xsl:attribute name="event_type" select="'434b'"/>
- <xsl:attribute name="event_name" select="'element[]/complexType'"/>
- <xsl:attribute name="id" select="@id"/>
- <xsl:choose>
- <xsl:when test="$parent_name">
- <xsl:apply-templates mode="#current">
- <xsl:with-param name="parent_type" select="$parent_type"/> <!-\- todo brakuje prefixu-\->
- <xsl:with-param name="INSTANCE_ID" select="$INSTANCE_ID"/>
- <xsl:with-param name="parent_name" select="$parent_name"/>
- <xsl:with-param name="root_name" select="$root_name"/>
- <xsl:sort select="@system_cache__appinfo:sort"/>
- </xsl:apply-templates>
- </xsl:when>
- <xsl:otherwise><!-\- wymuszamy parent_type jak go nie ma za pierwszym razem -\->
- <xsl:apply-templates mode="#current">
- <xsl:with-param name="parent_type" select="$parent_type"/> <!-\- todo brakuje prefixu-\->
- <xsl:with-param name="INSTANCE_ID" select="$INSTANCE_ID"/>
- <xsl:with-param name="parent_name" select="@name"/>
- <xsl:with-param name="root_name" select="$root_name"/>
- <xsl:sort select="@system_cache__appinfo:sort"/>
- </xsl:apply-templates>
- </xsl:otherwise>
- </xsl:choose>
- </p5_tr_map:go_recurse_from_root_by_build_element_434b>-->
- <p5_tr_map:go_recurse_from_root_by_build_element_473b>
- <xsl:attribute name="p5_tr_map:uuid" select="$p5_tr_map:uuid"/>
- <xsl:attribute name="retrieve_PARENT_ID" select="'parent::node()/ID'"/>
- <!--<xsl:attribute name="retrieve_TYPE" select="$parent_type"/>-->
- <xsl:attribute name="retrieve_resource_id" select="@id"/>
- <xsl:attribute name="local-name" select="local-name()"/>
- <xsl:attribute name="event_type" select="'473b'"/>
- <xsl:attribute name="comment" select="'warunek 473b element complexType z dowiazanymi innymi elementami/atrybutami - do traktowania podobnie jak sekwencje @2016-05 todo'"/>
- <xsl:for-each select="@*">
- <xsl:choose>
- <xsl:when test="substring-before(name(),':')">
- <xsl:attribute name="{name()}" select="."/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:attribute name="{concat('system_cache__appinfo:',name())}" select="."/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- <xsl:copy-of select="appinfo//@*" xpath-default-namespace="http://www.w3.org/2001/XMLSchema" copy-namespaces="no"/>
- <xsl:comment>warunek 473b element complexType z dowiazanymi innymi elementami/atrybutami - do traktowania podobnie jak sekwencje @2016-05 todo </xsl:comment>
- <xsl:apply-templates mode="#current">
- <!--<xsl:with-param name="parent_type" select="$parent_type"/>--> <!-- todo brakuje prefixu-->
- <xsl:with-param name="ID" select="concat($parent_type,'(',$ID,')')"/>
- <xsl:with-param name="root_name" select="$root_name"/>
- <xsl:with-param name="system_cache__appinfo:xpath_full" select="$system_cache__appinfo:xpath_full"/>
- <xsl:with-param name="system_cache__appinfo:xpath" select="$system_cache__appinfo:xpath"/>
- <xsl:with-param name="p5_tr_map:last-type" select="'473'"/>
- <xsl:sort select="@system_cache__appinfo:sort"/>
- </xsl:apply-templates>
- </p5_tr_map:go_recurse_from_root_by_build_element_473b>
- </xsl:when>
- <xsl:when test="local-name()='complexType' and not($p5_tr_map:parent_name) and not($parent_type) and not($p5_tr_map:parent_type) and not(@type)" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"> <!-- ( bylo warunek 434b przepuszczenie pierszego elementu dla przypadku //schema/element/complexType ) -->
- <p5_tr_map:go_recurse_from_root_by_build_element_434b>
- <xsl:attribute name="p5_tr_map:uuid" select="$p5_tr_map:uuid"/>
- <xsl:attribute name="comment" select="concat('434b przepuszczenie pierszego elementu dla przypadku //schema/element/complexType - magazynujemy go w complexType nizej local-name:',local-name(),' @name:',@name,' @id:',@id,' INSTANCE_ID:',$INSTANCE_ID,' np. dla elementu teryt(..):WOJ , ktory ma nizej complexType')"/>
- <xsl:attribute name="event_type" select="'434b'"/>
- <xsl:attribute name="event_name" select="'element[]/complexType'"/>
- <xsl:attribute name="id" select="@id"/>
- <xsl:copy-of select="@system_cache__appinfo:namespace_uri"/>
- <xsl:copy-of select="appinfo//@*" xpath-default-namespace="http://www.w3.org/2001/XMLSchema" copy-namespaces="no"/>
- <!--<xsl:attribute name="parent_name" select="$parent_name"/>-->
- <xsl:choose>
- <xsl:when test="$parent_name">
- <xsl:apply-templates mode="#current">
- <xsl:with-param name="parent_type" select="$parent_type"/> <!-- todo brakuje prefixu-->
- <xsl:with-param name="INSTANCE_ID" select="$INSTANCE_ID"/>
- <xsl:with-param name="parent_name" select="$parent_name"/>
- <xsl:with-param name="root_name" select="$root_name"/>
- <xsl:sort select="@system_cache__appinfo:sort"/>
- </xsl:apply-templates>
- </xsl:when>
- <xsl:otherwise><!-- wymuszamy parent_type jak go nie ma za pierwszym razem -->
- <xsl:apply-templates mode="#current">
- <xsl:with-param name="parent_type" select="$parent_type"/> <!-- todo brakuje prefixu-->
- <xsl:with-param name="INSTANCE_ID" select="$INSTANCE_ID"/>
- <xsl:with-param name="parent_name" select="@name"/>
- <xsl:with-param name="root_name" select="$root_name"/>
- <xsl:sort select="@system_cache__appinfo:sort"/>
- </xsl:apply-templates>
- </xsl:otherwise>
- </xsl:choose>
- </p5_tr_map:go_recurse_from_root_by_build_element_434b>
- </xsl:when>
- <xsl:when test="local-name()='element' and @type and child::*/local-name()!='simpleType' and $p5_tr_map:last-type='477' and not(@id)"> <!-- warunek 434n zaraz po 477 ktore sie tyczy zasobow z bazy danych , ktore nie maja @id - TODO jakos madrzej trzeba to wykryc -->
- <p5_tr_map:go_recurse_from_root_by_build_element_434n>
- <xsl:attribute name="p5_tr_map:uuid" select="$p5_tr_map:uuid"/>
- <xsl:attribute name="comment" select="concat('434n przepuszczenie @complexType po ref 477 local-name:',local-name(),' @name:',@name,' INSTANCE_ID:',$INSTANCE_ID,' np. dla elementu MAGAZYN, ktory ma @type MAGAZYN, dotyczy elementow z plaskich struktur istniejacego systemu, do ktorego sa dowiazywane obiekty zaglebione')"/>
- <xsl:attribute name="event_type" select="'434n'"/>
- <!--<xsl:attribute name="system_cache__appinfo:id" select="@id"/>-->
- <xsl:attribute name="event_name" select="'element[@type]/node()'"/>
- <xsl:attribute name="parent_type" select="$parent_type"/>
- <xsl:copy-of select="@system_cache__appinfo:namespace_uri"/>
- <xsl:copy-of select="appinfo//@*" xpath-default-namespace="http://www.w3.org/2001/XMLSchema" copy-namespaces="no"/>
- <xsl:choose>
- <xsl:when test="$parent_name">
- <xsl:apply-templates mode="#current">
- <xsl:with-param name="parent_type" select="$parent_type"/> <!-- todo brakuje prefixu-->
- <xsl:with-param name="INSTANCE_ID" select="$INSTANCE_ID"/>
- <xsl:with-param name="parent_name" select="$parent_name"/>
- <xsl:with-param name="root_name" select="$root_name"/>
- <xsl:with-param name="p5_tr_map:parent_name" select="$p5_tr_map:parent_name"/>
- <xsl:with-param name="p5_tr_map:last-type" select="'434n'"/>
- <xsl:sort select="@system_cache__appinfo:sort"/>
- </xsl:apply-templates>
- </xsl:when>
- <xsl:otherwise><!-- wymuszamy parent_type jak go nie ma za pierwszym razem -->
- <xsl:apply-templates mode="#current">
- <xsl:with-param name="parent_type" select="$parent_type"/> <!-- todo brakuje prefixu-->
- <xsl:with-param name="INSTANCE_ID" select="$INSTANCE_ID"/>
- <xsl:with-param name="parent_name" select="@name"/>
- <xsl:with-param name="root_name" select="$root_name"/>
- <xsl:with-param name="p5_tr_map:parent_name" select="$p5_tr_map:parent_name"/>
- <xsl:with-param name="p5_tr_map:last-type" select="'434n'"/>
- <xsl:sort select="@system_cache__appinfo:sort"/>
- </xsl:apply-templates>
- </xsl:otherwise>
- </xsl:choose>
- </p5_tr_map:go_recurse_from_root_by_build_element_434n>
- </xsl:when>
- <xsl:when test="local-name()='element' and @type and child::*/local-name()!='simpleType' and $p5_tr_map:last-type='4777' and not(@id)"> <!-- warunek 434nt zaraz po 4777 ktore sie tyczy zasobow z bazy danych natywnych , ktore nie maja @id - TODO jakos madrzej trzeba to wykryc -->
- <p5_tr_map:go_recurse_from_root_by_build_element_434nt>
- <xsl:attribute name="p5_tr_map:uuid" select="$p5_tr_map:uuid"/>
- <xsl:attribute name="comment" select="concat('434nt przepuszczenie @complexType po ref 4777 local-name:',local-name(),' @name:',@name,' INSTANCE_ID:',$INSTANCE_ID,' np. dla elementu MAGAZYN, ktory ma @type MAGAZYN, dotyczy elementow z plaskich struktur istniejacego systemu, do ktorego sa dowiazywane obiekty zaglebione')"/>
- <xsl:attribute name="event_type" select="'434nt'"/>
- <!--<xsl:attribute name="system_cache__appinfo:id" select="@id"/>-->
- <xsl:attribute name="event_name" select="'element[@type]/node()'"/>
- <xsl:attribute name="parent_type" select="$parent_type"/>
- <xsl:copy-of select="@system_cache__appinfo:namespace_uri"/>
- <xsl:copy-of select="appinfo//@*" xpath-default-namespace="http://www.w3.org/2001/XMLSchema" copy-namespaces="no"/>
- <xsl:choose>
- <xsl:when test="$parent_name">
- <xsl:apply-templates mode="#current">
- <xsl:with-param name="parent_type" select="$parent_type"/> <!-- todo brakuje prefixu-->
- <xsl:with-param name="INSTANCE_ID" select="$INSTANCE_ID"/>
- <xsl:with-param name="parent_name" select="$parent_name"/>
- <xsl:with-param name="root_name" select="$root_name"/>
- <xsl:with-param name="p5_tr_map:parent_name" select="$p5_tr_map:parent_name"/>
- <xsl:with-param name="p5_tr_map:last-type" select="'434n'"/>
- <xsl:sort select="@system_cache__appinfo:sort"/>
- </xsl:apply-templates>
- </xsl:when>
- <xsl:otherwise><!-- wymuszamy parent_type jak go nie ma za pierwszym razem -->
- <xsl:apply-templates mode="#current">
- <xsl:with-param name="parent_type" select="$parent_type"/> <!-- todo brakuje prefixu-->
- <xsl:with-param name="INSTANCE_ID" select="$INSTANCE_ID"/>
- <xsl:with-param name="parent_name" select="@name"/>
- <xsl:with-param name="root_name" select="$root_name"/>
- <xsl:with-param name="p5_tr_map:parent_name" select="$p5_tr_map:parent_name"/>
- <xsl:with-param name="p5_tr_map:last-type" select="'434nt'"/>
- <xsl:sort select="@system_cache__appinfo:sort"/>
- </xsl:apply-templates>
- </xsl:otherwise>
- </xsl:choose>
- </p5_tr_map:go_recurse_from_root_by_build_element_434nt>
- </xsl:when>
- <xsl:when test="local-name()='element' and @type and child::*/local-name()!='simpleType' and $p5_tr_map:last-type='477' "> <!-- warunek 434c zaraz po 477 -->
- <p5_tr_map:go_recurse_from_root_by_build_element_434c>
- <xsl:attribute name="p5_tr_map:uuid" select="$p5_tr_map:uuid"/>
- <xsl:attribute name="comment" select="concat('434c przepuszczenie @complexType po ref 477 local-name:',local-name(),' @name:',@name,' @id:',@id,' INSTANCE_ID:',$INSTANCE_ID,' np. dla elementu MAGAZYN, ktory ma @type MAGAZYN')"/>
- <xsl:attribute name="event_type" select="'434c'"/>
- <xsl:attribute name="system_cache__appinfo:id" select="@id"/>
- <xsl:attribute name="event_name" select="'element[@type]/node()'"/>
- <xsl:attribute name="parent_type" select="$parent_type"/>
- <xsl:copy-of select="@system_cache__appinfo:namespace_uri"/>
- <xsl:copy-of select="appinfo//@*" xpath-default-namespace="http://www.w3.org/2001/XMLSchema" copy-namespaces="no"/>
- <xsl:choose>
- <xsl:when test="$parent_name">
- <xsl:apply-templates mode="#current">
- <xsl:with-param name="parent_type" select="$parent_type"/> <!-- todo brakuje prefixu-->
- <xsl:with-param name="INSTANCE_ID" select="$INSTANCE_ID"/>
- <xsl:with-param name="parent_name" select="$parent_name"/>
- <xsl:with-param name="root_name" select="$root_name"/>
- <xsl:with-param name="p5_tr_map:parent_name" select="$p5_tr_map:parent_name"/>
- <xsl:sort select="@system_cache__appinfo:sort"/>
- </xsl:apply-templates>
- </xsl:when>
- <xsl:otherwise><!-- wymuszamy parent_type jak go nie ma za pierwszym razem -->
- <xsl:apply-templates mode="#current">
- <xsl:with-param name="parent_type" select="$parent_type"/> <!-- todo brakuje prefixu-->
- <xsl:with-param name="INSTANCE_ID" select="$INSTANCE_ID"/>
- <xsl:with-param name="parent_name" select="@name"/>
- <xsl:with-param name="root_name" select="$root_name"/>
- <xsl:with-param name="p5_tr_map:parent_name" select="$p5_tr_map:parent_name"/>
- <xsl:sort select="@system_cache__appinfo:sort"/>
- </xsl:apply-templates>
- </xsl:otherwise>
- </xsl:choose>
- </p5_tr_map:go_recurse_from_root_by_build_element_434c>
- </xsl:when>
- <xsl:when test="local-name()='element' and not(@type) and child::node()[local-name()='complexType' and not(@system_cache__appinfo:only_complexContent_definition)] and @system_cache__appinfo:root_element_in_schema='true' and @name and $parent_type "> <!-- warunek 434d /schema/!!!element!!!/complexType bez @type w glownym wywolaniu -->
- <p5_tr_map:go_recurse_from_root_by_build_element_434d>
- <xsl:attribute name="p5_tr_map:uuid" select="$p5_tr_map:uuid"/>
- <xsl:attribute name="comment" select="concat('434d przepuszczenie elementu na root, bez @type local-name:',local-name(),' @name:',@name,' @id:',@id,' INSTANCE_ID:',$INSTANCE_ID,' np. dla prove_portal:klient')"/>
- <xsl:attribute name="event_type" select="'434d'"/>
- <xsl:attribute name="system_cache__appinfo:id" select="@id"/>
- <xsl:attribute name="event_name" select="'element[@type]/node()'"/>
- <xsl:attribute name="parent_type" select="$parent_type"/>
- <xsl:attribute name="system_cache__appinfo:name" select="@name"/>
- <xsl:copy-of select="@system_cache__appinfo:namespace_uri"/>
- <xsl:copy-of select="appinfo//@*" xpath-default-namespace="http://www.w3.org/2001/XMLSchema" copy-namespaces="no"/>
- <xsl:choose>
- <!--<xsl:when test="$parent_name">
- <xsl:apply-templates mode="#current">
- <xsl:with-param name="parent_type" select="$parent_type"/> <!-\- todo brakuje prefixu-\->
- <xsl:with-param name="INSTANCE_ID" select="$INSTANCE_ID"/>
- <xsl:with-param name="parent_name" select="$parent_name"/>
- <xsl:with-param name="root_name" select="$root_name"/>
- <xsl:with-param name="p5_tr_map:parent_name" select="$p5_tr_map:parent_name"/>
- <xsl:with-param name="p5_tr_map:last-type" select="'434d'"/>
- <xsl:sort select="@system_cache__appinfo:sort"/>
- </xsl:apply-templates>
- </xsl:when>-->
- <xsl:when test="1=2"/>
- <xsl:otherwise><!-- wymuszamy parent_type jak go nie ma za pierwszym razem -->
- <xsl:apply-templates mode="#current">
- <xsl:with-param name="parent_type" select="$parent_type"/> <!-- todo brakuje prefixu-->
- <xsl:with-param name="INSTANCE_ID" select="$INSTANCE_ID"/>
- <xsl:with-param name="parent_name" select="@name"/>
- <xsl:with-param name="root_name" select="$root_name"/>
- <xsl:with-param name="p5_tr_map:parent_name" select="$p5_tr_map:parent_name"/>
- <xsl:with-param name="p5_tr_map:last-type" select="'434d'"/>
- <xsl:sort select="@system_cache__appinfo:sort"/>
- </xsl:apply-templates>
- </xsl:otherwise>
- </xsl:choose>
- </p5_tr_map:go_recurse_from_root_by_build_element_434d>
- </xsl:when>
- <xsl:when test="local-name()='element' and not(@type) and child::node()[local-name()='complexType' and @system_cache__appinfo:only_complexContent_definition] and @system_cache__appinfo:root_element_in_schema='true' and @name and $parent_type "> <!-- warunek 434d /schema/!!!element!!!/complexType bez @type w glownym wywolaniu -->
- <p5_tr_map:go_recurse_from_root_by_build_element_434er>
- <xsl:attribute name="p5_tr_map:uuid" select="$p5_tr_map:uuid"/>
- <xsl:attribute name="comment" select="concat('434er element z lokalnym extension/restriction z @type . przepuszczenie elementu na root, bez @type local-name:',local-name(),' @name:',@name,' @id:',@id,' INSTANCE_ID:',$INSTANCE_ID,' np. dla prove_portal:klient')"/>
- <xsl:attribute name="event_type" select="'434er'"/>
- <xsl:attribute name="system_cache__appinfo:id" select="@id"/>
- <xsl:attribute name="event_name" select="'element[@type]/node()'"/>
- <xsl:attribute name="parent_type" select="$parent_type"/>
- <xsl:attribute name="system_cache__appinfo:name" select="@name"/>
- <xsl:copy-of select="@system_cache__appinfo:namespace_uri"/>
- <xsl:copy-of select="appinfo//@*" xpath-default-namespace="http://www.w3.org/2001/XMLSchema" copy-namespaces="no"/>
- <xsl:choose>
- <!--<xsl:when test="$parent_name">
- <xsl:apply-templates mode="#current">
- <xsl:with-param name="parent_type" select="$parent_type"/> <!-\- todo brakuje prefixu-\->
- <xsl:with-param name="INSTANCE_ID" select="$INSTANCE_ID"/>
- <xsl:with-param name="parent_name" select="$parent_name"/>
- <xsl:with-param name="root_name" select="$root_name"/>
- <xsl:with-param name="p5_tr_map:parent_name" select="$p5_tr_map:parent_name"/>
- <xsl:with-param name="p5_tr_map:last-type" select="'434d'"/>
- <xsl:sort select="@system_cache__appinfo:sort"/>
- </xsl:apply-templates>
- </xsl:when>-->
- <xsl:when test="1=2"/>
- <xsl:otherwise><!-- wymuszamy parent_type jak go nie ma za pierwszym razem -->
- <xsl:apply-templates mode="#current">
- <xsl:with-param name="parent_type" select="$parent_type"/> <!-- todo brakuje prefixu-->
- <xsl:with-param name="INSTANCE_ID" select="$INSTANCE_ID"/>
- <xsl:with-param name="parent_name" select="@name"/>
- <xsl:with-param name="root_name" select="$root_name"/>
- <xsl:with-param name="p5_tr_map:parent_name" select="$p5_tr_map:parent_name"/>
- <xsl:with-param name="p5_tr_map:last-type" select="'434er'"/>
- <xsl:sort select="@system_cache__appinfo:sort"/>
- </xsl:apply-templates>
- </xsl:otherwise>
- </xsl:choose>
- </p5_tr_map:go_recurse_from_root_by_build_element_434er>
- </xsl:when>
- <xsl:when test="local-name()='element' and not(@type) and child::node()[local-name()='complexType'] and @system_cache__appinfo:root_element_in_schema='true' and @name and not($parent_type)"> <!-- warunek 434r w !__element__! = /schema/complexType//@ref/!__element__!/complexType bez @type w glownym wywolaniu -->
- <p5_tr_map:go_recurse_from_root_by_build_element_434r>
- <xsl:attribute name="p5_tr_map:uuid" select="$p5_tr_map:uuid"/>
- <xsl:attribute name="comment" select="concat('434r warunek 434r w !__element__! = /schema/complexType//@ref/!__element__!/complexType bez @type w glownym wywolaniu local-name:',local-name(),' @name:',@name,' @id:',@id,' INSTANCE_ID:',$INSTANCE_ID,' np. dla prove_portal:klient')"/>
- <xsl:attribute name="event_type" select="'434r'"/>
- <xsl:attribute name="system_cache__appinfo:id" select="@id"/>
- <xsl:attribute name="event_name" select="'element[@type]/node()'"/>
- <xsl:attribute name="parent_type" select="$parent_type"/>
- <xsl:attribute name="system_cache__appinfo:name" select="@name"/>
- <xsl:copy-of select="@system_cache__appinfo:namespace_uri"/>
- <xsl:copy-of select="appinfo//@*" xpath-default-namespace="http://www.w3.org/2001/XMLSchema" copy-namespaces="no"/>
- <xsl:choose>
- <!--<xsl:when test="$parent_name">
- <xsl:apply-templates mode="#current">
- <xsl:with-param name="parent_type" select="$parent_type"/> <!-\- todo brakuje prefixu-\->
- <xsl:with-param name="INSTANCE_ID" select="$INSTANCE_ID"/>
- <xsl:with-param name="parent_name" select="$parent_name"/>
- <xsl:with-param name="root_name" select="$root_name"/>
- <xsl:with-param name="p5_tr_map:parent_name" select="$p5_tr_map:parent_name"/>
- <xsl:with-param name="p5_tr_map:last-type" select="'434d'"/>
- <xsl:sort select="@system_cache__appinfo:sort"/>
- </xsl:apply-templates>
- </xsl:when>-->
- <xsl:when test="1=2"/>
- <xsl:otherwise><!-- wymuszamy parent_type jak go nie ma za pierwszym razem -->
- <xsl:apply-templates mode="#current">
- <xsl:with-param name="parent_type" select="$parent_type"/> <!-- todo brakuje prefixu-->
- <xsl:with-param name="INSTANCE_ID" select="$INSTANCE_ID"/>
- <xsl:with-param name="parent_name" select="@name"/>
- <xsl:with-param name="root_name" select="$root_name"/>
- <xsl:with-param name="p5_tr_map:parent_name" select="$p5_tr_map:parent_name"/>
- <xsl:with-param name="p5_tr_map:last-type" select="'434r'"/>
- <xsl:sort select="@system_cache__appinfo:sort"/>
- </xsl:apply-templates>
- </xsl:otherwise>
- </xsl:choose>
- </p5_tr_map:go_recurse_from_root_by_build_element_434r>
- </xsl:when>
- <xsl:when test="not($parent_type) and local-name()='element' and @type and child::* and $p5_tr_map:last-type!='477' and @id"> <!-- 477b wymuszenie 477 na pierwszym elemencie ktory jest @complexType i nie jest ref 477 -->
- <p5_tr_map:go_recurse_from_root_by_build_element_477b>
- <xsl:attribute name="retrieve_PARENT_ID" select="'parent::node()/ID'"/>
- <!--<xsl:attribute name="retrieve_TYPE" select="$parent_type"/>--><!-- Nie potrzebny jest tutaj typ, bo to nie jest instancyjna-->
- <xsl:attribute name="retrieve_REMOTE_ID" select="'not empty(REMOTE_ID)'"/>
- <xsl:attribute name="local-name" select="local-name()"/>
- <xsl:attribute name="local-name-name" select="@name"/>
- <xsl:attribute name="create_element" select="@name"/>
- <xsl:attribute name="requested-table-type" select="'INSTANCE'"/>
- <xsl:attribute name="event_type" select="'477b'"/>
- <xsl:attribute name="p5_tr_map:uuid" select="$p5_tr_map:uuid"/>
- <xsl:attribute name="comment" select="'477b uzyty ComplexType bez @ref w elemencie - symulacja pobrania elementu jak z @ref i musi miec REMOTE_ID'"/>
- <xsl:variable name="system_cache__appinfo:xpath_full">
- <xsl:choose>
- <xsl:when test="$system_cache__appinfo:xpath_full">
- <xsl:value-of select="concat($system_cache__appinfo:xpath_full,'/',@type)"/>
- </xsl:when>
- <xsl:otherwise><xsl:value-of select="@type"/></xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:attribute name="system_cache__appinfo:xpath_full" select="$system_cache__appinfo:xpath_full"/>
- <xsl:for-each select="@*">
- <xsl:choose>
- <xsl:when test="substring-before(name(),':')">
- <xsl:attribute name="{name()}" select="."/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:attribute name="{concat('system_cache__appinfo:',name())}" select="."/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- <xsl:variable name="p5_tr_map:detect_loop_from_build_complexType_node">
- <xsl:apply-templates mode="p5_tr_map:detect_loop_from_build_complexType_node"/>
- </xsl:variable>
- <xsl:choose>
- <xsl:when test="$p5_tr_map:detect_loop_from_build_complexType_node/p5_tr_map:detect_loop_from_build_complexType_node">
- <xsl:attribute name="system_cache__appinfo:loop_name" select="$p5_tr_map:detect_loop_from_build_complexType_node//@system_cache__appinfo:loop_name"/>
- <xsl:attribute name="system_cache__appinfo:loop_id" select="$p5_tr_map:detect_loop_from_build_complexType_node//@system_cache__appinfo:loop_id"/>
- <xsl:attribute name="system_cache__appinfo:loop_name_with_prefix" select="$p5_tr_map:detect_loop_from_build_complexType_node//@system_cache__appinfo:loop_name_with_prefix"/>
- <xsl:attribute name="p5_tr_map:detect_loop_from_build_complexType_node_comment" select="'detected loop from template p5_tr_map:detect_loop_from_build_complexType_node'"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:if test="child::node()/system_cache__appinfo:loop">
- <xsl:attribute name="system_cache__appinfo:loop_name" select="child::node()/system_cache__appinfo:loop/@name"/>
- <xsl:attribute name="system_cache__appinfo:loop_id" select="child::node()/system_cache__appinfo:loop/@id"/>
- <xsl:attribute name="system_cache__appinfo:loop_name_with_prefix" select="child::node()/system_cache__appinfo:loop/@name_with_prefix"/>
- </xsl:if>
- </xsl:otherwise>
- </xsl:choose>
-
- <xsl:apply-templates mode="#current">
- <!--<xsl:with-param name="parent_type" select="$parent_type"/>--> <!-- nie ma tutaj complexType wiec nie ma instancji -->
- <xsl:with-param name="ID" select="concat($parent_type,'(',$ID,')')"/>
- <xsl:with-param name="root_name" select="$root_name"/>
- <xsl:with-param name="system_cache__appinfo:xpath_full" select="$system_cache__appinfo:xpath_full"/>
- <xsl:with-param name="p5_tr_map:last-type" select="'477b'"/>
- <xsl:with-param name="p5_tr_map:parent_type" select="@type"/>
- <!--<xsl:with-param name="parent_type" select="@type"/>-->
- <xsl:sort select="@system_cache__appinfo:sort"/>
- </xsl:apply-templates>
- </p5_tr_map:go_recurse_from_root_by_build_element_477b>
- </xsl:when>
- <xsl:when test="local-name()='complexType' and child::node()[@system_cache__appinfo:restriciction_base]"> <!-- warunek 710 - przepuszczenie complexType jezeli dziecko powstalo na bazie restrykcji (oszczedzamy 1 tabele instancji) -->
- <p5_tr_map:go_recurse_from_root_by_build_element_710>
- <xsl:attribute name="event_type" select="710"/>
- <xsl:attribute name="p5_tr_map:uuid" select="$p5_tr_map:uuid"/>
- <xsl:attribute name="comment" select="concat('710 przepuszczenie complexType jezeli dziecko powstal na bazie restrykcji (oszczedzamy 1 tabele instancji) local-name:',local-name(),' @name:',@name,' @id:',@id,' np dla element T:MAGAZYN=restriction(LOKALIZACJA)')"/>
- <xsl:apply-templates mode="#current">
- <xsl:with-param name="parent_type" select="$parent_type"/> <!-- todo brakuje prefixu-->
- <xsl:with-param name="INSTANCE_ID" select="$INSTANCE_ID"/>
- <xsl:with-param name="root_name" select="$root_name"/>
- <xsl:sort select="@system_cache__appinfo:sort"/>
- </xsl:apply-templates>
- </p5_tr_map:go_recurse_from_root_by_build_element_710>
- </xsl:when>
- <xsl:when test="local-name()='complexType' and not(@id) and $p5_tr_map:last-type='434nt'"> <!-- warunek 734 - pobranie elemnetu z np. default_db bo nie ma @id -->
- <p5_tr_map:go_recurse_from_root_by_build_element_734>
- <xsl:attribute name="retrieve_ID" select="'parent::node()/REMOTE_ID'"/>
- <!--<xsl:attribute name="retrieve_TYPE" select="$parent_type"/>--><!--nie potrzeba oczekiwanego typu - zaciagamy rekord z ID-->
- <xsl:attribute name="local-name" select="local-name()"/>
- <xsl:attribute name="local-name-name" select="@name"/>
- <xsl:attribute name="copy-retrieved-element" select="'*'"/> <!-- nalezy skopiowac cala zawartosc sciagnietego elementu XML z api -->
- <xsl:attribute name="event_type" select="734"/>
- <xsl:attribute name="p5_tr_map:uuid" select="$p5_tr_map:uuid"/>
- <xsl:attribute name="comment" select="'734 pobranie elementu zwyczajowo z default_db, bo nie ma @id i jest complextype np. MAGAZYN/sequence/default_db:TELBOXES/(obiekt z tabeli TELBOXES z ID=@REMOTE_ID)'"/>
- <xsl:for-each select="@*">
- <xsl:choose>
- <xsl:when test="substring-before(name(),':')">
- <xsl:attribute name="{name()}" select="."/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:attribute name="{concat('system_cache__appinfo:',name())}" select="."/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- <xsl:comment>734 pobranie elementu zwyczajowo z default_db, bo nie ma @id i jest complextype np. MAGAZYN/sequence/default_db:TELBOXES/(obiekt z tabeli TELBOXES z ID=@REMOTE_ID) </xsl:comment>
- <xsl:copy-of select="appinfo//@*" xpath-default-namespace="http://www.w3.org/2001/XMLSchema" copy-namespaces="no"/>
- <system_cache__appinfo:schema><xsl:copy-of select="."/></system_cache__appinfo:schema>
- <!--@2015-10-25 - nie robimy apply template po pobraniu schematu <xsl:apply-templates mode="#current">
- <xsl:with-param name="parent_type" select="$parent_type"/> <!-\- todo brakuje prefixu-\->
- <xsl:with-param name="ID" select="concat($parent_type,'(',$ID,')')"/>
- <xsl:with-param name="root_name" select="$root_name"/>
- <xsl:sort select="@system_cache__appinfo:sort"/>
- </xsl:apply-templates>-->
- </p5_tr_map:go_recurse_from_root_by_build_element_734>
- </xsl:when>
- <xsl:when test="local-name()='complexType' and $parent_type and $INSTANCE_ID"><!-- warunek 467 jezeli obiekt jest wyzwalany z parentem to oznacza, ze tworzymy instancje, po pierwszym sequence one sie utracaja -->
- <p5_tr_map:go_recurse_from_root_by_build_element_467>
- <xsl:attribute name="p5_tr_map:uuid" select="$p5_tr_map:uuid"/>
- <xsl:attribute name="retrieve_ID" select="$INSTANCE_ID"/>
- <xsl:attribute name="retrieve_TYPE" select="$parent_type"/>
- <xsl:attribute name="retrieve_REMOTE_ID" select="'empty(REMOTE_ID) or REMOTE_ID'"/> <!-- moze miec REMOTE_ID lub nie musi, jezeli ma dzieci derewiacji -->
- <xsl:attribute name="create_element" select="$parent_type"/>
- <xsl:attribute name="local-name" select="local-name()"/>
- <xsl:attribute name="local-name-name" select="@name"/>
- <xsl:attribute name="requested-table-type" select="'INSTANCE'"/>
- <xsl:attribute name="restriciction_base" select="@system_cache__appinfo:restriciction_base"/> <!-- zbedny argument tylko do pokazania, ze bylo to na restrykcji - moze sie przydac?-->
- <xsl:attribute name="event_type" select="467"/>
- <xsl:for-each select="@*">
- <xsl:choose>
- <xsl:when test="substring-before(name(),':')">
- <xsl:attribute name="{name()}" select="."/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:attribute name="{concat('system_cache__appinfo:',name())}" select="."/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- <xsl:comment>467 tutaj beda obiekty z ID oraz type poza pierwszym? - tutaj jest tabela z instancjami obych obiektow (ComplexType) , pytamy sie o konkretny @type=$parent_type -derewiacje MAGAZYN(cT)/LOKALIZACJA(ct) </xsl:comment>
- <xsl:apply-templates mode="#current">
- <xsl:with-param name="parent_type" select="$parent_type"/> <!-- todo brakuje prefixu-->
- <xsl:with-param name="ID" select="concat($parent_type,'(',$ID,')')"/>
- <xsl:with-param name="root_name" select="$root_name"/>
- <xsl:sort select="@system_cache__appinfo:sort"/>
- </xsl:apply-templates>
- </p5_tr_map:go_recurse_from_root_by_build_element_467>
- </xsl:when>
-
- <!-- simpleContent firstly instanced begin -->
- <xsl:when test="local-name()='complexType' and $parent_type and not($INSTANCE_ID) and parent::node()[local-name()='complexType'] and child::node()[local-name()='complexType'] and ( not(descendant::node()/local-name()='sequence') and not(descendant::node()/local-name()='all') and not(descendant::node()/local-name()='choice') and descendant::node()/local-name()='simpleContent' )"> <!-- warunek 3941 kolejna derewiacja np. database_objects:LinearRingType/LinearRingType/AbstractRingType - w kolejnej oczekujemy REMOTE_ID=parent::node()/ID -->
- <p5_tr_map:go_recurse_from_root_by_build_element_3941>
- <xsl:attribute name="p5_tr_map:uuid" select="$p5_tr_map:uuid"/>
- <xsl:attribute name="retrieve_ID" select="'parent::node()/REMOTE_ID'"/>
- <xsl:attribute name="retrieve_REMOTE_ID" select="'empty(REMOTE_ID) or REMOTE_ID'"/>
- <xsl:attribute name="retrieve_TYPE" select="$parent_type"/>
- <xsl:attribute name="local-name" select="local-name()"/>
- <xsl:attribute name="local-name-name" select="@name"/>
- <xsl:attribute name="restriciction_base" select="@system_cache__appinfo:restriciction_base"/> <!-- zbedny argument tylko do pokazania, ze bylo to na restrykcji - moze sie przydac?-->
- <xsl:attribute name="event_type" select="3941"/>
- <xsl:attribute name="comment" select="'3941 simpleContent kolejna derewiacja np. database_objects:LinearRingType/LinearRingType/AbstractRingType - w kolejnej oczekujemy REMOTE_ID=parent::node()/ID '"/>
- <xsl:variable name="system_cache__appinfo:xpath_full">
- <xsl:choose>
- <xsl:when test="$system_cache__appinfo:xpath_full">
- <xsl:value-of select="concat($system_cache__appinfo:xpath_full,'/',@system_cache__appinfo:prefix,':',@name)"/>
- </xsl:when>
- <xsl:otherwise><xsl:value-of select="concat(@system_cache__appinfo:prefix,':',@name)"/></xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:attribute name="system_cache__appinfo:xpath_full" select="$system_cache__appinfo:xpath_full"/>
- <xsl:attribute name="system_cache__appinfo:xpath" select="concat(@system_cache__appinfo:prefix,':',@name)"/>
- <xsl:for-each select="@*">
- <xsl:choose>
- <xsl:when test="substring-before(name(),':')">
- <xsl:attribute name="{name()}" select="."/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:attribute name="{concat('system_cache__appinfo:',name())}" select="."/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- <xsl:apply-templates mode="#current">
- <xsl:with-param name="parent_type" select="$parent_type"/> <!-- todo brakuje prefixu-->
- <xsl:with-param name="ID" select="concat($parent_type,'(',$ID,')')"/>
- <xsl:with-param name="root_name" select="$root_name"/>
- <xsl:with-param name="system_cache__appinfo:xpath_full" select="$system_cache__appinfo:xpath_full"/>
- <xsl:with-param name="system_cache__appinfo:xpath" select="concat(@system_cache__appinfo:prefix,':',@name)"/>
- <xsl:sort select="@system_cache__appinfo:sort"/>
- </xsl:apply-templates>
- </p5_tr_map:go_recurse_from_root_by_build_element_3941>
- </xsl:when>
- <xsl:when test="local-name()='complexType' and $parent_type and not($INSTANCE_ID) and parent::node()[local-name()='complexType'] and @id and ( not(descendant::node()/local-name()='sequence') and not(descendant::node()/local-name()='all') and not(descendant::node()/local-name()='choice') and descendant::node()/local-name()='simpleContent' )"> <!-- warunek 3940 simpleContent jest dodatkowa z derewiacja @type -->
- <p5_tr_map:go_recurse_from_root_by_build_element_3940>
- <xsl:attribute name="p5_tr_map:uuid" select="$p5_tr_map:uuid"/>
- <xsl:attribute name="retrieve_ID" select="'parent::node()/REMOTE_ID'"/>
- <xsl:attribute name="retrieve_REMOTE_ID" select="'empty(REMOTE_ID) or REMOTE_ID'"/>
- <xsl:attribute name="retrieve_TYPE" select="$parent_type"/>
- <xsl:attribute name="local-name" select="local-name()"/>
- <xsl:attribute name="local-name-name" select="@name"/>
- <xsl:attribute name="restriciction_base" select="@system_cache__appinfo:restriciction_base"/> <!-- zbedny argument tylko do pokazania, ze bylo to na restrykcji - moze sie przydac?-->
- <xsl:attribute name="event_type" select="3940"/>
- <xsl:attribute name="comment" select="'3940 simpleContent kolejna derewiacja w kolejnej oczekujemy REMOTE_ID=parent::node()/ID '"/>
- <xsl:variable name="system_cache__appinfo:xpath_full">
- <xsl:choose>
- <xsl:when test="$system_cache__appinfo:xpath_full">
- <xsl:value-of select="concat($system_cache__appinfo:xpath_full,'/',@system_cache__appinfo:prefix,':',@name)"/>
- </xsl:when>
- <xsl:otherwise><xsl:value-of select="concat(@system_cache__appinfo:prefix,':',@name)"/></xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:attribute name="system_cache__appinfo:xpath_full" select="$system_cache__appinfo:xpath_full"/>
- <xsl:attribute name="system_cache__appinfo:xpath" select="concat(@system_cache__appinfo:prefix,':',@name)"/>
- <xsl:for-each select="@*">
- <xsl:choose>
- <xsl:when test="substring-before(name(),':')">
- <xsl:attribute name="{name()}" select="."/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:attribute name="{concat('system_cache__appinfo:',name())}" select="."/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- <xsl:apply-templates mode="#current">
- <xsl:with-param name="parent_type" select="$parent_type"/> <!-- todo brakuje prefixu-->
- <xsl:with-param name="ID" select="concat($parent_type,'(',$ID,')')"/>
- <xsl:with-param name="root_name" select="$root_name"/>
- <xsl:with-param name="system_cache__appinfo:xpath_full" select="$system_cache__appinfo:xpath_full"/>
- <xsl:with-param name="system_cache__appinfo:xpath" select="concat(@system_cache__appinfo:prefix,':',@name)"/>
- <xsl:sort select="@system_cache__appinfo:sort"/>
- </xsl:apply-templates>
- </p5_tr_map:go_recurse_from_root_by_build_element_3940>
- </xsl:when>
- <xsl:when test="local-name()='complexType' and $parent_type and not($INSTANCE_ID) and child::node()[local-name()='complexType'] and @id and ( not(descendant::node()/local-name()='sequence') and not(descendant::node()/local-name()='all') and not(descendant::node()/local-name()='choice') and descendant::node()/local-name()='simpleContent' )"> <!-- warunek 3942 simpleContent chyba pierwsza derewiacja ktora ma ich wiecej -->
- <p5_tr_map:go_recurse_from_root_by_build_element_3942>
- <xsl:attribute name="p5_tr_map:uuid" select="$p5_tr_map:uuid"/>
- <xsl:attribute name="retrieve_ID" select="'parent::node()/REMOTE_ID'"/>
- <xsl:attribute name="retrieve_REMOTE_ID" select="'empty(REMOTE_ID) or REMOTE_ID'"/>
- <xsl:attribute name="retrieve_TYPE" select="$parent_type"/>
- <xsl:attribute name="local-name" select="local-name()"/>
- <xsl:attribute name="local-name-name" select="@name"/>
- <xsl:attribute name="restriciction_base" select="@system_cache__appinfo:restriciction_base"/> <!-- zbedny argument tylko do pokazania, ze bylo to na restrykcji - moze sie przydac?-->
- <xsl:attribute name="event_type" select="3942"/>
- <xsl:attribute name="comment" select="'3942 simpleContent pierwsza derewiacja i będą kolejne- w kolejnej oczekujemy REMOTE_ID=parent::node()/ID '"/>
- <xsl:variable name="system_cache__appinfo:xpath_full">
- <xsl:choose>
- <xsl:when test="$system_cache__appinfo:xpath_full">
- <xsl:value-of select="concat($system_cache__appinfo:xpath_full,'/',@system_cache__appinfo:prefix,':',@name)"/>
- </xsl:when>
- <xsl:otherwise><xsl:value-of select="concat(@system_cache__appinfo:prefix,':',@name)"/></xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:attribute name="system_cache__appinfo:xpath_full" select="$system_cache__appinfo:xpath_full"/>
- <xsl:attribute name="system_cache__appinfo:xpath" select="concat(@system_cache__appinfo:prefix,':',@name)"/>
- <xsl:for-each select="@*">
- <xsl:choose>
- <xsl:when test="substring-before(name(),':')">
- <xsl:attribute name="{name()}" select="."/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:attribute name="{concat('system_cache__appinfo:',name())}" select="."/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- <xsl:apply-templates mode="#current">
- <xsl:with-param name="parent_type" select="$parent_type"/> <!-- todo brakuje prefixu-->
- <xsl:with-param name="ID" select="concat($parent_type,'(',$ID,')')"/>
- <xsl:with-param name="root_name" select="$root_name"/>
- <xsl:with-param name="system_cache__appinfo:xpath_full" select="$system_cache__appinfo:xpath_full"/>
- <xsl:with-param name="system_cache__appinfo:xpath" select="concat(@system_cache__appinfo:prefix,':',@name)"/>
- <xsl:sort select="@system_cache__appinfo:sort"/>
- </xsl:apply-templates>
- </p5_tr_map:go_recurse_from_root_by_build_element_3942>
- </xsl:when>
- <xsl:when test="local-name()='complexType' and $parent_type and not($INSTANCE_ID) and $p5_tr_map:last-type!='434d' and $p5_tr_map:last-type!='477b' and @id and ( not(descendant::node()/local-name()='sequence') and not(descendant::node()/local-name()='all') and not(descendant::node()/local-name()='choice') and descendant::node()/local-name()='simpleContent' )"> <!-- warunek 394 jedyna derewiacja np. database_objects:LinearRingType/LinearRingType/AbstractRingType - w kolejnej oczekujemy REMOTE_ID=parent::node()/ID -->
- <p5_tr_map:go_recurse_from_root_by_build_element_394>
- <xsl:attribute name="p5_tr_map:uuid" select="$p5_tr_map:uuid"/>
- <xsl:attribute name="retrieve_ID" select="'parent::node()/REMOTE_ID'"/>
- <xsl:attribute name="retrieve_REMOTE_ID" select="'empty(REMOTE_ID) or REMOTE_ID'"/>
- <xsl:attribute name="retrieve_TYPE" select="$parent_type"/>
- <xsl:attribute name="local-name" select="local-name()"/>
- <xsl:attribute name="local-name-name" select="@name"/>
- <xsl:attribute name="restriciction_base" select="@system_cache__appinfo:restriciction_base"/> <!-- zbedny argument tylko do pokazania, ze bylo to na restrykcji - moze sie przydac?-->
- <xsl:attribute name="event_type" select="394"/>
- <xsl:attribute name="comment" select="'394 jedyna simpleContent derewiacja np. database_objects:LinearRingType/LinearRingType/AbstractRingType - w kolejnej oczekujemy REMOTE_ID=parent::node()/ID '"/>
- <xsl:variable name="system_cache__appinfo:xpath_full">
- <xsl:choose>
- <xsl:when test="$system_cache__appinfo:xpath_full">
- <xsl:value-of select="concat($system_cache__appinfo:xpath_full,'/',@system_cache__appinfo:prefix,':',@name)"/>
- </xsl:when>
- <xsl:otherwise><xsl:value-of select="concat(@system_cache__appinfo:prefix,':',@name)"/></xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:attribute name="system_cache__appinfo:xpath_full" select="$system_cache__appinfo:xpath_full"/>
- <xsl:attribute name="system_cache__appinfo:xpath" select="concat(@system_cache__appinfo:prefix,':',@name)"/>
- <xsl:for-each select="@*">
- <xsl:choose>
- <xsl:when test="substring-before(name(),':')">
- <xsl:attribute name="{name()}" select="."/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:attribute name="{concat('system_cache__appinfo:',name())}" select="."/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- <xsl:apply-templates mode="#current">
- <xsl:with-param name="parent_type" select="$parent_type"/> <!-- todo brakuje prefixu-->
- <xsl:with-param name="parent_name" select="$parent_name"/>
- <xsl:with-param name="ID" select="concat($parent_type,'(',$ID,')')"/>
- <xsl:with-param name="root_name" select="$root_name"/>
- <xsl:with-param name="system_cache__appinfo:xpath_full" select="$system_cache__appinfo:xpath_full"/>
- <xsl:with-param name="system_cache__appinfo:xpath" select="concat(@system_cache__appinfo:prefix,':',@name)"/>
- <xsl:sort select="@system_cache__appinfo:sort"/>
- </xsl:apply-templates>
- </p5_tr_map:go_recurse_from_root_by_build_element_394>
- </xsl:when>
- <!-- simpleContent firstly instanced end -->
- <xsl:when test="local-name()='complexType' and $parent_type and not($INSTANCE_ID) and not(@system_cache__appinfo:only_complexContent_definition) and parent::node()[local-name()='complexType' and not(@system_cache__appinfo:only_complexContent_definition)] and child::node()[local-name()='complexType' and not(@system_cache__appinfo:only_complexContent_definition)] "> <!-- warunek 4941 kolejna derewiacja np. database_objects:LinearRingType/LinearRingType/AbstractRingType - w kolejnej oczekujemy REMOTE_ID=parent::node()/ID -->
- <p5_tr_map:go_recurse_from_root_by_build_element_4941>
- <xsl:attribute name="p5_tr_map:uuid" select="$p5_tr_map:uuid"/>
- <xsl:attribute name="retrieve_ID" select="'parent::node()/REMOTE_ID'"/>
- <xsl:attribute name="retrieve_REMOTE_ID" select="'empty(REMOTE_ID) or REMOTE_ID'"/>
- <xsl:attribute name="retrieve_TYPE" select="$parent_type"/>
- <xsl:attribute name="local-name" select="local-name()"/>
- <xsl:attribute name="local-name-name" select="@name"/>
- <xsl:attribute name="restriciction_base" select="@system_cache__appinfo:restriciction_base"/> <!-- zbedny argument tylko do pokazania, ze bylo to na restrykcji - moze sie przydac?-->
- <xsl:attribute name="event_type" select="4941"/>
- <xsl:attribute name="event_type_old" select="494"/>
- <xsl:variable name="system_cache__appinfo:xpath_full">
- <xsl:choose>
- <xsl:when test="$system_cache__appinfo:xpath_full">
- <xsl:value-of select="concat($system_cache__appinfo:xpath_full,'/',@system_cache__appinfo:prefix,':',@name)"/>
- </xsl:when>
- <xsl:otherwise><xsl:value-of select="concat(@system_cache__appinfo:prefix,':',@name)"/></xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:attribute name="system_cache__appinfo:xpath_full" select="$system_cache__appinfo:xpath_full"/>
- <xsl:attribute name="system_cache__appinfo:xpath" select="concat(@system_cache__appinfo:prefix,':',@name)"/>
- <xsl:for-each select="@*">
- <xsl:choose>
- <xsl:when test="substring-before(name(),':')">
- <xsl:attribute name="{name()}" select="."/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:attribute name="{concat('system_cache__appinfo:',name())}" select="."/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- <xsl:comment>4941 kolejna derewiacja np. database_objects:LinearRingType/LinearRingType/AbstractRingType - w kolejnej oczekujemy REMOTE_ID=parent::node()/ID </xsl:comment>
- <xsl:apply-templates mode="#current">
- <xsl:with-param name="parent_type" select="$parent_type"/> <!-- todo brakuje prefixu-->
- <xsl:with-param name="ID" select="concat($parent_type,'(',$ID,')')"/>
- <xsl:with-param name="root_name" select="$root_name"/>
- <xsl:with-param name="system_cache__appinfo:xpath_full" select="$system_cache__appinfo:xpath_full"/>
- <xsl:with-param name="system_cache__appinfo:xpath" select="concat(@system_cache__appinfo:prefix,':',@name)"/>
- <xsl:sort select="@system_cache__appinfo:sort"/>
- </xsl:apply-templates>
- </p5_tr_map:go_recurse_from_root_by_build_element_4941>
- </xsl:when>
- <xsl:when test="local-name()='complexType' and $parent_type and not($INSTANCE_ID) and not(@system_cache__appinfo:only_complexContent_definition) and parent::node()[local-name()='complexType' and not(@system_cache__appinfo:only_complexContent_definition)] and @id"> <!-- warunek 4940 jest dodatkowa z derewiacja @type -->
- <p5_tr_map:go_recurse_from_root_by_build_element_4940>
- <xsl:attribute name="p5_tr_map:uuid" select="$p5_tr_map:uuid"/>
- <xsl:attribute name="retrieve_ID" select="'parent::node()/REMOTE_ID'"/>
- <xsl:attribute name="retrieve_REMOTE_ID" select="'empty(REMOTE_ID) or REMOTE_ID'"/>
- <xsl:attribute name="retrieve_TYPE" select="$parent_type"/>
- <xsl:attribute name="local-name" select="local-name()"/>
- <xsl:attribute name="local-name-name" select="@name"/>
- <xsl:attribute name="restriciction_base" select="@system_cache__appinfo:restriciction_base"/> <!-- zbedny argument tylko do pokazania, ze bylo to na restrykcji - moze sie przydac?-->
- <xsl:attribute name="event_type" select="4940"/>
- <xsl:attribute name="event_type_old" select="494"/>
- <xsl:variable name="system_cache__appinfo:xpath_full">
- <xsl:choose>
- <xsl:when test="$system_cache__appinfo:xpath_full">
- <xsl:value-of select="concat($system_cache__appinfo:xpath_full,'/',@system_cache__appinfo:prefix,':',@name)"/>
- </xsl:when>
- <xsl:otherwise><xsl:value-of select="concat(@system_cache__appinfo:prefix,':',@name)"/></xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:attribute name="system_cache__appinfo:xpath_full" select="$system_cache__appinfo:xpath_full"/>
- <xsl:attribute name="system_cache__appinfo:xpath" select="concat(@system_cache__appinfo:prefix,':',@name)"/>
- <xsl:for-each select="@*">
- <xsl:choose>
- <xsl:when test="substring-before(name(),':')">
- <xsl:attribute name="{name()}" select="."/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:attribute name="{concat('system_cache__appinfo:',name())}" select="."/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- <xsl:comment>4940 kolejna derewiacja np. database_objects:LinearRingType/LinearRingType/AbstractRingType - w kolejnej oczekujemy REMOTE_ID=parent::node()/ID </xsl:comment>
- <xsl:apply-templates mode="#current">
- <xsl:with-param name="parent_type" select="$parent_type"/> <!-- todo brakuje prefixu-->
- <xsl:with-param name="ID" select="concat($parent_type,'(',$ID,')')"/>
- <xsl:with-param name="root_name" select="$root_name"/>
- <xsl:with-param name="system_cache__appinfo:xpath_full" select="$system_cache__appinfo:xpath_full"/>
- <xsl:with-param name="system_cache__appinfo:xpath" select="concat(@system_cache__appinfo:prefix,':',@name)"/>
- <xsl:sort select="@system_cache__appinfo:sort"/>
- </xsl:apply-templates>
- </p5_tr_map:go_recurse_from_root_by_build_element_4940>
- </xsl:when>
- <xsl:when test="local-name()='complexType' and not(@system_cache__appinfo:only_complexContent_definition) and $parent_type and not($INSTANCE_ID) and child::node()[local-name()='complexType' and not(@system_cache__appinfo:only_complexContent_definition)] and @id"> <!-- warunek 4942 chyba pierwsza derewiacja ktora ma ich wiecej -->
- <p5_tr_map:go_recurse_from_root_by_build_element_4942>
- <xsl:attribute name="p5_tr_map:uuid" select="$p5_tr_map:uuid"/>
- <xsl:attribute name="retrieve_ID" select="'parent::node()/REMOTE_ID'"/>
- <xsl:attribute name="retrieve_REMOTE_ID" select="'empty(REMOTE_ID) or REMOTE_ID'"/>
- <xsl:attribute name="retrieve_TYPE" select="$parent_type"/>
- <xsl:attribute name="local-name" select="local-name()"/>
- <xsl:attribute name="local-name-name" select="@name"/>
- <xsl:attribute name="restriciction_base" select="@system_cache__appinfo:restriciction_base"/> <!-- zbedny argument tylko do pokazania, ze bylo to na restrykcji - moze sie przydac?-->
- <xsl:attribute name="event_type" select="4942"/>
- <xsl:attribute name="event_type_old" select="494"/>
- <xsl:variable name="system_cache__appinfo:xpath_full">
- <xsl:choose>
- <xsl:when test="$system_cache__appinfo:xpath_full">
- <xsl:value-of select="concat($system_cache__appinfo:xpath_full,'/',@system_cache__appinfo:prefix,':',@name)"/>
- </xsl:when>
- <xsl:otherwise><xsl:value-of select="concat(@system_cache__appinfo:prefix,':',@name)"/></xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:attribute name="system_cache__appinfo:xpath_full" select="$system_cache__appinfo:xpath_full"/>
- <xsl:attribute name="system_cache__appinfo:xpath" select="concat(@system_cache__appinfo:prefix,':',@name)"/>
- <xsl:for-each select="@*">
- <xsl:choose>
- <xsl:when test="substring-before(name(),':')">
- <xsl:attribute name="{name()}" select="."/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:attribute name="{concat('system_cache__appinfo:',name())}" select="."/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- <xsl:comment>4940 kolejna derewiacja np. database_objects:LinearRingType/LinearRingType/AbstractRingType - w kolejnej oczekujemy REMOTE_ID=parent::node()/ID </xsl:comment>
- <xsl:apply-templates mode="#current">
- <xsl:with-param name="parent_type" select="$parent_type"/> <!-- todo brakuje prefixu-->
- <xsl:with-param name="ID" select="concat($parent_type,'(',$ID,')')"/>
- <xsl:with-param name="root_name" select="$root_name"/>
- <xsl:with-param name="system_cache__appinfo:xpath_full" select="$system_cache__appinfo:xpath_full"/>
- <xsl:with-param name="system_cache__appinfo:xpath" select="concat(@system_cache__appinfo:prefix,':',@name)"/>
- <xsl:sort select="@system_cache__appinfo:sort"/>
- </xsl:apply-templates>
- </p5_tr_map:go_recurse_from_root_by_build_element_4942>
- </xsl:when>
- <xsl:when test="local-name()='complexType' and $parent_type and not($INSTANCE_ID) and $p5_tr_map:last-type!='434d' and $p5_tr_map:last-type!='477b' and @id"> <!-- warunek 494 jedyna derewiacja np. database_objects:LinearRingType/LinearRingType/AbstractRingType - w kolejnej oczekujemy REMOTE_ID=parent::node()/ID -->
- <p5_tr_map:go_recurse_from_root_by_build_element_494>
- <xsl:attribute name="p5_tr_map:uuid" select="$p5_tr_map:uuid"/>
- <xsl:attribute name="retrieve_ID" select="'parent::node()/REMOTE_ID'"/>
- <xsl:attribute name="retrieve_REMOTE_ID" select="'empty(REMOTE_ID) or REMOTE_ID'"/>
- <xsl:attribute name="retrieve_TYPE" select="$parent_type"/>
- <xsl:attribute name="local-name" select="local-name()"/>
- <xsl:attribute name="local-name-name" select="@name"/>
- <xsl:attribute name="restriciction_base" select="@system_cache__appinfo:restriciction_base"/> <!-- zbedny argument tylko do pokazania, ze bylo to na restrykcji - moze sie przydac?-->
- <xsl:attribute name="event_type" select="494"/>
- <xsl:attribute name="comment" select="'494 jedyna derewiacja np. database_objects:LinearRingType/LinearRingType/AbstractRingType - w kolejnej oczekujemy REMOTE_ID=parent::node()/ID '"/>
- <xsl:variable name="system_cache__appinfo:xpath_full">
- <xsl:choose>
- <xsl:when test="$system_cache__appinfo:xpath_full">
- <xsl:value-of select="concat($system_cache__appinfo:xpath_full,'/',@system_cache__appinfo:prefix,':',@name)"/>
- </xsl:when>
- <xsl:otherwise><xsl:value-of select="concat(@system_cache__appinfo:prefix,':',@name)"/></xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:attribute name="system_cache__appinfo:xpath_full" select="$system_cache__appinfo:xpath_full"/>
- <xsl:attribute name="system_cache__appinfo:xpath" select="concat(@system_cache__appinfo:prefix,':',@name)"/>
- <xsl:for-each select="@*">
- <xsl:choose>
- <xsl:when test="substring-before(name(),':')">
- <xsl:attribute name="{name()}" select="."/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:attribute name="{concat('system_cache__appinfo:',name())}" select="."/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- <xsl:apply-templates mode="#current">
- <xsl:with-param name="parent_type" select="$parent_type"/> <!-- todo brakuje prefixu-->
- <xsl:with-param name="parent_name" select="$parent_name"/>
- <xsl:with-param name="ID" select="concat($parent_type,'(',$ID,')')"/>
- <xsl:with-param name="root_name" select="$root_name"/>
- <xsl:with-param name="system_cache__appinfo:xpath_full" select="$system_cache__appinfo:xpath_full"/>
- <xsl:with-param name="system_cache__appinfo:xpath" select="concat(@system_cache__appinfo:prefix,':',@name)"/>
- <xsl:sort select="@system_cache__appinfo:sort"/>
- </xsl:apply-templates>
- </p5_tr_map:go_recurse_from_root_by_build_element_494>
- </xsl:when>
- <xsl:when test="local-name()='complexType' and $parent_type and not($INSTANCE_ID) and $p5_tr_map:last-type='434d' and @id"> <!-- warunek 494d complexType jako instancja elementu complexType bez @type - bez dziedziczen REMOTE_ID=parent::node()/ID -->
- <p5_tr_map:go_recurse_from_root_by_build_element_494d>
- <xsl:attribute name="p5_tr_map:uuid" select="$p5_tr_map:uuid"/>
- <xsl:attribute name="retrieve_ID" select="'parent::node()/REMOTE_ID'"/>
- <xsl:attribute name="retrieve_REMOTE_ID" select="'empty(REMOTE_ID) or REMOTE_ID'"/>
- <xsl:attribute name="retrieve_TYPE" select="$parent_type"/>
- <xsl:attribute name="local-name" select="local-name()"/>
- <xsl:attribute name="local-name-name" select="@name"/>
- <xsl:attribute name="parent_name" select="$parent_name"/>
- <xsl:attribute name="restriciction_base" select="@system_cache__appinfo:restriciction_base"/> <!-- zbedny argument tylko do pokazania, ze bylo to na restrykcji - moze sie przydac?-->
- <xsl:attribute name="event_type" select="'494d'"/>
- <xsl:attribute name="comment" select="'494d warunek complexType jako instancja elementu complexType bez @type - bez dziedziczen REMOTE_ID=parent::node()/ID '"/>
- <xsl:variable name="system_cache__appinfo:xpath_full">
- <xsl:value-of select="concat(@system_cache__appinfo:prefix,':',$parent_name)"/>
- </xsl:variable>
- <xsl:attribute name="system_cache__appinfo:xpath_full" select="$system_cache__appinfo:xpath_full"/>
- <xsl:attribute name="system_cache__appinfo:xpath" select="concat(@system_cache__appinfo:prefix,':',$parent_name)"/>
- <xsl:for-each select="@*">
- <xsl:choose>
- <xsl:when test="substring-before(name(),':')">
- <xsl:attribute name="{name()}" select="."/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:attribute name="{concat('system_cache__appinfo:',name())}" select="."/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- <xsl:apply-templates mode="#current">
- <xsl:with-param name="parent_type" select="$parent_type"/> <!-- todo brakuje prefixu-->
- <xsl:with-param name="parent_name" select="$parent_name"/>
- <xsl:with-param name="ID" select="concat($parent_type,'(',$ID,')')"/>
- <xsl:with-param name="root_name" select="$root_name"/>
- <xsl:with-param name="system_cache__appinfo:xpath_full" select="$system_cache__appinfo:xpath_full"/>
- <xsl:with-param name="system_cache__appinfo:xpath" select="concat(@system_cache__appinfo:prefix,':',@name)"/>
- <xsl:sort select="@system_cache__appinfo:sort"/>
- </xsl:apply-templates>
- </p5_tr_map:go_recurse_from_root_by_build_element_494d>
- </xsl:when>
- <xsl:when test="local-name()='complexType' and not($parent_type) and parent::node()[local-name()='complexType'] and child::node()[local-name()='complexType']"> <!-- warunek 4811 tutaj jest tabela z dodatkowa derewiacja @type , z instancjami z dwoch stron parent:: and child::, obcych obiektow (ComplexType), pytamy sie o konkretne ID=@REMOTE_ID w konkretnej tabeli (nie ma parent_type)-->
- <p5_tr_map:go_recurse_from_root_by_build_element_4811>
- <xsl:attribute name="p5_tr_map:uuid" select="$p5_tr_map:uuid"/>
- <xsl:attribute name="retrieve_ID" select="'parent::node()/REMOTE_ID'"/>
- <!--<xsl:attribute name="retrieve_TYPE" select="$parent_type"/>--><!-- TODO przydalo by sie zapytac o typ? ale jak jest REMOTE_ID-->
- <xsl:attribute name="local-name" select="local-name()"/>
- <xsl:attribute name="local-name-name" select="@name"/>
- <xsl:attribute name="requested-table-type" select="'INSTANCE'"/>
- <xsl:attribute name="event_type" select="4811"/>
- <xsl:attribute name="parent_name" select="$parent_name"/>
- <xsl:if test="$p5_tr_map:parent_type"><xsl:attribute name="p5_tr_map:parent_type" select="$p5_tr_map:parent_type"/></xsl:if><!-- glownie na potrzeby przetwarzania complexType po 477b-->
- <xsl:attribute name="comment" select="'4811 tutaj jest tabela z dodatkowa derewiacja @type, z instancjami z dwoch stron parent:: and child:: , obych obiektow (ComplexType) , pytamy sie o konkretne ID=@REMOTE_ID w konkretnej tabeli (nie ma parent_type) '"/>
- <xsl:for-each select="@*">
- <xsl:choose>
- <xsl:when test="substring-before(name(),':')">
- <xsl:attribute name="{name()}" select="."/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:attribute name="{concat('system_cache__appinfo:',name())}" select="."/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- <xsl:apply-templates mode="#current">
- <xsl:with-param name="parent_type" select="$parent_type"/> <!-- todo brakuje prefixu-->
- <xsl:with-param name="ID" select="concat($parent_type,'(',$ID,')')"/>
- <xsl:with-param name="root_name" select="$root_name"/>
- <xsl:with-param name="p5_tr_map:parent_type" select="$p5_tr_map:parent_type"/><!-- glownie na potrzeby przetwarzania complexType po 477b-->
- <xsl:with-param name="p5_tr_map:parent_name" select="$p5_tr_map:parent_name"/>
- <xsl:sort select="@system_cache__appinfo:sort"/>
- </xsl:apply-templates>
- </p5_tr_map:go_recurse_from_root_by_build_element_4811>
- </xsl:when>
- <xsl:when test="local-name()='complexType' and not($parent_type) and parent::node()[local-name()='complexType']"> <!-- warunek 4810 jest tabela dodatkowa z derewiacja @type, z instancjami, obcych obiektow -->
- <p5_tr_map:go_recurse_from_root_by_build_element_4810>
- <xsl:attribute name="retrieve_ID" select="'parent::node()/REMOTE_ID'"/>
- <!--<xsl:attribute name="retrieve_TYPE" select="$parent_type"/>--><!-- TODO przydalo by sie zapytac o typ? ale jak jest REMOTE_ID-->
- <xsl:attribute name="local-name" select="local-name()"/>
- <xsl:attribute name="local-name-name" select="@name"/>
- <xsl:attribute name="requested-table-type" select="'INSTANCE'"/>
- <xsl:attribute name="event_type" select="4810"/>
- <xsl:attribute name="parent_name" select="$parent_name"/>
- <xsl:if test="$p5_tr_map:parent_type"><xsl:attribute name="p5_tr_map:parent_type" select="$p5_tr_map:parent_type"/></xsl:if><!-- glownie na potrzeby przetwarzania complexType po 477b-->
- <xsl:attribute name="p5_tr_map:uuid" select="$p5_tr_map:uuid"/>
- <xsl:attribute name="comment" select="'4810 tutaj jest tabela z dodatkowa derewiacja @type, z instancjami, obych obiektow (ComplexType) , pytamy sie o konkretne ID=@REMOTE_ID w konkretnej tabeli (nie ma parent_type) '"/>
- <xsl:for-each select="@*">
- <xsl:choose>
- <xsl:when test="substring-before(name(),':')">
- <xsl:attribute name="{name()}" select="."/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:attribute name="{concat('system_cache__appinfo:',name())}" select="."/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- <xsl:apply-templates mode="#current">
- <xsl:with-param name="parent_type" select="$parent_type"/> <!-- todo brakuje prefixu-->
- <xsl:with-param name="ID" select="concat($parent_type,'(',$ID,')')"/>
- <xsl:with-param name="root_name" select="$root_name"/>
- <xsl:with-param name="p5_tr_map:parent_type" select="$p5_tr_map:parent_type"/>
- <xsl:sort select="@system_cache__appinfo:sort"/>
- </xsl:apply-templates>
- </p5_tr_map:go_recurse_from_root_by_build_element_4810>
- </xsl:when>
- <xsl:when test="local-name()='complexType' and not($parent_type) and child::node()[local-name()='complexType']"> <!-- warunek 4812 derewiacja na child::node=complexType, z instancjami... -->
- <p5_tr_map:go_recurse_from_root_by_build_element_4812>
- <xsl:attribute name="retrieve_ID" select="'parent::node()/REMOTE_ID'"/>
- <!--<xsl:attribute name="retrieve_TYPE" select="$parent_type"/>--><!-- TODO przydalo by sie zapytac o typ? ale jak jest REMOTE_ID-->
- <xsl:attribute name="local-name" select="local-name()"/>
- <xsl:attribute name="local-name-name" select="@name"/>
- <xsl:attribute name="requested-table-type" select="'INSTANCE'"/>
- <xsl:attribute name="event_type" select="4812"/>
- <xsl:attribute name="parent_name" select="$parent_name"/>
- <xsl:if test="$p5_tr_map:parent_type"><xsl:attribute name="p5_tr_map:parent_type" select="$p5_tr_map:parent_type"/></xsl:if><!-- glownie na potrzeby przetwarzania complexType po 477b-->
- <xsl:attribute name="p5_tr_map:uuid" select="$p5_tr_map:uuid"/>
- <xsl:attribute name="comment" select="'4812 derewiacja na child::node=complexType , z instancjami, obych obiektow (ComplexType) , pytamy sie o konkretne ID=@REMOTE_ID w konkretnej tabeli (nie ma parent_type) '"/>
- <xsl:for-each select="@*">
- <xsl:choose>
- <xsl:when test="substring-before(name(),':')">
- <xsl:attribute name="{name()}" select="."/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:attribute name="{concat('system_cache__appinfo:',name())}" select="."/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- <xsl:apply-templates mode="#current">
- <xsl:with-param name="parent_type" select="$parent_type"/> <!-- todo brakuje prefixu-->
- <xsl:with-param name="ID" select="concat($parent_type,'(',$ID,')')"/>
- <xsl:with-param name="root_name" select="$root_name"/>
- <xsl:with-param name="p5_tr_map:parent_type" select="$p5_tr_map:parent_type"/>
- <xsl:with-param name="p5_tr_map:parent_name" select="$p5_tr_map:parent_name"/>
- <xsl:sort select="@system_cache__appinfo:sort"/>
- </xsl:apply-templates>
- </p5_tr_map:go_recurse_from_root_by_build_element_4812>
- </xsl:when>
- <xsl:when test="local-name()='complexType' and not($parent_type)"><!-- warunek 481 tutaj wyzwolenie do znalezienia obcego obiektu z referencja z naszej strony do niego po REMOTE_ID -->
- <p5_tr_map:go_recurse_from_root_by_build_element_481>
- <xsl:attribute name="retrieve_ID" select="'parent::node()/REMOTE_ID'"/>
- <!--<xsl:attribute name="retrieve_TYPE" select="$parent_type"/>--><!-- TODO przydalo by sie zapytac o typ? ale jak jest REMOTE_ID-->
- <xsl:attribute name="local-name" select="local-name()"/>
- <xsl:attribute name="local-name-name" select="@name"/>
- <xsl:attribute name="requested-table-type" select="'INSTANCE'"/>
- <xsl:attribute name="event_type" select="481"/>
- <xsl:attribute name="parent_name" select="$parent_name"/>
- <xsl:if test="$p5_tr_map:parent_type"><xsl:attribute name="p5_tr_map:parent_type" select="$p5_tr_map:parent_type"/></xsl:if><!-- glownie na potrzeby przetwarzania complexType po 477b-->
- <xsl:attribute name="p5_tr_map:uuid" select="$p5_tr_map:uuid"/>
- <xsl:attribute name="comment" select="'481 tutaj jest tabela z instancjami obych obiektow (ComplexType) , pytamy sie o konkretne ID=@REMOTE_ID w konkretnej tabeli (nie ma parent_type) '"/>
- <xsl:for-each select="@*">
- <xsl:choose>
- <xsl:when test="substring-before(name(),':')">
- <xsl:attribute name="{name()}" select="."/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:attribute name="{concat('system_cache__appinfo:',name())}" select="."/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- <xsl:apply-templates mode="#current">
- <xsl:with-param name="parent_type" select="$parent_type"/> <!-- todo brakuje prefixu-->
- <xsl:with-param name="ID" select="concat($parent_type,'(',$ID,')')"/>
- <xsl:with-param name="root_name" select="$root_name"/>
- <xsl:sort select="@system_cache__appinfo:sort"/>
- </xsl:apply-templates>
- </p5_tr_map:go_recurse_from_root_by_build_element_481>
- </xsl:when>
- <!--@2016-01-17 - remuje z uwagi na blad oczekiwanego 477 do simpleContent w test_obj:klient <xsl:when test="local-name()='element' and @ref and child::node()[local-name()='element']/child::node()[local-name()='complexType']/child::node()[local-name()='simpleContent']"><!-\- warunek 1069 pobranie elementu z referencja do tabeli natywnej SE - ma @ref i musi miec REMOTE_ID -\->
- <p5_tr_map:go_recurse_from_root_by_build_element_1069>
- <xsl:attribute name="retrieve_PARENT_ID" select="'parent::node()/ID'"/>
- <!-\-<xsl:attribute name="retrieve_TYPE" select="$parent_type"/>-\-><!-\- Nie potrzebny jest tutaj typ, bo to nie jest instancyjna-\->
- <xsl:attribute name="retrieve_REMOTE_ID" select="'not empty(REMOTE_ID)'"/>
- <xsl:attribute name="local-name" select="local-name()"/>
- <xsl:attribute name="local-name-name" select="@ref"/>
- <xsl:attribute name="create_element" select="@ref"/>
- <xsl:attribute name="requested-table-type" select="'INSTANCE'"/>
- <xsl:attribute name="event_type" select="'1069'"/>
- <xsl:attribute name="event_name" select="'element[@ref]/element[@type]/complexType/simpleContent'"/>
- <xsl:attribute name="p5_tr_map:uuid" select="$p5_tr_map:uuid"/>
- <xsl:attribute name="comment" select="'1069 simpleContent element i type complexType with simpleContent like cT:gml:DirectPositionType '"/>
- <xsl:for-each select="@*">
- <xsl:choose>
- <xsl:when test="substring-before(name(),':')">
- <xsl:attribute name="{name()}" select="."/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:attribute name="{concat('system_cache__appinfo:',name())}" select="."/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- <xsl:apply-templates mode="#current">
- <!-\-<xsl:with-param name="parent_type" select="$parent_type"/>-\-> <!-\- nie ma tutaj complexType wiec nie ma instancji -\->
- <xsl:with-param name="ID" select="concat($parent_type,'(',$ID,')')"/>
- <xsl:with-param name="root_name" select="$root_name"/>
- <xsl:sort select="@system_cache__appinfo:sort"/>
- </xsl:apply-templates>
- </p5_tr_map:go_recurse_from_root_by_build_element_1069>
- </xsl:when>-->
- <xsl:when test="(local-name()='element' ) and @ref and $p5_tr_map:check_if_targetNamespaces_for_4777_list='true'"><!-- warunek 4777 pobranie elementu z referencja do tabeli natywnej SE - ma @ref i musi miec REMOTE_ID -->
- <p5_tr_map:go_recurse_from_root_by_build_element_4777>
- <xsl:attribute name="retrieve_PARENT_ID" select="'parent::node()/ID'"/>
- <!--<xsl:attribute name="retrieve_TYPE" select="$parent_type"/>--><!-- Nie potrzebny jest tutaj typ, bo to nie jest instancyjna-->
- <xsl:attribute name="retrieve_REMOTE_ID" select="'not empty(REMOTE_ID)'"/>
- <xsl:attribute name="local-name" select="local-name()"/>
- <xsl:attribute name="local-name-name" select="@ref"/>
- <xsl:attribute name="create_element" select="@ref"/>
- <xsl:attribute name="requested-table-type" select="'INSTANCE'"/>
- <xsl:attribute name="event_type" select="4777"/>
- <xsl:attribute name="p5_tr_map:uuid" select="$p5_tr_map:uuid"/>
- <xsl:attribute name="comment" select="'4777 (aktualizacja @prefix_for_elements) pobranie elementu z referencja do tabeli natywnej SE lub innej - ma @ref i musi miec REMOTE_ID np. MAGAZYN/sequence/default_db:TELBOXES (@ref) pasuje tez element /MAGAZYN//sequence/teryt:AdresUlica TODO element z ref nie moze miec ID '"/>
- <xsl:attribute name="position" select="count(preceding-sibling::*)"/>
- <xsl:variable name="system_cache__appinfo:xpath_full">
- <xsl:choose>
- <xsl:when test="$system_cache__appinfo:xpath_full">
- <xsl:value-of select="concat($system_cache__appinfo:xpath_full,'/',@ref)"/>
- </xsl:when>
- <xsl:otherwise><xsl:value-of select="@ref"/></xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:attribute name="system_cache__appinfo:xpath_full" select="$system_cache__appinfo:xpath_full"/>
- <xsl:apply-templates mode="relation_info_from_appinfo_not_flat"/><!-- dopisanie @flat_relation_cache_name="ID" @flat_relation_cache_xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/PARENT_ID" -->
- <xsl:for-each select="@*">
- <xsl:choose>
- <xsl:when test="substring-before(name(),':')">
- <xsl:attribute name="{name()}" select="."/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:attribute name="{concat('system_cache__appinfo:',name())}" select="."/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- <xsl:if test="child::node()/system_cache__appinfo:loop">
- <xsl:attribute name="system_cache__appinfo:loop_name" select="child::node()/system_cache__appinfo:loop/@name"/>
- <xsl:attribute name="system_cache__appinfo:loop_id" select="child::node()/system_cache__appinfo:loop/@id"/>
- <xsl:attribute name="system_cache__appinfo:loop_name_with_prefix" select="child::node()/system_cache__appinfo:loop/@name_with_prefix"/>
- </xsl:if>
- <!--<xsl:apply-templates mode="#current">
- <!-\-<xsl:with-param name="parent_type" select="$parent_type"/>-\-> <!-\- nie ma tutaj complexType wiec nie ma instancji -\->
- <xsl:with-param name="ID" select="concat($parent_type,'(',$ID,')')"/>
- <xsl:with-param name="root_name" select="$root_name"/>
- <xsl:with-param name="system_cache__appinfo:xpath_full" select="$system_cache__appinfo:xpath_full"/>
- <xsl:with-param name="p5_tr_map:last-type" select="'4777'"/>
- <xsl:with-param name="p5_tr_map:parent_name" select="@ref"/>
- <xsl:sort select="@system_cache__appinfo:sort"/>
- </xsl:apply-templates>-->
- <system_cache__appinfo:schema><xsl:copy-of select="."/></system_cache__appinfo:schema>
- </p5_tr_map:go_recurse_from_root_by_build_element_4777>
- </xsl:when>
- <xsl:when test="(local-name()='element' ) and @ref"><!-- warunek 477 pobranie elementu z referencja do tabeli nie natywnej SE - ma @ref i musi miec REMOTE_ID -->
- <p5_tr_map:go_recurse_from_root_by_build_element_477>
- <xsl:attribute name="retrieve_PARENT_ID" select="'parent::node()/ID'"/>
- <!--<xsl:attribute name="retrieve_TYPE" select="$parent_type"/>--><!-- Nie potrzebny jest tutaj typ, bo to nie jest instancyjna-->
- <xsl:attribute name="retrieve_REMOTE_ID" select="'not empty(REMOTE_ID)'"/>
- <xsl:attribute name="local-name" select="local-name()"/>
- <xsl:attribute name="local-name-name" select="@ref"/>
- <xsl:attribute name="create_element" select="@ref"/>
- <xsl:attribute name="requested-table-type" select="'INSTANCE'"/>
- <xsl:attribute name="event_type" select="477"/>
- <xsl:apply-templates mode="relation_info_from_appinfo_not_flat"/><!-- dopisanie @flat_relation_cache_name="ID" @flat_relation_cache_xpath="default_db__x3A__CRM_PROCES:CRM_PROCES/PARENT_ID" -->
- <xsl:attribute name="p5_tr_map:uuid" select="$p5_tr_map:uuid"/>
- <xsl:attribute name="comment" select="'477 (aktualizacja @prefix_for_elements) pobranie elementu z referencja do tabeli nie natywnej SE lub innej - ma @ref i musi miec REMOTE_ID np. MAGAZYN/sequence/default_db:TELBOXES (@ref) pasuje tez element /MAGAZYN//sequence/teryt:AdresUlica TODO element z ref nie moze miec ID '"/>
- <xsl:variable name="system_cache__appinfo:xpath_full">
- <xsl:choose>
- <xsl:when test="$system_cache__appinfo:xpath_full">
- <xsl:value-of select="concat($system_cache__appinfo:xpath_full,'/',@ref)"/>
- </xsl:when>
- <xsl:otherwise><xsl:value-of select="@ref"/></xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:attribute name="system_cache__appinfo:xpath_full" select="$system_cache__appinfo:xpath_full"/>
- <xsl:for-each select="@*">
- <xsl:choose>
- <xsl:when test="substring-before(name(),':')">
- <xsl:attribute name="{name()}" select="."/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:attribute name="{concat('system_cache__appinfo:',name())}" select="."/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
-
- <xsl:variable name="p5_tr_map:detect_loop_from_build_complexType_node">
- <xsl:apply-templates mode="p5_tr_map:detect_loop_from_build_complexType_node"/>
- </xsl:variable>
- <xsl:choose>
- <xsl:when test="$p5_tr_map:detect_loop_from_build_complexType_node/p5_tr_map:detect_loop_from_build_complexType_node">
- <xsl:attribute name="system_cache__appinfo:loop_name" select="$p5_tr_map:detect_loop_from_build_complexType_node//@system_cache__appinfo:loop_name"/>
- <xsl:attribute name="system_cache__appinfo:loop_id" select="$p5_tr_map:detect_loop_from_build_complexType_node//@system_cache__appinfo:loop_id"/>
- <xsl:attribute name="system_cache__appinfo:loop_name_with_prefix" select="$p5_tr_map:detect_loop_from_build_complexType_node//@system_cache__appinfo:loop_name_with_prefix"/>
- <xsl:attribute name="p5_tr_map:detect_loop_from_build_complexType_node_comment" select="'detected loop from template p5_tr_map:detect_loop_from_build_complexType_node'"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:if test="child::node()/system_cache__appinfo:loop">
- <xsl:attribute name="system_cache__appinfo:loop_name" select="child::node()/system_cache__appinfo:loop/@name"/>
- <xsl:attribute name="system_cache__appinfo:loop_id" select="child::node()/system_cache__appinfo:loop/@id"/>
- <xsl:attribute name="system_cache__appinfo:loop_name_with_prefix" select="child::node()/system_cache__appinfo:loop/@name_with_prefix"/>
- </xsl:if>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:apply-templates mode="#current">
- <!--<xsl:with-param name="parent_type" select="$parent_type"/>--> <!-- nie ma tutaj complexType wiec nie ma instancji -->
- <xsl:with-param name="ID" select="concat($parent_type,'(',$ID,')')"/>
- <xsl:with-param name="root_name" select="$root_name"/>
- <xsl:with-param name="system_cache__appinfo:xpath_full" select="$system_cache__appinfo:xpath_full"/>
- <xsl:with-param name="p5_tr_map:last-type" select="'477'"/>
- <xsl:with-param name="p5_tr_map:parent_name" select="@ref"/>
- <xsl:sort select="@system_cache__appinfo:sort"/>
- </xsl:apply-templates>
- </p5_tr_map:go_recurse_from_root_by_build_element_477>
- </xsl:when>
- <xsl:when test="( local-name()='attribute' ) and @ref"><!-- warunek 4771 pobranie atrybutu z referencja - ma @ref i musi miec REMOTE_ID -->
- <p5_tr_map:go_recurse_from_root_by_build_element_4771>
- <xsl:attribute name="retrieve_PARENT_ID" select="'parent::node()/ID'"/>
- <!--<xsl:attribute name="retrieve_TYPE" select="$parent_type"/>--><!-- Nie potrzebny jest tutaj typ, bo to nie jest instancyjna-->
- <xsl:attribute name="retrieve_REMOTE_ID" select="'not empty(REMOTE_ID)'"/>
- <xsl:attribute name="local-name" select="local-name()"/>
- <xsl:attribute name="local-name-name" select="@ref"/>
- <xsl:attribute name="create_element" select="@ref"/>
- <xsl:attribute name="requested-table-type" select="'INSTANCE'"/>
- <xsl:attribute name="event_type" select="4771"/>
- <xsl:attribute name="p5_tr_map:uuid" select="$p5_tr_map:uuid"/>
- <xsl:attribute name="comment" select="'4771 (aktualizacja @prefix_for_elements) pobranie atrybutu z referencja. ma @ref i musi miec REMOTE_ID '"/>
- <xsl:variable name="system_cache__appinfo:xpath_full">
- <xsl:choose>
- <xsl:when test="$system_cache__appinfo:xpath_full">
- <xsl:value-of select="concat($system_cache__appinfo:xpath_full,'/',@ref)"/>
- </xsl:when>
- <xsl:otherwise><xsl:value-of select="@ref"/></xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:attribute name="system_cache__appinfo:xpath_full" select="$system_cache__appinfo:xpath_full"/>
- <xsl:apply-templates mode="relation_info_from_appinfo_not_flat"/>
- <xsl:for-each select="@*">
- <xsl:choose>
- <xsl:when test="substring-before(name(),':')">
- <xsl:attribute name="{name()}" select="."/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:attribute name="{concat('system_cache__appinfo:',name())}" select="."/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- <xsl:if test="child::node()/system_cache__appinfo:loop">
- <xsl:attribute name="system_cache__appinfo:loop_name" select="child::node()/system_cache__appinfo:loop/@name"/>
- <xsl:attribute name="system_cache__appinfo:loop_id" select="child::node()/system_cache__appinfo:loop/@id"/>
- <xsl:attribute name="system_cache__appinfo:loop_name_with_prefix" select="child::node()/system_cache__appinfo:loop/@name_with_prefix"/>
- </xsl:if>
- <xsl:apply-templates mode="#current">
- <!--<xsl:with-param name="parent_type" select="$parent_type"/>--> <!-- nie ma tutaj complexType wiec nie ma instancji -->
- <xsl:with-param name="ID" select="concat($parent_type,'(',$ID,')')"/>
- <xsl:with-param name="root_name" select="$root_name"/>
- <xsl:with-param name="system_cache__appinfo:xpath_full" select="$system_cache__appinfo:xpath_full"/>
- <xsl:with-param name="p5_tr_map:last-type" select="'4771'"/>
- <xsl:with-param name="p5_tr_map:parent_name" select="@ref"/>
- <xsl:sort select="@system_cache__appinfo:sort"/>
- </xsl:apply-templates>
- </p5_tr_map:go_recurse_from_root_by_build_element_4771>
- </xsl:when>
- <xsl:when test="local-name()='attribute' and @ref"><!-- warunek 549 - atrybuty z ref do innego atrybutu - opuscic do dziecka id-->
-
- <xsl:comment>
- 549 attrybuty z referencja do innego atrybutu opuscic do dziecka id: <xsl:value-of select="@id"/> </xsl:comment>
- <xsl:apply-templates mode="#current">
- <xsl:with-param name="parent_type" select="$parent_type"/> <!-- todo brakuje prefixu-->
- <xsl:with-param name="ID" select="concat($parent_type,'(',$ID,')')"/>
- <xsl:sort select="@system_cache__appinfo:sort"/>
- </xsl:apply-templates>
-
- </xsl:when>
- <xsl:when test="( local-name()='element' ) and $parent_type and not(descendant::node()/local-name()='complexType') and ( child::node()/local-name()='simpleType' or descendant::node()/local-name()='simpleContent' ) and ( descendant::node()/local-name()!='sequence' and descendant::node()/local-name()!='all' and descendant::node()/local-name()!='choice' ) and $p5_tr_map:last-type!='477'"><!-- TODO czy ma sens!? warunek 459 (podobny do 428) element lub atrybut typu simpleType np. default_default_objects_types___d10e120614-1 - schema/complexType/seq/ELEMENT/simpleType/restriction/@base --> <!--2016-01-16 wywalone z warunku or local-name()='attribute'-->
- <p5_tr_map:go_recurse_from_root_by_build_element_459>
- <xsl:attribute name="retrieve_ID" select="'parent::node()/ID'"/>
- <xsl:attribute name="local-name" select="local-name()"/>
- <xsl:attribute name="local-name-name" select="@name"/>
- <xsl:attribute name="create_element" select="concat(@system_cache__appinfo:prefix,':',@name)"/>
- <xsl:attribute name="event_type" select="459"/>
- <xsl:attribute name="p5_tr_map:uuid" select="$p5_tr_map:uuid"/>
- <xsl:attribute name="comment" select="'459 element lub atrybut typu simpleType - podobny do 381. '"/>
- <xsl:for-each select="@*">
- <xsl:choose>
- <xsl:when test="substring-before(name(),':')">
- <xsl:attribute name="{name()}" select="."/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:attribute name="{concat('system_cache__appinfo:',name())}" select="."/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- <xsl:apply-templates mode="#current">
- <!--<xsl:with-param name="parent_type" select="$parent_type"/>--> <!-- nie ma tutaj complexType wiec nie ma instancji -->
- <xsl:with-param name="ID" select="concat($parent_type,'(',$ID,')')"/>
- <xsl:with-param name="root_name" select="$root_name"/>
- <xsl:with-param name="system_cache__appinfo:xpath_full" select="$system_cache__appinfo:xpath_full"/>
- <xsl:with-param name="p5_tr_map:last-type" select="'459'"/>
- <!--<xsl:with-param name="p5_tr_map:parent_type" select="@type"/>-->
- <!--<xsl:with-param name="parent_type" select="@type"/>-->
- <xsl:sort select="@system_cache__appinfo:sort"/>
- </xsl:apply-templates>
-
- <xsl:comment>459 to musi byc xs:simpletype - dodatkowy wyjatek w przypadku powiazanego obcego typu simpleType </xsl:comment>
- </p5_tr_map:go_recurse_from_root_by_build_element_459>
- </xsl:when>
- <xsl:when test="( local-name()='element' ) and not($parent_type) and ( child::node()/local-name()='simpleType' or not(child::node()/*)) and @system_cache__appinfo:root_element_in_schema=true() and ( descendant::node()/local-name()!='sequence' and descendant::node()/local-name()!='all' and descendant::node()/local-name()!='choice' )"><!-- warunek 459b /schema/complexType/@ref/!_element_! bez child::* - czyli zwykly pojedynczy element w glownym schemacie do ktorego zwykle jest @ref - oznaczony w silniku schematow jako @system_cache__appinfo:root_element_in_schema='true' -->
- <p5_tr_map:go_recurse_from_root_by_build_element_459b>
- <xsl:attribute name="retrieve_ID" select="'parent::node()/ID'"/>
- <xsl:attribute name="local-name" select="local-name()"/>
- <xsl:attribute name="local-name-name" select="@name"/>
- <xsl:attribute name="create_element" select="concat(@system_cache__appinfo:prefix,':',@name)"/>
- <xsl:attribute name="event_type" select="'459b'"/>
- <xsl:attribute name="p5_tr_map:uuid" select="$p5_tr_map:uuid"/>
- <xsl:attribute name="comment" select="'459b element /schema/complexType/@ref/!_element_! typu simpleType za @ref, bez simpleContent, bez przetwarzania wglab. Przetwarzanie jak w 394'"/>
- <xsl:for-each select="@*">
- <xsl:choose>
- <xsl:when test="substring-before(name(),':')">
- <xsl:attribute name="{name()}" select="."/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:attribute name="{concat('system_cache__appinfo:',name())}" select="."/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- </p5_tr_map:go_recurse_from_root_by_build_element_459b>
- </xsl:when>
- <!--<xsl:when test="( local-name()='element' or local-name()='attribute' ) and child::node()/local-name()='simpleContent'"><!-\- warunek 1128 -\->
- <p5_tr_map:go_recurse_from_root_by_build_element_1128>
- <xsl:attribute name="retrieve_ID" select="'parent::node()/ID'"/>
- <xsl:attribute name="local-name" select="local-name()"/>
- <xsl:attribute name="local-name-name" select="@name"/>
- <xsl:attribute name="create_element" select="concat(@system_cache__appinfo:prefix,':',@name)"/>
- <xsl:attribute name="event_type" select="1128"/>
- <xsl:for-each select="@*">
- <xsl:choose>
- <xsl:when test="substring-before(name(),':')">
- <xsl:attribute name="{name()}" select="."/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:attribute name="{concat('system_cache__appinfo:',name())}" select="."/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- <xsl:comment>1128 to musi byc xs:simpletype z simpleContent dodatkowy wyjatek w przypadku powiazanego obcego typu simpleType dla atrybutu </xsl:comment>
- <xsl:apply-templates mode="#current">
- <xsl:with-param name="ID" select="concat($parent_type,'(',$ID,')')"/>
- <xsl:with-param name="root_name" select="$root_name"/>
- <xsl:sort select="@system_cache__appinfo:sort"/>
- </xsl:apply-templates>
- </p5_tr_map:go_recurse_from_root_by_build_element_1128>
- </xsl:when>-->
- <xsl:when test="local-name()='attribute' and ( empty(child::node()/element()) or child::node()/local-name()='simpleType' ) and $p5_tr_map:last-type='4771' "><!-- warunek 394-720 atrybut -->
- <p5_tr_map:go_recurse_from_root_by_build_element_394-720>
- <xsl:attribute name="retrieve_ID" select="'parent::node()/ID'"/>
- <xsl:attribute name="local-name" select="local-name()"/>
- <xsl:attribute name="local-name-name" select="@name"/>
- <xsl:attribute name="p5_tr_map:uuid" select="$p5_tr_map:uuid"/>
- <xsl:attribute name="comment" select="'394-720 pobranie wartosci atrybutu po @ref z tabeli instancja+value '"/>
- <xsl:attribute name="create_element" select="@name"/>
- <xsl:attribute name="event_type" select="'394-720'"/>
- <xsl:variable name="system_cache__appinfo:xpath_full">
- <xsl:choose>
- <xsl:when test="$system_cache__appinfo:xpath_full">
- <xsl:value-of select="concat($system_cache__appinfo:xpath_full,'/',@name)"/>
- </xsl:when>
- <xsl:otherwise><xsl:value-of select="@name"/></xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:attribute name="system_cache__appinfo:xpath_full" select="$system_cache__appinfo:xpath_full"/>
- <xsl:attribute name="system_cache__appinfo:xpath" select="concat($system_cache__appinfo:xpath,'/',@name)"/>
- <xsl:for-each select="@*">
- <xsl:choose>
- <xsl:when test="substring-before(name(),':')">
- <xsl:attribute name="{name()}" select="."/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:attribute name="{concat('system_cache__appinfo:',name())}" select="."/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- </p5_tr_map:go_recurse_from_root_by_build_element_394-720>
- </xsl:when>
- <xsl:when test="local-name()='attribute' and ( empty(child::node()/element()) or child::node()/local-name()='simpleType' )"><!-- warunek 720 atrybut -->
- <p5_tr_map:go_recurse_from_root_by_build_element_720>
- <xsl:attribute name="retrieve_ID" select="'parent::node()/ID'"/>
- <xsl:attribute name="local-name" select="local-name()"/>
- <xsl:attribute name="local-name-name" select="@name"/>
- <xsl:attribute name="p5_tr_map:uuid" select="$p5_tr_map:uuid"/>
- <xsl:attribute name="comment" select="'720 pobranie wartosci atrybutu.'"/>
- <xsl:attribute name="create_element" select="@name"/> <!-- @2015-06-05 bindera: nie znalazlem schematu z attrybutem aby name mialo prefix-->
- <xsl:attribute name="event_type" select="720"/>
- <xsl:variable name="system_cache__appinfo:xpath_full">
- <xsl:choose>
- <xsl:when test="$system_cache__appinfo:xpath_full">
- <xsl:value-of select="concat($system_cache__appinfo:xpath_full,'/',@name)"/>
- </xsl:when>
- <xsl:otherwise><xsl:value-of select="@name"/></xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:attribute name="system_cache__appinfo:xpath_full" select="$system_cache__appinfo:xpath_full"/>
- <xsl:attribute name="system_cache__appinfo:xpath" select="concat($system_cache__appinfo:xpath,'/',@name)"/>
- <xsl:for-each select="@*">
- <xsl:choose>
- <xsl:when test="substring-before(name(),':')">
- <xsl:attribute name="{name()}" select="."/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:attribute name="{concat('system_cache__appinfo:',name())}" select="."/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- </p5_tr_map:go_recurse_from_root_by_build_element_720>
- </xsl:when>
- <xsl:when test="local-name()='sequence' or local-name()='all' or local-name()='choice'"><!-- warunek 473 sekwencje -->
- <p5_tr_map:go_recurse_from_root_by_build_element_473>
- <xsl:attribute name="retrieve_PARENT_ID" select="'parent::node()/ID'"/>
- <!--<xsl:attribute name="retrieve_TYPE" select="$parent_type"/>-->
- <xsl:attribute name="retrieve_resource_id" select="@id"/>
- <xsl:attribute name="local-name" select="local-name()"/>
- <xsl:attribute name="event_type" select="473"/>
- <xsl:attribute name="p5_tr_map:uuid" select="$p5_tr_map:uuid"/>
- <xsl:attribute name="comment" select="'warunek 473 sekwencje'"/>
- <xsl:for-each select="@*">
- <xsl:choose>
- <xsl:when test="substring-before(name(),':')">
- <xsl:attribute name="{name()}" select="."/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:attribute name="{concat('system_cache__appinfo:',name())}" select="."/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- <xsl:comment>473 sekwencje </xsl:comment>
- <xsl:apply-templates mode="#current">
- <!--<xsl:with-param name="parent_type" select="$parent_type"/>--> <!-- todo brakuje prefixu-->
- <xsl:with-param name="ID" select="concat($parent_type,'(',$ID,')')"/>
- <xsl:with-param name="root_name" select="$root_name"/>
- <xsl:with-param name="system_cache__appinfo:xpath_full" select="$system_cache__appinfo:xpath_full"/>
- <xsl:with-param name="system_cache__appinfo:xpath" select="$system_cache__appinfo:xpath"/>
- <xsl:with-param name="p5_tr_map:last-type" select="'473'"/>
- <xsl:sort select="@system_cache__appinfo:sort"/>
- </xsl:apply-templates>
- </p5_tr_map:go_recurse_from_root_by_build_element_473>
- </xsl:when>
- <xsl:when test="local-name()='unique'"><!-- warunek 591 klucze tymczasowo nieobslugiwane lecz nie sa bledem -->
- <!--<system_cache__appinfo:go_recurse_from_root_by_build_element>
- <xsl:attribute name="local-name" select="local-name()"/>
- <xsl:attribute name="event_type" select="591"/>
- <xsl:for-each select="@*">
- <xsl:choose>
- <xsl:when test="substring-before(name(),':')">
- <xsl:attribute name="{name()}" select="."/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:attribute name="{concat('system_cache__appinfo:',name())}" select="."/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>-->
- <!--<xsl:comment>591 klucze tymczasowo nieobslugiwane lecz nie sa bledem </xsl:comment>-->
- <!--</system_cache__appinfo:go_recurse_from_root_by_build_element>-->
- </xsl:when>
- <xsl:when test="local-name()='element' and not(child::node()[local-name()!='appinfo']/* ) "><!-- warunek 428a element pusty bez zdefiniowanego typu , bez dziecka-->
- <p5_tr_map:go_recurse_from_root_by_build_element_428a>
- <xsl:attribute name="retrieve_ID" select="'parent::node()/ID'"/>
- <!--<xsl:attribute name="retrieve_TYPE" select="$parent_type"/>--> <!-- nie ma potrzeby wskazywania na typ, bo powiazany obiekt nie jest instancyjny-->
- <xsl:attribute name="local-name" select="local-name()"/>
- <xsl:attribute name="local-name-name" select="@name"/>
- <xsl:variable name="system_cache__appinfo:xpath_full">
- <xsl:choose>
- <xsl:when test="$system_cache__appinfo:xpath_full">
- <xsl:value-of select="concat($system_cache__appinfo:xpath_full,'/',@name)"/>
- </xsl:when>
- <xsl:otherwise><xsl:value-of select="@name"/></xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:attribute name="system_cache__appinfo:xpath_full" select="$system_cache__appinfo:xpath_full"/>
- <xsl:attribute name="system_cache__appinfo:xpath" select="concat($system_cache__appinfo:xpath,'/',@name)"/>
- <xsl:choose>
- <xsl:when test="substring-before($root_name,':')=@system_cache__appinfo:prefix"> <!-- dla lokalnego elementu prefixu nie dajemy prefixu -->
- <xsl:attribute name="create_element" select="@name"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:attribute name="create_element" select="concat(@system_cache__appinfo:prefix,':',@name)"/>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:attribute name="event_type" select="'428a'"/>
- <xsl:attribute name="p5_tr_map:uuid" select="$p5_tr_map:uuid"/>
- <xsl:attribute name="comment" select="concat('428a - parent_name:',$root_name,' pusty element - tylko instancja')"/>
- <xsl:for-each select="@*">
- <xsl:choose>
- <xsl:when test="substring-before(name(),':')">
- <!--<xsl:attribute name="{name()}" select="."/>-->
- <xsl:copy-of select="."/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:attribute name="{concat('system_cache__appinfo:',name())}" select="."/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- <xsl:comment>428a nie ma dziecka i nie ma typu - nawet simple - pobieramy element z bazy szukajac PARENT_ID - np. MAGAZYN/sequence/T_TELBOX_TYPE:xs:simple, ktory ma dane w ID, VALUE </xsl:comment>
- </p5_tr_map:go_recurse_from_root_by_build_element_428a>
- </xsl:when>
- <!--<xsl:when test="comment()"><xsl:comment><xsl:value-of select="self::comment()"/></xsl:comment></xsl:when>-->
- <xsl:when test="name()='system_cache__appinfo:loop'">
- <p5_tr_map:go_recurse_from_root_by_build_element_loop>
- <!--<xsl:attribute name="retrieve_TYPE" select="$parent_type"/>--> <!-- nie ma potrzeby wskazywania na typ, bo powiazany obiekt nie jest instancyjny-->
- <xsl:attribute name="local-name" select="local-name()"/>
- <xsl:variable name="system_cache__appinfo:xpath_full">
- <xsl:choose>
- <xsl:when test="$system_cache__appinfo:xpath_full">
- <xsl:value-of select="concat($system_cache__appinfo:xpath_full,'/',@name)"/>
- </xsl:when>
- <xsl:otherwise><xsl:value-of select="@name"/></xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:attribute name="system_cache__appinfo:xpath_full" select="$system_cache__appinfo:xpath_full"/>
- <xsl:attribute name="system_cache__appinfo:xpath" select="concat($system_cache__appinfo:xpath,'/',@name)"/>
- <xsl:attribute name="event_type" select="'loop'"/>
- <xsl:attribute name="p5_tr_map:uuid" select="$p5_tr_map:uuid"/>
- <xsl:attribute name="comment" select="concat('loop - petla ',$root_name,' ')"/>
- <xsl:attribute name="root_name" select="$root_name"/>
- <xsl:for-each select="@*">
- <xsl:choose>
- <xsl:when test="substring-before(name(),':')">
- <xsl:attribute name="{name()}" select="."/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:attribute name="{concat('system_cache__appinfo:',name())}" select="."/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- <xsl:comment>loop - zapetlenie schematu wymaga osobnej instancji do obiektu zagniezdzonego </xsl:comment>
- </p5_tr_map:go_recurse_from_root_by_build_element_loop>
- </xsl:when>
- <xsl:when test="local-name()='appinfo' or local-name()='annotation'">
- <xsl:comment>#1252 appinfo supperssed there... for future transforming</xsl:comment>
- </xsl:when>
- <xsl:otherwise>
- <xsl:if test="node()">
- <p5_tr_map:go_recurse_from_root_by_build_element_592>
- <xsl:attribute name="BLAD_OTHERWISE"/>
- <xsl:attribute name="parent_type" select="$parent_type"/>
- <xsl:attribute name="id" select="@id"/>
- <xsl:attribute name="ID" select="$ID"/>
- <xsl:attribute name="INSTANCE_ID" select="$INSTANCE_ID"/>
- <xsl:attribute name="prefix" select="$prefix"/>
- <xsl:attribute name="element_name" select="$element_name"/>
- <xsl:attribute name="system_cache__appinfo:prefix" select="@system_cache__appinfo:prefix"/>
- <xsl:attribute name="system_cache__appinfo:namespace_uri" select="@system_cache__appinfo:namespace_uri"/>
- <xsl:attribute name="event_type" select="592"/>
- <xsl:attribute name="child_node_name" select="child::node()/name()"/>
- <xsl:attribute name="parent_node_name" select="parent::node()/name()"/>
- <xsl:attribute name="p5_tr_map:last-type" select='$p5_tr_map:last-type'/>
- <xsl:attribute name="local-name" select="local-name()"/>
- <xsl:message terminate="no">592 BLAD OTHERWISE - brakujaca funkcjonalnosc w przetwarzaniu skladania obiektu:<xsl:value-of select="@id"/>; name:<xsl:value-of select="@name"/>; name():<xsl:value-of select="name()"/>;</xsl:message>
- <schema>
- <xsl:copy-of select="."/>
- </schema>
- </p5_tr_map:go_recurse_from_root_by_build_element_592>
- </xsl:if>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
- <xsl:template match="key" mode="p5_tr_map:go_recurse_from_root_by_build_element" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
- <xsl:comment>#2069 mode="p5_tr_map:go_recurse_from_root_by_build_element" match="key" - TODO to implement key features</xsl:comment>
- </xsl:template>
-
- <xsl:template match="assert" mode="p5_tr_map:go_recurse_from_root_by_build_element" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
- <xsl:comment>#2141 mode="p5_tr_map:go_recurse_from_root_by_build_element" match="assert" @test=<xsl:value-of select="@test"/>; @id=<xsl:value-of select="@id"/>- TODO to implement key features</xsl:comment>
- </xsl:template>
-
- <xsl:template match="comment()|text()" mode="p5_tr_map:go_recurse_from_root_by_build_element"/>
- <xsl:template match="comment()|text()" mode="p5_tr_map:go_recurse_from_root_by_build_complexType"/>
-
- <!-- @2016-02-03 template do wykrycia glownie z wezla 477 czy pod nim nie jest loop z kawalkiem instancji -->
- <xsl:template match="element" mode="p5_tr_map:detect_loop_from_build_complexType_node" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
- <xsl:choose>
- <xsl:when test="@ref"/>
- <xsl:otherwise>
- <xsl:comment>#2058 pass element @id:<xsl:value-of select="@id"/></xsl:comment>
- <xsl:apply-templates mode="#current"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
- <xsl:template match="complexType" mode="p5_tr_map:detect_loop_from_build_complexType_node" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
- <xsl:comment>#2063 pass complexType @id:<xsl:value-of select="@id"/></xsl:comment>
- <xsl:apply-templates mode="#current"/>
- </xsl:template>
- <xsl:template match="system_cache__appinfo:loop" mode="p5_tr_map:detect_loop_from_build_complexType_node">
- <xsl:element name="p5_tr_map:detect_loop_from_build_complexType_node">
- <xsl:attribute name="system_cache__appinfo:loop_name" select="@name"/>
- <xsl:attribute name="system_cache__appinfo:loop_id" select="@id"/>
- <xsl:attribute name="system_cache__appinfo:loop_name_with_prefix" select="@name_with_prefix"/>
- <xsl:attribute name="comment" select="'child nodes analyzed - there is loop'"/>
- </xsl:element>
- </xsl:template>
-
- <!--<xsl:template match="text()|comment()" mode="p5_tr_map:detect_loop_from_build_complexType_node"/>-->
-
-
- <!-- @2017-03-06 bindera: dla potrzeb silnika ant i usprawnienia odbudowania refow w plaskiej bazie -->
- <xsl:template mode="relation_info_from_appinfo_not_flat" match="annotation" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
- <xsl:apply-templates mode="relation_info_from_appinfo_not_flat"/>
- </xsl:template>
-
- <xsl:template mode="relation_info_from_appinfo_not_flat" match="appinfo" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
- <xsl:for-each select="system_cache__appinfo:flat_relation_cache/system_cache__appinfo:source">
- <xsl:attribute name="flat_relation_cache_name" select="@system_cache__appinfo:name"/>
- <xsl:attribute name="flat_relation_cache_xpath" select="@system_cache__appinfo:xpath"/>
- </xsl:for-each>
- </xsl:template>
-
- <xsl:template mode="relation_info_from_appinfo_not_flat" match="*|text()|comment()"/>
-
-
-
-
- <xsl:template name="p5_tr_map:detect_first_ref_to_native_procesy5_table"><!-- @2015-09-30 ten template lepiej wykrywa pierwszy element relacji do cachujacej tabeli procesy5 -->
- <xsl:param name="native_procesy5_table_prefix" select="'default_db'"/>
- <xsl:param name="p5_tr_map:go_recurse_from_root_by_build_element" required="yes"/>
- <xsl:variable name="detect_first_ref_to_native_procesy5_table_multi">
- <xsl:apply-templates mode="p5_tr_map:detect_first_ref_to_native_procesy5_table_multi" select="$p5_tr_map:go_recurse_from_root_by_build_element">
- <xsl:with-param name="native_procesy5_table_prefix" select="$native_procesy5_table_prefix"/>
- </xsl:apply-templates>
- </xsl:variable>
- <!--<temp_to_parse>
- <xsl:copy-of select="$detect_first_ref_to_native_procesy5_table_multi"></xsl:copy-of>
- </temp_to_parse>-->
- <xsl:for-each select="$detect_first_ref_to_native_procesy5_table_multi/*[1]">
- <xsl:element name="{name()}">
- <xsl:for-each select="@*">
- <xsl:attribute name="{name()}" select="."/>
- </xsl:for-each>
- </xsl:element>
- </xsl:for-each>
- <!--<xsl:copy-of select="$detect_first_ref_to_native_procesy5_table_multi/*[position()=1]"/>-->
- </xsl:template>
-
- <xsl:template match="*" mode="p5_tr_map:detect_first_ref_to_native_procesy5_table_multi" xpath-default-namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd">
- <xsl:param name="native_procesy5_table_prefix" select="'default_db'"/>
- <xsl:param name="trigger_event477_used"/> <!-- trigger do template aby tylko jeden raz byl przetwarzany ref typu 477 i wiecej -->
- <xsl:choose>
- <xsl:when test="@event_type='481'">
- <xsl:if test="$debug_level>3"><xsl:comment>3148: event=481 @event_type:<xsl:value-of select="@event_type"/>; @id:<xsl:value-of select="@system_cache__appinfo:id"/>;</xsl:comment></xsl:if>
- </xsl:when>
- <xsl:when test=" (@event_type='477' or @event_type='477b' )and not(substring-before(@system_cache__appinfo:ref,':')=$native_procesy5_table_prefix)">
- <xsl:if test="$debug_level>3"><xsl:comment>3099: event=477 and not substring(@ref,prefix) @event_type:<xsl:value-of select="@event_type"/>; @id:<xsl:value-of select="@system_cache__appinfo:id"/>;</xsl:comment></xsl:if>
- </xsl:when>
-
- <xsl:when test=" (@event_type='4777' ) "> <!--@2016-01-20 po dodaniu typu 4777 jest konkret and substring-before(@system_cache__appinfo:ref,':')=$native_procesy5_table_prefix -->
- <xsl:if test="$debug_level>3"><xsl:comment>3099: event=477 and substring(@ref,prefix) @event_type:<xsl:value-of select="@event_type"/>; @id:<xsl:value-of select="@system_cache__appinfo:id"/>;</xsl:comment></xsl:if>
- <xsl:element name="system_cache__appinfo:detect_first_ref_to_native_procesy5_table">
- <xsl:attribute name="event_type" select="@event_type"/>
- <xsl:attribute name="system_cache__appinfo:ref" select="@system_cache__appinfo:ref"/>
- <xsl:attribute name="system_cache__appinfo:id" select="@system_cache__appinfo:id"/>
- <xsl:attribute name="p5_tr_map:uuid" select="@p5_tr_map:uuid"/>
- <!--<xsl:attribute name="substring-before" select="substring-before(@system_cache__appinfo:ref,':')"/>
- <xsl:attribute name="native_procesy5_table_prefix" select="$native_procesy5_table_prefix"/>-->
- </xsl:element>
- </xsl:when>
- <xsl:when test="not($trigger_event477_used) and ( @event_type='477' or @event_type='477b' ) ">
- <xsl:if test="$debug_level>3"><xsl:comment>3099: not(trigger) and @event=477 @event_type:<xsl:value-of select="@event_type"/>; @id:<xsl:value-of select="@system_cache__appinfo:id"/>;</xsl:comment></xsl:if>
- <xsl:apply-templates mode="#current">
- <xsl:with-param name="native_procesy5_table_prefix" select="$native_procesy5_table_prefix"/>
- <xsl:with-param name="trigger_event477_used" select="1"/>
- </xsl:apply-templates>
- </xsl:when>
-
- <xsl:when test="not($trigger_event477_used)">
- <xsl:if test="$debug_level>3"><xsl:comment>3099: not(trigger), @event_type:<xsl:value-of select="@event_type"/>; @id:<xsl:value-of select="@system_cache__appinfo:id"/>;</xsl:comment></xsl:if>
- <xsl:apply-templates mode="#current">
- <xsl:with-param name="native_procesy5_table_prefix" select="$native_procesy5_table_prefix"/>
- </xsl:apply-templates>
- </xsl:when>
- <xsl:otherwise/>
- </xsl:choose>
- </xsl:template>
-
- <!-- @2015-09-25 template do znalezienia z jakimi tabelami plaskimi procesy5 dany element ma relacje
- na wejsciu system_cache__appinfo:go_recurse_from_root_by_build_element-->
- <xsl:template name="p5_tr_map:detect_element_relations_to_objects">
- <xsl:param name="system_cache__appinfo:detect_root_sequence_id" required="no"/>
- <xsl:param name="p5_tr_map:go_recurse_from_root_by_build_element" required="no"/>
- <xsl:apply-templates mode="p5_tr_map:detect_element_relations_to_objects" select="$p5_tr_map:go_recurse_from_root_by_build_element"/>
- <!-- //node()[@system_cache__appinfo:id=$system_cache__appinfo:detect_root_sequence_id//@id]/*-->
- <!--<xsl:apply-templates mode="system_cache__appinfo:detect_element_relations_to_objects" select="$system_cache__appinfo:go_recurse_from_root_by_build_element//node()[@id=$system_cache__appinfo:detect_root_sequence_id/system_cache__appinfo:detect_root_sequence_id/@id]"/>-->
- </xsl:template>
- <!-- to be used by template name="system_cache__appinfo:go_recurse_from_root_by_build_element"-->
- <xsl:template match="*" mode="p5_tr_map:detect_element_relations_to_objects" xpath-default-namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd">
- <xsl:param name="p5_tr_map:relation_after_derivation"/>
- <xsl:param name="p5_tr_map:ancestor-count" select="1"/>
- <xsl:choose>
- <xsl:when test="@event_type='434' or @event_type='434d' ">
- <xsl:apply-templates mode="#current">
- <xsl:with-param name="p5_tr_map:relation_after_derivation" select="$p5_tr_map:relation_after_derivation"/>
- </xsl:apply-templates>
- </xsl:when>
- <xsl:when test="@event_type='4940' or @event_type='4941' ">
- <xsl:apply-templates mode="#current">
- <xsl:with-param name="p5_tr_map:relation_after_derivation" select="true()"/>
- <xsl:with-param name="p5_tr_map:ancestor-count" select="$p5_tr_map:ancestor-count + 1"/>
- </xsl:apply-templates>
- </xsl:when>
- <xsl:when test="@event_type='494' or @event_type='4942' or @event_type='494d' ">
- <xsl:apply-templates mode="#current">
- <xsl:with-param name="p5_tr_map:ancestor-count" select="$p5_tr_map:ancestor-count + 1"/>
- </xsl:apply-templates>
- </xsl:when>
- <xsl:when test="@event_type='473'">
- <xsl:apply-templates mode="#current">
- <xsl:with-param name="p5_tr_map:relation_after_derivation" select="$p5_tr_map:relation_after_derivation"/>
- <xsl:with-param name="p5_tr_map:ancestor-count" select="$p5_tr_map:ancestor-count + 1"/>
- </xsl:apply-templates>
- </xsl:when>
- <xsl:when test="@event_type='477'">
- <xsl:element name="system_cache__appinfo:detect_element_relations_to_objects">
- <xsl:attribute name="system_cache__appinfo:ref" select="@system_cache__appinfo:ref"/>
- <xsl:attribute name="system_cache__appinfo:id" select="@system_cache__appinfo:id"/>
- <xsl:attribute name="system_cache__appinfo:event_type" select="@event_type"/>
- <xsl:attribute name="p5_tr_map:ancestor-count" select="$p5_tr_map:ancestor-count"/>
- <xsl:if test="$p5_tr_map:relation_after_derivation"><xsl:attribute name="p5_tr_map:relation_after_derivation" select="$p5_tr_map:relation_after_derivation"/></xsl:if>
- </xsl:element>
- </xsl:when>
- <!--<xsl:when test="@event_type='4771'">@2016-01-20 todo attributes na ref
- <xsl:element name="system_cache__appinfo:detect_element_relations_to_objects">
- <xsl:attribute name="system_cache__appinfo:ref" select="@system_cache__appinfo:ref"/>
- <xsl:attribute name="system_cache__appinfo:id" select="@system_cache__appinfo:id"/>
- </xsl:element>
- </xsl:when>-->
- <xsl:when test="@event_type='477b'">
- <xsl:element name="system_cache__appinfo:detect_element_relations_to_objects">
- <xsl:attribute name="system_cache__appinfo:ref" select="@system_cache__appinfo:type"/>
- <xsl:attribute name="system_cache__appinfo:id" select="@system_cache__appinfo:id"/>
- <xsl:attribute name="system_cache__appinfo:event_type" select="@event_type"/>
- <xsl:attribute name="p5_tr_map:ancestor-count" select="$p5_tr_map:ancestor-count"/>
- <xsl:if test="$p5_tr_map:relation_after_derivation"><xsl:attribute name="p5_tr_map:relation_after_derivation" select="$p5_tr_map:relation_after_derivation"/></xsl:if>
- </xsl:element>
- </xsl:when>
- <!--<xsl:when test="local-name()='go_recurse_from_root_by_build_element'">
- <xsl:apply-templates mode="#current"/>
- </xsl:when>-->
- </xsl:choose>
- </xsl:template>
-
- <!--<xsl:template match="comment()|text()" mode="p5_tr_map:detect_element_relations_to_objects" xpath-default-namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd"/>-->
-
- <!-- testowo template do wykorzystywania przy generowaniu konfigow relacji do wykrycia jaki jest bazowy complexType przywiazany do tabeli Procesy5
- @2015-10-25 pokazuje blednie 2 rekordy, wiec zamieniamy na pokazanie ostatniego elementu z derewiacji
- nie dziala produkcyjnie system_cache__appinfo:trigger_on_insert itp.. -->
- <xsl:template match="p5_tr_map:go_recurse_from_root_by_build_element" mode="p5_tr_map:detect_parent_complexType_with_ref_to_procesy5_table" xpath-default-namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd">
- <xsl:variable name="system_cache__appinfo:detect_parent_complexType_with_ref_to_procesy5_table">
- <xsl:apply-templates mode="p5_tr_map:detect_parent_complexType_with_ref_to_procesy5_table_multi" select="current()"/>
- </xsl:variable>
- <!--<xsl:comment>3126:<xsl:value-of select="count($system_cache__appinfo:detect_parent_complexType_with_ref_to_procesy5_table/system_cache__appinfo:detect_parent_complexType_with_ref_to_procesy5_table)"/></xsl:comment>-->
- <xsl:for-each select="$system_cache__appinfo:detect_parent_complexType_with_ref_to_procesy5_table/system_cache__appinfo:detect_parent_complexType_with_ref_to_procesy5_table[count($system_cache__appinfo:detect_parent_complexType_with_ref_to_procesy5_table/system_cache__appinfo:detect_parent_complexType_with_ref_to_procesy5_table)]">
- <xsl:copy-of select="."/>
- </xsl:for-each>
- </xsl:template>
-
- <!--<xsl:template match="go_recurse_from_root_by_build_element" mode="#all" xpath-default-namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd">
- <xsl:message>#2293 TODO modify mode from #all to directed mode! in mode </xsl:message>
- <xsl:apply-templates mode="#current"/>
- </xsl:template>-->
-
-
- <xsl:template match="go_recurse_from_root_by_build_element" mode="p5_tr_map:detect_element_local_elements_without_ref_elements" xpath-default-namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd">
- <!--<xsl:message>#2335 Matched element</xsl:message>-->
- <xsl:apply-templates mode="#current"/>
- </xsl:template>
- <xsl:template match="go_recurse_from_root_by_build_element" mode="p5_tr_map:detect_element_relations_to_objects" xpath-default-namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd">
- <xsl:apply-templates mode="#current">
- <xsl:with-param name="p5_tr_map:ancestor-count" select="1"/>
- </xsl:apply-templates>
- </xsl:template>
- <xsl:template match="go_recurse_from_root_by_build_element" mode="p5_tr_map:detect_first_ref_to_native_procesy5_table_multi" xpath-default-namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd">
- <xsl:apply-templates mode="#current"/>
- </xsl:template>
- <xsl:template match="go_recurse_from_root_by_build_element" mode="p5_tr_map:detect_loop_from_build_complexType_node" xpath-default-namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd">
- <xsl:apply-templates mode="#current"/>
- </xsl:template>
- <xsl:template match="go_recurse_from_root_by_build_element" mode="p5_tr_map:detect_parent_complexType_with_ref_to_procesy5_table_multi" xpath-default-namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd">
- <xsl:apply-templates mode="#current"/>
- </xsl:template>
- <xsl:template match="go_recurse_from_root_by_build_element" mode="p5_tr_map:detect_root_sequence_id" xpath-default-namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd">
- <xsl:apply-templates mode="#current"/>
- </xsl:template>
- <xsl:template match="go_recurse_from_root_by_build_element" mode="p5_tr_map:element_complexType_tr_map" xpath-default-namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd">
- <xsl:apply-templates mode="#current"/>
- </xsl:template>
- <xsl:template match="go_recurse_from_root_by_build_element" mode="p5_tr_map:generate_validate_config_for_php_javascript" xpath-default-namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd">
- <xsl:apply-templates mode="#current"/>
- </xsl:template>
- <xsl:template match="go_recurse_from_root_by_build_element" mode="p5_tr_map:go_recurse_from_root_by_build_complexType" xpath-default-namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd">
- <xsl:apply-templates mode="#current"/>
- </xsl:template>
- <xsl:template match="go_recurse_from_root_by_build_element" mode="p5_tr_map:go_recurse_from_root_by_build_element" xpath-default-namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd">
- <xsl:apply-templates mode="#current"/>
- </xsl:template>
- <xsl:template match="go_recurse_from_root_by_build_element" mode="p5_tr_map:objects_derivations" xpath-default-namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd">
- <!--<xsl:message>#2372 matched <xsl:value-of select="@event_type"/></xsl:message>-->
- <xsl:apply-templates mode="#current"/>
- </xsl:template>
- <xsl:template match="go_recurse_from_root_by_build_element" mode="p5_tr_map:objects_derivations_attrs" xpath-default-namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd">
- <xsl:apply-templates mode="#current"/>
- </xsl:template>
- <xsl:template match="go_recurse_from_root_by_build_element" mode="relation_info_from_appinfo_not_flat" xpath-default-namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd">
- <xsl:apply-templates mode="#current"/>
- </xsl:template>
- <xsl:template match="go_recurse_from_root_by_build_element" xpath-default-namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd">
- <xsl:apply-templates mode="#current"/>
- </xsl:template>
-
- <xsl:template match="*" mode="p5_tr_map:detect_parent_complexType_with_ref_to_procesy5_table_multi" xpath-default-namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd">
- <xsl:choose>
- <xsl:when test="*">
- <xsl:choose>
- <xsl:when test="local-name()='go_recurse_from_root_by_build_element'">
- <xsl:comment>#1404 element go_recurse_from_root_by_build_element</xsl:comment>
- <xsl:apply-templates mode="#current"/>
- </xsl:when>
- <xsl:when test="@event_type='434'">
- <xsl:apply-templates mode="#current"/>
- </xsl:when>
- <xsl:when test="@event_type='710'">
- <xsl:apply-templates mode="#current"/>
- </xsl:when>
- <xsl:when test="@event_type='494' or @event_type='4940'"> <!-- przed 2016-01-02 and not(child::node()/attribute::node()[local-name()='event_type']='494') -->
- <xsl:element name="system_cache__appinfo:detect_parent_complexType_with_ref_to_procesy5_table">
- <xsl:comment>#2417 @e<xsl:value-of select="@event_type"/>; </xsl:comment><xsl:value-of select="concat(@system_cache__appinfo:prefix,':',@system_cache__appinfo:name)"/></xsl:element>
- <xsl:variable name="current" select="."/>
- <xsl:for-each select="*[@event_type='473']">
- <xsl:element name="system_cache__appinfo:trigger_on_insert">
- <xsl:attribute name="event_type_to" select="$current/@event_type"/>
- <xsl:attribute name="event_type" select="@event_type"/>
- <xsl:attribute name="comment" select="'pierwszy warunek 494 bez dziecka 494'"/>
- <xsl:element name="from_table">
- <xsl:attribute name="table" select="@system_cache__appinfo:id"/>
- <xsl:attribute name="src_desc" select="concat(@local-name,',',@system_cache__appinfo:name,',',@local-name-name)"/>
- <xsl:attribute name="field_read" select="'ID'"/>
- </xsl:element>
- <xsl:element name="to_table">
- <xsl:attribute name="name" select="$current/@system_cache__appinfo:id"/>
- <xsl:attribute name="dst_desc" select="concat($current/@local-name,',',$current/@system_cache__appinfo:name,',',$current/@local-name-name)"/>
- <xsl:attribute name="field_set" select="'REMOTE_ID'"/>
- </xsl:element>
- </xsl:element>
- </xsl:for-each>
- <xsl:apply-templates mode="#current"/>
- </xsl:when>
- <xsl:when test="@event_type='4941' or @event_type='4942'">
- <xsl:element name="system_cache__appinfo:trigger_on_insert">
- <xsl:attribute name="event_type_to" select="child::node()/@event_type"/>
- <xsl:attribute name="event_type" select="@event_type"/>
- <xsl:attribute name="comment" select="'drugi warunek 494 samo'"/>
- <xsl:element name="from_table">
- <xsl:attribute name="table" select="child::node()/@system_cache__appinfo:id"/>
- <xsl:attribute name="src_desc" select="child::node()/@system_cache__appinfo:name"/>
- <xsl:attribute name="field_read" select="'ID'"/>
- </xsl:element>
- <xsl:element name="to_table">
- <xsl:attribute name="name" select="@system_cache__appinfo:id"/>
- <xsl:attribute name="dst_desc" select="@system_cache__appinfo:name"/>
- <xsl:attribute name="field_set" select="'REMOTE_ID'"/>
- </xsl:element>
- </xsl:element>
- <xsl:apply-templates mode="#current"/>
- </xsl:when>
- <xsl:when test="@event_type='473' or @event_type='481' or @event_type='4810'">
- <xsl:variable name="current" select="."/>
- <xsl:for-each select="*[@event_type='477' or @event_type='477b']">
- <xsl:element name="system_cache__appinfo:trigger_on_insert">
- <xsl:attribute name="event_type_to" select="$current/@event_type"/>
- <xsl:attribute name="event_type" select="@event_type"/>
- <xsl:attribute name="comment" select="'trzeci warunek 473 lub 481 w petli'"/>
- <xsl:element name="from_table">
- <xsl:attribute name="table" select="@system_cache__appinfo:id"/>
- <xsl:attribute name="src_desc" select="concat(@local-name,',',@system_cache__appinfo:name,',',@local-name-name)"/>
- <xsl:attribute name="field_read" select="'ID'"/>
- </xsl:element>
- <xsl:element name="to_table">
- <xsl:attribute name="name" select="$current/@system_cache__appinfo:id"/>
- <xsl:attribute name="dst_desc" select="concat($current/@local-name,',',$current/@system_cache__appinfo:name,',',$current/@local-name-name)"/>
- <xsl:attribute name="field_set" select="'REMOTE_ID'"/>
- </xsl:element>
- <xsl:variable name="current3023" select="."/>
- <xsl:for-each select="*[@event_type='434']/system_cache__appinfo:go_recurse_from_root_by_build_element[@event_type='734']">
- <xsl:element name="system_cache__appinfo:trigger_on_insert">
- <xsl:attribute name="event_type_to" select="$current/@event_type"/>
- <xsl:attribute name="event_type" select="@event_type"/>
- <xsl:attribute name="comment" select="'zagniezdzony do trzeciego warunek poszukiwania natywnej tabeli procesy5 w petli'"/>
- <xsl:element name="from_table">
- <xsl:attribute name="table" select="concat(@system_cache__appinfo:prefix,':',@system_cache__appinfo:name)"/>
- <xsl:attribute name="src_desc" select="concat(@local-name,',',@system_cache__appinfo:name,',',@local-name-name)"/>
- <xsl:attribute name="field_read" select="'ID'"/>
- </xsl:element>
- <xsl:element name="to_table">
- <xsl:attribute name="name" select="$current3023/@system_cache__appinfo:id"/>
- <xsl:attribute name="dst_desc" select="concat($current3023/@local-name,',',$current3023/@system_cache__appinfo:name,',',$current3023/@local-name-name)"/>
- <xsl:attribute name="field_set" select="'REMOTE_ID'"/>
- </xsl:element>
- </xsl:element>
- </xsl:for-each>
- </xsl:element>
- </xsl:for-each>
- </xsl:when>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise><xsl:comment>#1489 other</xsl:comment></xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
-
-
- <!-- @2015-04-23 template do stworzenia tabel dla obiektu na podstawie schematu obiektu - tabele instancyjne oraz z ID,PARENT_ID,REMOTE_ID -->
- <!--@2016-01-20 rem na rzecz sso...xsl <xsl:template match="*" mode="p5_tr_map:create_sql_tables_from_go_recurse_from_root_by_build_element" xpath-default-namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd">
- <xsl:choose>
- <xsl:when test="@event_type='477' or @event_type='477b'">
- <!-\- <xsl:element name="sql_create_table">
- <xsl:attribute name="system_cache__appinfo:sql_lang" select="'mysql'"/>-\->
- CREATE TABLE IF NOT EXISTS `<xsl:value-of select="@system_cache__appinfo:id"/>` (`ID` int(11) NOT NULL AUTO_INCREMENT , `PARENT_ID` int(11), `REMOTE_ID` int(11), PRIMARY KEY (`ID`), KEY `REMOTE_ID` (`REMOTE_ID`), KEY `PARENT_ID`(`PARENT_ID`)) ENGINE=MyISAM DEFAULT CHARSET=latin2 ;
- <!-\-insert into `<xsl:value-of select="@retrieve_resource_id"/>` (`ID`,`PARENT_ID`,`REMOTE_ID`) values (0,0,0);-\->
- <!-\-</xsl:element>-\->
- </xsl:when>
- <xsl:when test="@event_type='459b'">
- <!-\- <xsl:element name="sql_create_table">
- <xsl:attribute name="system_cache__appinfo:sql_lang" select="'mysql'"/>-\->
- CREATE TABLE IF NOT EXISTS `<xsl:value-of select="@system_cache__appinfo:id"/>` (`ID` int(11) NOT NULL AUTO_INCREMENT, `VALUE` varchar(255) , PRIMARY KEY (`ID`), KEY `VALUE` (`VALUE`)) ENGINE=MyISAM DEFAULT CHARSET=latin2 ;
- <!-\-insert into `<xsl:value-of select="@retrieve_resource_id"/>` (`ID`,`PARENT_ID`) values (0,0);-\->
- <!-\-</xsl:element>-\->
- </xsl:when>
- <xsl:when test="@retrieve_TYPE or @requested-table-type='INSTANCE' and @system_cache__appinfo:id ">
- <!-\- <xsl:element name="sql_create_table">
- <xsl:attribute name="system_cache__appinfo:sql_lang" select="'mysql'"/>-\->
- CREATE TABLE IF NOT EXISTS `<xsl:value-of select="@system_cache__appinfo:id"/>` (`ID` int(11) NOT NULL AUTO_INCREMENT,`TYPE` varchar(255) NOT NULL , `REMOTE_ID` int(11), PRIMARY KEY (`ID`), KEY `TYPE` (`TYPE`) , KEY `REMOTE_ID` (`REMOTE_ID`)) ENGINE=MyISAM DEFAULT CHARSET=latin2 ;
- <!-\-insert into `<xsl:value-of select="@retrieve_resource_id"/>` (`ID`,`REMOTE_ID`) values (0,0);-\->
- <!-\-</xsl:element>-\->
- </xsl:when>
- <xsl:when test="@system_cache__appinfo:id and @create_element and ( @local-name='element' or @local-name='attribute')">
- <!-\- <xsl:element name="sql_create_table">
- <xsl:attribute name="system_cache__appinfo:sql_lang" select="'mysql'"/>-\->
- CREATE TABLE IF NOT EXISTS `<xsl:value-of select="@system_cache__appinfo:id"/>` (`ID` int(11) NOT NULL AUTO_INCREMENT,`PARENT_ID` int(11) , `VALUE` varchar(255) , PRIMARY KEY (`ID`), KEY `PARENT_ID` (`PARENT_ID`) , KEY `VALUE` (`VALUE`)) ENGINE=MyISAM DEFAULT CHARSET=latin2 ;
- <!-\-insert into `<xsl:value-of select="@retrieve_resource_id"/>` (`ID`,`PARENT_ID`) values (0,0);-\->
- <!-\-</xsl:element>-\->
- </xsl:when>
- <xsl:when test="@retrieve_REMOTE_ID and @system_cache__appinfo:id">
- <!-\- <xsl:element name="sql_create_table">
- <xsl:attribute name="system_cache__appinfo:sql_lang" select="'mysql'"/>-\->
- CREATE TABLE IF NOT EXISTS `<xsl:value-of select="@system_cache__appinfo:id"/>` (`ID` int(11) NOT NULL AUTO_INCREMENT , `PARENT_ID` int(11), `REMOTE_ID` int(11), PRIMARY KEY (`ID`), KEY `REMOTE_ID` (`REMOTE_ID`), KEY `PARENT_ID`(`PARENT_ID`)) ENGINE=MyISAM DEFAULT CHARSET=latin2 ;
- <!-\-insert into `<xsl:value-of select="@retrieve_resource_id"/>` (`ID`,`PARENT_ID`,`REMOTE_ID`) values (0,0,0);-\->
- <!-\-</xsl:element>-\->
- </xsl:when>
- <xsl:when test="(@retrieve_ID or @retrieve_PARENT_ID) and @system_cache__appinfo:id">
- <!-\- <xsl:element name="sql_create_table">
- <xsl:attribute name="system_cache__appinfo:sql_lang" select="'mysql'"/>-\->
- CREATE TABLE IF NOT EXISTS `<xsl:value-of select="@system_cache__appinfo:id"/>` (`ID` int(11) NOT NULL AUTO_INCREMENT,`PARENT_ID` int(11) , PRIMARY KEY (`ID`), KEY `PARENT_ID` (`PARENT_ID`)) ENGINE=MyISAM DEFAULT CHARSET=latin2 ;
- <!-\-insert into `<xsl:value-of select="@retrieve_resource_id"/>` (`ID`,`PARENT_ID`) values (0,0);-\->
- <!-\-</xsl:element>-\->
- </xsl:when>
- <xsl:when test="not(@*)"></xsl:when>
- <xsl:otherwise>
- <xsl:element name="ERROR_ELSE">
- <xsl:for-each select="@*">
- <xsl:attribute name="{name()}" select="."/>
- </xsl:for-each>
- <!-\-<xsl:copy-of select="."/>-\->
- </xsl:element>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:apply-templates mode="#current"/>
-
- </xsl:template>-->
-
-
-
- <!-- @2015-09-25 template do znalezienia root sequence id - np. dla OBSZAR jest to OBSZAR/LOKALIZACJA
- na wejsciu system_cache__appinfo:go_recurse_from_root_by_build_element. Poprawiono dla sciezki terc:WOJ 434d/494d/473 -->
- <xsl:template match="*" mode="p5_tr_map:detect_root_sequence_id" xpath-default-namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd">
- <xsl:choose>
- <xsl:when test="(@event_type='494' or @event_type='4940' or @event_type='494d' ) and ( child::node()[@event_type='473'] )"><!-- przed 2016-01-02 and not(child::node()/attribute::node()[local-name()='event_type']='494') -->
- <xsl:element name="system_cache__appinfo:detect_root_sequence_id">
- <xsl:attribute name="id" select="*[@event_type='473']/@system_cache__appinfo:id" xpath-default-namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd"/>
- </xsl:element>
- </xsl:when>
- <xsl:when test="@event_type='434' or @event_type='434d' or @event_type='434er'">
- <xsl:apply-templates mode="#current"/>
- </xsl:when>
- <xsl:when test="@event_type='4941' or @event_type='4942'">
- <xsl:apply-templates mode="#current"/>
- </xsl:when>
- <xsl:when test="@event_type='710'">
- <xsl:apply-templates mode="#current"/>
- </xsl:when>
- <xsl:when test="local-name()='go_recurse_from_root_by_build_element'">
- <xsl:apply-templates mode="#current"/>
- </xsl:when>
- </xsl:choose>
- </xsl:template>
- <xsl:template mode="p5_tr_map:detect_root_sequence_id" match="@*"/>
-
-
- <!-- @2015-09-30 template do wykrycia lokalnych elementow prostych z danego obiektu ComplexType, bez elementow z referencji innych obiektow, zwlaszcza do wykrycia lokalnych powiazan z plaska tabela, odbudowuje z system_cache__appinfo:go_recurse_from_root_by_build_element -->
- <xsl:template match="*" mode="p5_tr_map:detect_element_local_elements_without_ref_elements" exclude-result-prefixes="#all" xpath-default-namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd">
- <!--<xsl:message>#2567 Matched element <xsl:value-of select="name()"/> with @event_type=<xsl:value-of select="@event_type"/></xsl:message>-->
- <xsl:choose>
- <xsl:when test="@event_type='434' or @event_type='434d' or @event_type='494' or @event_type='4941' or @event_type='4942' or @event_type='4940' or @event_type='473'">
- <xsl:element name="system_cache__appinfo:detect_element_local_elements_without_ref_elements">
- <xsl:for-each select="@*">
- <xsl:attribute name="{name()}" select="."/>
- </xsl:for-each>
- <xsl:apply-templates mode="#current"/>
- </xsl:element>
- </xsl:when>
- <xsl:when test="@event_type='428' or @event_type='428a' or @event_type='459'">
- <xsl:element name="system_cache__appinfo:detect_element_local_elements_without_ref_elements">
- <xsl:for-each select="@*">
- <xsl:attribute name="{name()}" select="."/>
- </xsl:for-each>
- <xsl:apply-templates mode="#current"/>
- </xsl:element>
- </xsl:when>
- <xsl:when test="local-name()='go_recurse_from_root_by_build_element'">
- <xsl:apply-templates mode="#current"/>
- </xsl:when>
- </xsl:choose>
- </xsl:template>
-
- <!-- @2015-11-26 bindera: funkcja do zastapienia system_cache__appinfo:objects_parent_relation w celu wyswietlenia prawidlowej sekwencji derewiacji -->
- <xsl:template match="*" mode="p5_tr_map:objects_derivations" exclude-result-prefixes="#all" xpath-default-namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd">
- <xsl:message>#2602 DEBUG matched name()=<xsl:value-of select="name()"/>; @event_type=<xsl:value-of select="@event_type"/>;</xsl:message>
- <xsl:choose>
- <xsl:when test="@event_type='434' or @event_type='434d' or @event_type='434er'">
- <xsl:apply-templates mode="#current"/>
- </xsl:when>
- <xsl:when test="@event_type='494' or @event_type='4941' or @event_type='4942' or @event_type='4940' or @event_type='494d' or @event_type='394' or @event_type='3941' or @event_type='3942' or @event_type='3940'">
- <xsl:element name="p5_tr_map:derivations">
- <xsl:apply-templates mode="p5_tr_map:objects_derivations_attrs" select="@*"/>
- </xsl:element>
- <xsl:apply-templates mode="#current"/>
- </xsl:when>
- </xsl:choose>
- </xsl:template>
- <xsl:template match="@system_cache__appinfo:name|@system_cache__appinfo:id|@local-name" mode="p5_tr_map:objects_derivations_attrs">
- <xsl:attribute name="{name()}" select="."/>
- </xsl:template>
- <xsl:template match="@system_cache__appinfo:prefix" mode="p5_tr_map:objects_derivations_attrs">
- <xsl:attribute name="{name()}" select="."/>
- <xsl:attribute name="p5_tr_map:name_with_pref" select="concat(.,':',../@system_cache__appinfo:name)"/>
- <xsl:attribute name="system_cache__appinfo:xpath_full" select="../@system_cache__appinfo:xpath_full"/>
- </xsl:template>
- <xsl:template match="@*" mode="p5_tr_map:objects_derivations_attrs"/>
-
- <!-- @2015-10-20 template do wygenerowania na podstawie plaskich struktur w obiekcie zaglebionych wylacznie wramach sequence/choice (a wiec nie zaglebionych) do wygenerowania prostego parsowalnego konfiga do walidatora w javascript/php ,
- bazuje na template @mode=system_cache__appinfo:empty_element_from_xsd_form -->
- <xsl:template match="*" mode="p5_tr_map:generate_validate_config_for_php_javascript" xpath-default-namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd">
- <xsl:param name="system_cache__appinfo:detect_local-elements_relations_references_with_flat_procesy5_table" required="no"/>
- <xsl:param name="parent_choice_name"/><!-- do oznaczania w przypadku choice aby dzieci mialy wspolne name -->
- <xsl:variable name="node_3406" select="."/>
- <!-- tutaj dajemy
- <system_cache__appinfo:detect_local-elements_relations_references_with_flat_procesy5_table>
- <system_cache__appinfo:flat_element-to-object_element system_cache__appinfo:flat_element="ID"
- system_cache__appinfo:object_element="ID"
- system_cache__appinfo:id="default_default_objects_types___d20e438-id"
- system_cache__appinfo:xpath="default_default_objects_types:LOKALIZACJA/ID"/>
- />
- -->
- <xsl:choose>
- <xsl:when test="@event_type='992'">
- 992</xsl:when>
- <xsl:when test="@event_type='467'"> <!-- element instancyjny -->
- <xsl:apply-templates mode="#current">
- <xsl:with-param name="parent_choice_name" select="$parent_choice_name"/>
- <xsl:with-param name="system_cache__appinfo:detect_local-elements_relations_references_with_flat_procesy5_table" select="$system_cache__appinfo:detect_local-elements_relations_references_with_flat_procesy5_table"/>
- </xsl:apply-templates>
- </xsl:when>
- <xsl:when test="@event_type='4812'"> <!-- element instancyjny - kilka dereviacji, ta jest pierwsza -->
- <xsl:text>
</xsl:text><xsl:value-of select="concat(@parent_name,'[',system_cache__appinfo:schema_occurs_max_sequence(@system_cache__appinfo:minOccurs),'][',system_cache__appinfo:schema_occurs_max_sequence(@system_cache__appinfo:maxOccurs),']')"/>{
- <xsl:apply-templates mode="#current">
- <xsl:with-param name="parent_choice_name" select="$parent_choice_name"/>
- <xsl:with-param name="system_cache__appinfo:detect_local-elements_relations_references_with_flat_procesy5_table" select="$system_cache__appinfo:detect_local-elements_relations_references_with_flat_procesy5_table"/>
- </xsl:apply-templates>
- }
- </xsl:when>
- <xsl:when test="@event_type='1069'"> <!-- element instancyjny - z ref / simpleContent -->
- <xsl:apply-templates mode="#current">
- <xsl:with-param name="parent_choice_name" select="$parent_choice_name"/>
- <xsl:with-param name="system_cache__appinfo:detect_local-elements_relations_references_with_flat_procesy5_table" select="$system_cache__appinfo:detect_local-elements_relations_references_with_flat_procesy5_table"/>
- </xsl:apply-templates>
- </xsl:when>
- <xsl:when test="@event_type='459b'"> <!-- element instancyjny - z ref / simpleContent -->
- 459b
- </xsl:when>
- <xsl:when test="@event_type='477' or @event_type='477b'">
- <xsl:text>
</xsl:text><xsl:value-of select="concat(@system_cache__appinfo:ref,'[',system_cache__appinfo:schema_occurs_max_sequence(@system_cache__appinfo:minOccurs),'][',system_cache__appinfo:schema_occurs_max_sequence(@system_cache__appinfo:maxOccurs),']')"/>,</xsl:when>
- <xsl:when test="@event_type='428'"> <!-- simple type -->
- <!--428 @system_cache__appinfo:id:<xsl:value-of select="@system_cache__appinfo:id"/>-->
- <xsl:for-each select="$system_cache__appinfo:detect_local-elements_relations_references_with_flat_procesy5_table/system_cache__appinfo:flat_element-to-object_element">
- <!-- 3447,<xsl:value-of select="@system_cache__appinfo:xpath"/>-<xsl:value-of select="$node_3406/@system_cache__appinfo:xpath"/>-->
- <xsl:if test="$node_3406/@system_cache__appinfo:xpath=@system_cache__appinfo:xpath"> <!-- $node_3406/@system_cache__appinfo:xpath= -->
- <xsl:text>
</xsl:text><xsl:value-of select="concat($node_3406/@local-name-name,'[',system_cache__appinfo:schema_occurs_max_sequence($node_3406/@system_cache__appinfo:minOccurs),'][',system_cache__appinfo:schema_occurs_max_sequence($node_3406/@system_cache__appinfo:maxOccurs),']')"/>,<xsl:value-of select="' '"/>
- </xsl:if>
- </xsl:for-each>
- </xsl:when>
- <xsl:when test="@event_type='720'"><xsl:text>
</xsl:text>@<xsl:value-of select="@local-name-name"/>, </xsl:when>
- <xsl:when test="@event_type='734'"> <!-- natywna tabela plaska np. default_db-->
- // 734 natywna tabela plaska np. default_db
- </xsl:when>
- <xsl:when test="@event_type='473' and @local-name='choice'"> <!-- choice -->
- <xsl:variable name="parent_choice_name" select="generate-id()"/>
- <!--<input type="radio" name="{$parent_choice_name}" value="{$parent_choice_name}"></input>-->
- <xsl:text>
</xsl:text>choice:<xsl:value-of select="@retrieve_resource_id"/>{
- <xsl:apply-templates mode="#current">
- <xsl:with-param name="parent_choice_name" select="@system_cache__appinfo:id"/>
- <xsl:with-param name="system_cache__appinfo:detect_local-elements_relations_references_with_flat_procesy5_table" select="$system_cache__appinfo:detect_local-elements_relations_references_with_flat_procesy5_table"/>
- </xsl:apply-templates> }
- </xsl:when>
- <xsl:when test="@event_type='473' and @local-name!='choice'"> <!-- sequence -->
- <xsl:text>
</xsl:text>sequence:<xsl:value-of select="@retrieve_resource_id"/>{
- <xsl:apply-templates mode="#current">
- <xsl:with-param name="parent_choice_name" select="$parent_choice_name"/>
- <xsl:with-param name="system_cache__appinfo:detect_local-elements_relations_references_with_flat_procesy5_table" select="$system_cache__appinfo:detect_local-elements_relations_references_with_flat_procesy5_table"/>
- </xsl:apply-templates> }
- </xsl:when>
-
- <xsl:otherwise>
- <!--<font size="-3">Otherwise @event_type:<xsl:value-of select="@event_type"/>;@system_cache__appinfo:id:<xsl:value-of select="@system_cache__appinfo:id"/></font>-->
- <xsl:apply-templates mode="#current">
- <xsl:with-param name="parent_choice_name" select="$parent_choice_name"/>
- <xsl:with-param name="system_cache__appinfo:detect_local-elements_relations_references_with_flat_procesy5_table" select="$system_cache__appinfo:detect_local-elements_relations_references_with_flat_procesy5_table"/>
- </xsl:apply-templates>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
-
- <xsl:template match="comment()|text()" mode="#all"/>
-
-
-
-
-
-
-
-
-
- </xsl:stylesheet>
|