瀏覽代碼

dzialajacy rekursywnie XML z mapy

a.binder 9 年之前
父節點
當前提交
df274be4c8

+ 20 - 2
SE/schema/ant-url_action/default_db.crm_proces/CRM_PROCES_tree/build.xml

@@ -262,7 +262,7 @@
                     <target name="tr_map_ok" if="${test_if_tr_map}">
                         <!-- polaczenie pdfa -->
                         <echo>#251 wyzwalam build_recurse_ant_merge_dita_from_temp.xsl</echo>
-                        <antcall target="build_recurse_ant_merge_dita_from_temp.xsl"/>
+                        <antcall target="build_recurse_ant_merge_dita_from_temp.xsl_tr_map"/>
                     </target>
                     
                     <target name="xml_recursed_from_tr_map" depends="install_folders,uuid_check,typeName_check,xpath_check,xpath_value_check,passwordBase64Basic_check,check_tr_map" description="Buduje wyjsciowego XMLa na podstawie mapy transportowej dla zastosowan w API DEVEL">
@@ -283,7 +283,7 @@
                         <!--<echo message="OUTPUT__END"/>-->
                     </target>
     
-                    <target name="xml_recursed_from_tr_map_with_RelatedFeatureLoop" depends="xml_recursed_from_tr_map" description="Buduje wyjsciowego XMLa na podstawie mapy transportowej dla zastosowan w API DEVEL - finalne zlozenie z Rekurencja Loop">
+        <target name="xml_recursed_from_tr_map_with_RelatedFeatureLoop" depends="xml_recursed_from_tr_map" description="URL_TASK Pobierz XML">
                         <echo message="OUTPUT__START"/>
                         
                         <!-- TODO proba wlaczenia rekursywnosci zapisanie wezla do sciezki w folderze-->
@@ -474,6 +474,24 @@
         <echo> zapisalem plik gotowy do utworzenia dita do ${out_task.dita.final}. </echo>
     </target>
 
+
+    <target name="build_recurse_ant_merge_dita_from_temp.xsl_tr_map" depends="build_recurse_ant.xml" description="z plikow temp/$uuid.* buduje $out_task.dita.final ">
+        <xslt basedir="./" style="${build_recurse_ant_merge_dita_from_temp.xsl}" in="${main_build_recurse_ant.dita_with_id}"  destdir="./" out="${out_task.dita.final}" >
+            <factory name="net.sf.saxon.TransformerFactoryImpl">    
+                <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
+                <attribute name="http://saxon.sf.net/feature/initialMode" value="RelatedFeatureRoot"/>
+            </factory>
+            <classpath location="/opt/local/share/java/saxon9he.jar"/>
+            <!--<param name="webRootUrl" expression="${webRootUrl}" />--> 
+            <!--<param name="main_build_recurse_ant.dita" expression="${main_build_recurse_ant.dita}"/>-->
+            <param name="uuid" expression="${uuid_tested}"/>
+            <!--<param name="basedir" expression="${basedir}"/>-->
+            <param name="temp" expression="${temp}"/>
+            <param name="temp" expression="${temp}"/>
+        </xslt>
+        <echo> zapisalem plik gotowy do utworzenia dita do ${out_task.dita.final}. </echo>
+    </target>
+
     <!--<target name="build_recurse_ant_merge_dita_from_temp.xsl_with_RelatedFeatureLoop" depends="build_recurse_ant_merge_dita_from_temp.xsl" description="z plikow temp/$uuid.* buduje $out_task.dita.final ">
         <xslt basedir="./" style="${build_recurse_ant_merge_dita_from_temp.xsl}" in="${main_build_recurse_ant.dita_with_id}"  destdir="./" out="${out_task.dita.final_with_RelatedFeatureLoop}" >
             <factory name="net.sf.saxon.TransformerFactoryImpl">    

+ 20 - 2
SE/schema/ant-url_action/default_db.in7_dziennik_koresp/test-druk/build.xml

@@ -262,7 +262,7 @@
                     <target name="tr_map_ok" if="${test_if_tr_map}">
                         <!-- polaczenie pdfa -->
                         <echo>#251 wyzwalam build_recurse_ant_merge_dita_from_temp.xsl</echo>
-                        <antcall target="build_recurse_ant_merge_dita_from_temp.xsl"/>
+                        <antcall target="build_recurse_ant_merge_dita_from_temp.xsl_tr_map"/>
                     </target>
                     
                     <target name="xml_recursed_from_tr_map" depends="install_folders,uuid_check,typeName_check,xpath_check,xpath_value_check,passwordBase64Basic_check,check_tr_map" description="Buduje wyjsciowego XMLa na podstawie mapy transportowej dla zastosowan w API DEVEL">
@@ -283,7 +283,7 @@
                         <!--<echo message="OUTPUT__END"/>-->
                     </target>
     
-                    <target name="xml_recursed_from_tr_map_with_RelatedFeatureLoop" depends="xml_recursed_from_tr_map" description="Buduje wyjsciowego XMLa na podstawie mapy transportowej dla zastosowan w API DEVEL - finalne zlozenie z Rekurencja Loop">
+        <target name="xml_recursed_from_tr_map_with_RelatedFeatureLoop" depends="xml_recursed_from_tr_map" description="URL_TASK Pobierz XML">
                         <echo message="OUTPUT__START"/>
                         
                         <!-- TODO proba wlaczenia rekursywnosci zapisanie wezla do sciezki w folderze-->
@@ -474,6 +474,24 @@
         <echo> zapisalem plik gotowy do utworzenia dita do ${out_task.dita.final}. </echo>
     </target>
 
+
+    <target name="build_recurse_ant_merge_dita_from_temp.xsl_tr_map" depends="build_recurse_ant.xml" description="z plikow temp/$uuid.* buduje $out_task.dita.final ">
+        <xslt basedir="./" style="${build_recurse_ant_merge_dita_from_temp.xsl}" in="${main_build_recurse_ant.dita_with_id}"  destdir="./" out="${out_task.dita.final}" >
+            <factory name="net.sf.saxon.TransformerFactoryImpl">    
+                <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
+                <attribute name="http://saxon.sf.net/feature/initialMode" value="RelatedFeatureRoot"/>
+            </factory>
+            <classpath location="/opt/local/share/java/saxon9he.jar"/>
+            <!--<param name="webRootUrl" expression="${webRootUrl}" />--> 
+            <!--<param name="main_build_recurse_ant.dita" expression="${main_build_recurse_ant.dita}"/>-->
+            <param name="uuid" expression="${uuid_tested}"/>
+            <!--<param name="basedir" expression="${basedir}"/>-->
+            <param name="temp" expression="${temp}"/>
+            <param name="temp" expression="${temp}"/>
+        </xslt>
+        <echo> zapisalem plik gotowy do utworzenia dita do ${out_task.dita.final}. </echo>
+    </target>
+
     <!--<target name="build_recurse_ant_merge_dita_from_temp.xsl_with_RelatedFeatureLoop" depends="build_recurse_ant_merge_dita_from_temp.xsl" description="z plikow temp/$uuid.* buduje $out_task.dita.final ">
         <xslt basedir="./" style="${build_recurse_ant_merge_dita_from_temp.xsl}" in="${main_build_recurse_ant.dita_with_id}"  destdir="./" out="${out_task.dita.final_with_RelatedFeatureLoop}" >
             <factory name="net.sf.saxon.TransformerFactoryImpl">    

+ 20 - 2
SE/schema/ant-url_action/default_db.in7_dziennik_koresp/umowa/build.xml

@@ -262,7 +262,7 @@
                     <target name="tr_map_ok" if="${test_if_tr_map}">
                         <!-- polaczenie pdfa -->
                         <echo>#251 wyzwalam build_recurse_ant_merge_dita_from_temp.xsl</echo>
-                        <antcall target="build_recurse_ant_merge_dita_from_temp.xsl"/>
+                        <antcall target="build_recurse_ant_merge_dita_from_temp.xsl_tr_map"/>
                     </target>
                     
                     <target name="xml_recursed_from_tr_map" depends="install_folders,uuid_check,typeName_check,xpath_check,xpath_value_check,passwordBase64Basic_check,check_tr_map" description="Buduje wyjsciowego XMLa na podstawie mapy transportowej dla zastosowan w API DEVEL">
@@ -283,7 +283,7 @@
                         <!--<echo message="OUTPUT__END"/>-->
                     </target>
     
-                    <target name="xml_recursed_from_tr_map_with_RelatedFeatureLoop" depends="xml_recursed_from_tr_map" description="Buduje wyjsciowego XMLa na podstawie mapy transportowej dla zastosowan w API DEVEL - finalne zlozenie z Rekurencja Loop">
+        <target name="xml_recursed_from_tr_map_with_RelatedFeatureLoop" depends="xml_recursed_from_tr_map" description="URL_TASK Pobierz XML">
                         <echo message="OUTPUT__START"/>
                         
                         <!-- TODO proba wlaczenia rekursywnosci zapisanie wezla do sciezki w folderze-->
@@ -474,6 +474,24 @@
         <echo> zapisalem plik gotowy do utworzenia dita do ${out_task.dita.final}. </echo>
     </target>
 
+
+    <target name="build_recurse_ant_merge_dita_from_temp.xsl_tr_map" depends="build_recurse_ant.xml" description="z plikow temp/$uuid.* buduje $out_task.dita.final ">
+        <xslt basedir="./" style="${build_recurse_ant_merge_dita_from_temp.xsl}" in="${main_build_recurse_ant.dita_with_id}"  destdir="./" out="${out_task.dita.final}" >
+            <factory name="net.sf.saxon.TransformerFactoryImpl">    
+                <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
+                <attribute name="http://saxon.sf.net/feature/initialMode" value="RelatedFeatureRoot"/>
+            </factory>
+            <classpath location="/opt/local/share/java/saxon9he.jar"/>
+            <!--<param name="webRootUrl" expression="${webRootUrl}" />--> 
+            <!--<param name="main_build_recurse_ant.dita" expression="${main_build_recurse_ant.dita}"/>-->
+            <param name="uuid" expression="${uuid_tested}"/>
+            <!--<param name="basedir" expression="${basedir}"/>-->
+            <param name="temp" expression="${temp}"/>
+            <param name="temp" expression="${temp}"/>
+        </xslt>
+        <echo> zapisalem plik gotowy do utworzenia dita do ${out_task.dita.final}. </echo>
+    </target>
+
     <!--<target name="build_recurse_ant_merge_dita_from_temp.xsl_with_RelatedFeatureLoop" depends="build_recurse_ant_merge_dita_from_temp.xsl" description="z plikow temp/$uuid.* buduje $out_task.dita.final ">
         <xslt basedir="./" style="${build_recurse_ant_merge_dita_from_temp.xsl}" in="${main_build_recurse_ant.dita_with_id}"  destdir="./" out="${out_task.dita.final_with_RelatedFeatureLoop}" >
             <factory name="net.sf.saxon.TransformerFactoryImpl">    

+ 16 - 7
SE/schema/default_db_xml_cache.public/build_recurse_ant_merge_dita_from_temp.xsl

@@ -62,6 +62,15 @@
             </xsl:apply-templates>
     </xsl:template>-->
     
+    
+    <xsl:template match="RelatedFeature" mode="RelatedFeatureRoot">
+        <!-- dla wstawienia root w przypadku kilku elementow zmergowanych -->
+        <xsl:element name="RelatedFeatureRoot">
+            <xsl:copy-of select="@*"/>
+            <xsl:apply-templates select="."/>
+        </xsl:element>
+    </xsl:template>
+    
     <xsl:template match="*" mode="root">
         <xsl:param name="loop_xpath"/>
         <xsl:element name="{name()}">
@@ -187,16 +196,16 @@
                         <xsl:choose>
                             <xsl:when test="doc-available(concat($temp,'/',$xml_id,'.',$uuid,'.',$feature_pos_child,'/',$featureID_name,'.with_id.xml'))">
                                 <xsl:message>#189 we load get $dita_fragment for <xsl:value-of select="$featureID_name"/>; </xsl:message>
-                                <xsl:value-of select="doc(concat($temp,'/',$xml_id,'.',$uuid,'.',$feature_pos_child,'/',$featureID_name,'.with_id.xml'))"/>
+                                <xsl:copy-of select="doc(concat($temp,'/',$xml_id,'.',$uuid,'.',$feature_pos_child,'/',$featureID_name,'.with_id.xml'))"/>
                             </xsl:when>
                         </xsl:choose>
                     </xsl:variable>
-                    <Loop_dita_with_id>
+                    <!--<Loop_dita_with_id>
                         <xsl:copy-of select="$dita_with_id"/>
-                    </Loop_dita_with_id>
-                    <Loop_dita_fragment>
+                    </Loop_dita_with_id>-->
+                    <!--<Loop_dita_fragment>
                         <xsl:copy-of select="$dita_fragment"/>
-                    </Loop_dita_fragment>
+                    </Loop_dita_fragment>-->
                     <xsl:comment>#180 loop $xml_id=<xsl:value-of select="$xml_id"/>; $feature_pos_child=<xsl:value-of select="$feature_pos_child"/>; $RelatedFeaturePos=<xsl:value-of select="$RelatedFeaturePos"/>; $dita_fragment(empty)=<xsl:value-of select="empty($dita_fragment)"/> empty($dita_with_id)=<xsl:value-of select="empty($dita_with_id)"/>; </xsl:comment>
                     
                     <xsl:for-each select="$dita_fragment">
@@ -231,7 +240,7 @@
             <xsl:copy-of select="$dita_with_id"/>
         </dita_with_id>-->
         <!--<RelatedFeatureLoop>-->
-            <xsl:comment>#211  $path=<xsl:value-of select="$path"/>; </xsl:comment>
+            <!--<xsl:comment>#211  $path=<xsl:value-of select="$path"/>; </xsl:comment>-->
             <!--<xsl:copy-of select="."/>-->
 
             <xsl:for-each select="*">
@@ -262,7 +271,7 @@
                             <xsl:variable name="path">
                                 <xsl:value-of select="concat($path,'/',@xml_id,'.',$uuid,'.',$loop_pos)"/> 
                             </xsl:variable>
-                            <xsl:comment>#220 $path=<xsl:value-of select="$path"/>;  </xsl:comment>
+                            <!--<xsl:comment>#220 $path=<xsl:value-of select="$path"/>;  </xsl:comment>-->
                             <xsl:variable name="dita_fragment">
                                 <xsl:choose>
                                     <xsl:when test=" doc-available(concat($path,'/',$uuid,'.out_task.dita.final.xml'))">

+ 3 - 3
SE/schema/default_db_xml_cache.public/builds_to_ant.xsl

@@ -44,7 +44,7 @@
                 </xsl:variable>
                 <xsl:comment> default_antfile: <xsl:value-of select="$default_antfile"/> ; </xsl:comment>
                 <xsl:choose>
-                    <xsl:when test="1=2"> <!-- $last_slash='temp' -->
+                    <xsl:when test="1=1"> <!-- $last_slash='temp' -->
                         <xsl:message> FIRST LEVEL ANT is executed in PARALLEL </xsl:message>
                         <echo>
                             #
@@ -60,7 +60,7 @@
                                     <xsl:attribute name="dir" select="'${basedir}'"/>
                                     <xsl:attribute name="fork" select="'true'"/>
                                     <xsl:attribute name="clonevm" select="'true'"/>
-                                    <xsl:attribute name="resultproperty" select="concat(.,'_resprop')"/>
+                                    <!--<xsl:attribute name="resultproperty" select="concat(.,'_resprop')"/>-->
                                     <!--<xsl:attribute name="output" select="concat(.,'_out.log')"/>-->
                                     <arg value="-buildfile"/>
                                     <arg value="{$temp}/{.}"/>
@@ -106,7 +106,7 @@
                 <!-- robimy na paraler  -->
                 <xsl:choose>
                     <xsl:when test="1=2">
-                        <echo> 
+                        <echo>
                             #
                             #    
                             #

+ 27 - 7
SE/schema/default_db_xml_cache.public/main_build_recurse_ant.dita_with_id.xsl

@@ -60,9 +60,13 @@
                 <xsl:attribute name="xpath" select="'ID'"/><!-- to do upgrade - nie powinno sie szukac domyslnie po ID -->
                 <xsl:apply-templates mode="detect_typeName_tr_map"/>
                 <!-- spokojnie po 434 mozna wykryc @parent_type = default_db__x3A__CRM_PROCES:PROCES - powinno byc childem - jak nie to todo! -->
-            <xsl:variable name="build_complexType" select="doc(concat($build_complexType_dir,'/element-',system_cache__appinfo:escape_object_prefix_to_string(p5_tr_map:go_recurse_from_root_by_build_element_434/@parent_type),'.xml'))"/>
-            
+            <xsl:variable name="prefixed_object_info">
+                <xsl:call-template name="system_cache__appinfo:prefixed_object_info">
+                    <xsl:with-param name="prefixed_object" select="p5_tr_map:go_recurse_from_root_by_build_element_434/@parent_type"/>
+                </xsl:call-template>
+            </xsl:variable>
             
+            <xsl:variable name="build_complexType" select="doc(concat($build_complexType_dir,'/',$prefixed_object_info/system_cache__appinfo:prefixed_object_info/@prefix,'/',$prefixed_object_info/system_cache__appinfo:prefixed_object_info/@element,'.xml'))"/>
                 <xsl:choose>
                     <xsl:when test="1=2"/>
                     <!--<xsl:when test="@system_cache__appinfo:id">
@@ -75,6 +79,7 @@
             <xsl:call-template name="p5_tr_map:simpleTypeMakeOgcFilter">
                 <xsl:with-param name="build_complexType" select="$build_complexType"/>
             </xsl:call-template>
+            <xsl:comment>#68 from <xsl:value-of select="p5_tr_map:go_recurse_from_root_by_build_element_434/@parent_type"/>; I get prefixed_object_info/@element <xsl:value-of select="$prefixed_object_info/system_cache__appinfo:prefixed_object_info/@element"/>; </xsl:comment>
             <xsl:apply-templates>
                 <xsl:with-param name="build_complexType" select="$build_complexType"/>
             </xsl:apply-templates>
@@ -122,8 +127,15 @@
     
     <xsl:template match="p5_tr_map:go_recurse_from_root_by_build_element_477[not(@system_cache__appinfo:loop_name)]">
         <!--<xsl:param name="build_complexType" required="yes"/>< - tutaj tworzymy kolejne lokalne build_complexType-->
-        <xsl:variable name="build_complexType" select="doc(concat($build_complexType_dir,'/element-',system_cache__appinfo:escape_object_prefix_to_string(@system_cache__appinfo:ref),'.xml'))"/>
+        <xsl:variable name="prefixed_object_info">
+            <xsl:call-template name="system_cache__appinfo:prefixed_object_info">
+                <xsl:with-param name="prefixed_object" select="@system_cache__appinfo:ref"/>
+            </xsl:call-template>
+        </xsl:variable>
+        <!--<xsl:variable name="build_complexType" select="doc(concat($build_complexType_dir,'/element-',system_cache__appinfo:escape_object_prefix_to_string(@system_cache__appinfo:ref),'.xml'))"/>-->
+        <xsl:variable name="build_complexType" select="doc(concat($build_complexType_dir,'/',$prefixed_object_info/system_cache__appinfo:prefixed_object_info/@prefix,'/',$prefixed_object_info/system_cache__appinfo:prefixed_object_info/@element,'.xml'))"/>
         <xsl:variable name="detect_resource_type" select=" system_cache__resources_tree_generate_xsl_required_occurs_raport:detect_resource_type_from_cache(@system_cache__appinfo:ref)"/>
+        <xsl:comment>#138 from <xsl:value-of select="@system_cache__appinfo:ref"/>; I get prefixed_object_info/@element <xsl:value-of select="$prefixed_object_info/system_cache__appinfo:prefixed_object_info/@element"/>; </xsl:comment>
         <xsl:element name="RelatedFeature">
             <xsl:attribute name="xml_id" select="generate-id()"/>
                  <!-- tymczasowe wymuszenie relacji do obiektu glownego na podstawie $detect_resource_type -->
@@ -154,7 +166,7 @@
                 <xsl:call-template name="p5_tr_map:simpleTypeMakeOgcFilter">
                     <xsl:with-param name="build_complexType" select="$build_complexType"/>
                 </xsl:call-template>
-                <xsl:element name="{concat($namespace_prefix,':',$detect_resource_type//system_cache__resources_tree_generate_xsl_required_occurs_raport:detect_resource_type/@system_cache__appinfo:get_default_db_obj_url_table_name)}">
+            <xsl:element name="{concat($namespace_prefix,':',$prefixed_object_info/system_cache__appinfo:prefixed_object_info/@element)}">
                     <xsl:attribute name="xml_id" select="concat(generate-id(),'_child')"/>
                     <xsl:apply-templates mode="p5_tr_map:go_recurse_from_root_by_build_element_477_attrs" select="@*"/>
                     <xsl:apply-templates>
@@ -166,8 +178,16 @@
     
     <xsl:template match="p5_tr_map:go_recurse_from_root_by_build_element_477[@system_cache__appinfo:loop_name]">
         <!--<xsl:param name="build_complexType" required="yes"/>-->
-        <xsl:variable name="build_complexType" select="doc(concat($build_complexType_dir,'/element-',system_cache__appinfo:escape_object_prefix_to_string(@system_cache__appinfo:ref),'.xml'))"/><!-- tutaj na podstawie tego powinnismy zbudowac odpowiedni filtr lub olac? o to zadba kolejne wyzwolenie rekursywne-->
+        <xsl:variable name="prefixed_object_info">
+            <xsl:call-template name="system_cache__appinfo:prefixed_object_info">
+                <xsl:with-param name="prefixed_object" select="@system_cache__appinfo:ref"/>
+            </xsl:call-template>
+        </xsl:variable>
+        <!--<xsl:variable name="build_complexType" select="doc(concat($build_complexType_dir,'/element-',system_cache__appinfo:escape_object_prefix_to_string(@system_cache__appinfo:ref),'.xml'))"/>-->
+        <xsl:variable name="build_complexType" select="doc(concat($build_complexType_dir,'/',$prefixed_object_info/system_cache__appinfo:prefixed_object_info/@prefix,'/',$prefixed_object_info/system_cache__appinfo:prefixed_object_info/@element,'.xml'))"/>
+        <!--<xsl:variable name="build_complexType" select="doc(concat($build_complexType_dir,'/element-',system_cache__appinfo:escape_object_prefix_to_string(@system_cache__appinfo:ref),'.xml'))"/>--><!-- tutaj na podstawie tego powinnismy zbudowac odpowiedni filtr lub olac? o to zadba kolejne wyzwolenie rekursywne-->
         <xsl:variable name="detect_resource_type" select=" system_cache__resources_tree_generate_xsl_required_occurs_raport:detect_resource_type_from_cache(@system_cache__appinfo:ref)"/> 
+        <xsl:comment>#190 from <xsl:value-of select="@system_cache__appinfo:ref"/>; I get prefixed_object_info/@element <xsl:value-of select="$prefixed_object_info/system_cache__appinfo:prefixed_object_info/@element"/>; </xsl:comment>
         <xsl:element name="RelatedFeatureLoop">
             <xsl:attribute name="xml_id" select="generate-id()"/>
             <!-- tymczasowe wymuszenie relacji do obiektu glownego na podstawie $detect_resource_type -->
@@ -200,7 +220,7 @@
             <xsl:call-template name="p5_tr_map:simpleTypeMakeOgcFilter">
                 <xsl:with-param name="build_complexType" select="$build_complexType"/>
             </xsl:call-template>
-            <xsl:element name="{concat($namespace_prefix,':',$detect_resource_type//system_cache__resources_tree_generate_xsl_required_occurs_raport:detect_resource_type/@system_cache__appinfo:get_default_db_obj_url_table_name)}">
+            <xsl:element name="{concat($namespace_prefix,':',$prefixed_object_info/system_cache__appinfo:prefixed_object_info/@element)}">
                 <xsl:attribute name="xml_id" select="generate-id()"/>
                 <xsl:apply-templates mode="p5_tr_map:go_recurse_from_root_by_build_element_477_attrs" select="@*"/>
                 <!--<xsl:apply-templates/>-->
@@ -283,7 +303,7 @@
             </xsl:choose>
         </xsl:variable>-->
         <xsl:message>#125 try to name element <xsl:value-of select="$build_complexType/element/@name" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"/>; @event_type = <xsl:value-of select="@event_type"/>; </xsl:message>
-        <xsl:element name="{$build_complexType/element/@name}" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
+        <xsl:element name="{$namespace_prefix}:{$build_complexType/element/@name}" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
             <xsl:apply-templates select="@*">
                 <xsl:with-param name="element" select="name()"/>
                 <xsl:with-param name="node" select="."/>