Project

General

Profile

« Previous | Next » 

Revision 1735

Added by Jing Tao almost 21 years ago

Fixed some bugs in these style sheets.

View differences:

eml-2.0.0.xsl
209 209
             <xsl:call-template name="datasetattributemethod"/>
210 210
          </xsl:if>
211 211
          <xsl:if test="$displaymodule='inlinedata'">
212
             <xsl:call-template name="datasetinlinedata"/>
212
             <xsl:call-template name="emlinlinedata"/>
213 213
          </xsl:if>
214 214
      </table>
215 215
   </xsl:template>
......
657 657
   
658 658
   
659 659
   <!--*************************Distribution Inline Data display module*****************-->
660
   <xsl:template name="datasetinlinedata">
660
   <xsl:template name="emlinlinedata">
661 661
      <tr><td>
662 662
         <right>
663 663
            <h3>Inline Data</h3>
......
667 667
           <td width="100%">
668 668
            <xsl:if test="$distributionlevel='toplevel'">
669 669
               <xsl:for-each select="distribution">
670
                  <xsl:if test="position=$distributionindex">
670
                  <xsl:if test="position()=$distributionindex">
671 671
                     <xsl:choose>
672 672
                       <xsl:when test="references!=''">
673 673
                          <xsl:variable name="ref_id1" select="references"/>
......
706 706
                  </xsl:if>
707 707
                </xsl:for-each>
708 708
              </xsl:if>
709
              <xsl:if test="$entitytype='spatialRaster'">
710
                <xsl:for-each select="spatialRaster">
711
                  <xsl:if test="position()=$entityindex">
712
                      <xsl:choose>
713
                       <xsl:when test="references!=''">
714
                          <xsl:variable name="ref_id2" select="references"/>
715
                          <xsl:variable name="references2" select="$ids[@id=$ref_id2]" />
716
                          <xsl:for-each select="$references2">
717
                             <xsl:call-template name="choosephysical"/>
718
                          </xsl:for-each>
719
                       </xsl:when>
720
                       <xsl:otherwise>
721
                           <xsl:call-template name="choosephysical"/>
722
                       </xsl:otherwise>
723
                     </xsl:choose>
724
                  </xsl:if>
725
                </xsl:for-each>
726
              </xsl:if>
727
              <xsl:if test="$entitytype='spatialVector'">
728
                <xsl:for-each select="spatialVector">
729
                  <xsl:if test="position()=$entityindex">
730
                      <xsl:choose>
731
                       <xsl:when test="references!=''">
732
                          <xsl:variable name="ref_id2" select="references"/>
733
                          <xsl:variable name="references2" select="$ids[@id=$ref_id2]" />
734
                          <xsl:for-each select="$references2">
735
                             <xsl:call-template name="choosephysical"/>
736
                          </xsl:for-each>
737
                       </xsl:when>
738
                       <xsl:otherwise>
739
                           <xsl:call-template name="choosephysical"/>
740
                       </xsl:otherwise>
741
                     </xsl:choose>
742
                  </xsl:if>
743
                </xsl:for-each>
744
              </xsl:if>
745
              <xsl:if test="$entitytype='storedProcedure'">
746
                <xsl:for-each select="storedProcedure">
747
                  <xsl:if test="position()=$entityindex">
748
                      <xsl:choose>
749
                       <xsl:when test="references!=''">
750
                          <xsl:variable name="ref_id2" select="references"/>
751
                          <xsl:variable name="references2" select="$ids[@id=$ref_id2]" />
752
                          <xsl:for-each select="$references2">
753
                             <xsl:call-template name="choosephysical"/>
754
                          </xsl:for-each>
755
                       </xsl:when>
756
                       <xsl:otherwise>
757
                           <xsl:call-template name="choosephysical"/>
758
                       </xsl:otherwise>
759
                     </xsl:choose>
760
                  </xsl:if>
761
                </xsl:for-each>
762
              </xsl:if>
763
              <xsl:if test="$entitytype='view'">
764
                <xsl:for-each select="view">
765
                  <xsl:if test="position()=$entityindex">
766
                      <xsl:choose>
767
                       <xsl:when test="references!=''">
768
                          <xsl:variable name="ref_id2" select="references"/>
769
                          <xsl:variable name="references2" select="$ids[@id=$ref_id2]" />
770
                          <xsl:for-each select="$references2">
771
                             <xsl:call-template name="choosephysical"/>
772
                          </xsl:for-each>
773
                       </xsl:when>
774
                       <xsl:otherwise>
775
                           <xsl:call-template name="choosephysical"/>
776
                       </xsl:otherwise>
777
                     </xsl:choose>
778
                  </xsl:if>
779
                </xsl:for-each>
780
              </xsl:if>
781
              <xsl:if test="$entitytype='otherEntity'">
782
                <xsl:for-each select="otherEntity">
783
                  <xsl:if test="position()=$entityindex">
784
                      <xsl:choose>
785
                       <xsl:when test="references!=''">
786
                          <xsl:variable name="ref_id2" select="references"/>
787
                          <xsl:variable name="references2" select="$ids[@id=$ref_id2]" />
788
                          <xsl:for-each select="$references2">
789
                             <xsl:call-template name="choosephysical"/>
790
                          </xsl:for-each>
791
                       </xsl:when>
792
                       <xsl:otherwise>
793
                           <xsl:call-template name="choosephysical"/>
794
                       </xsl:otherwise>
795
                     </xsl:choose>
796
                  </xsl:if>
797
                </xsl:for-each>
798
              </xsl:if>
709 799
            </xsl:if>
710 800
          </td>
711 801
      </tr>  
......
758 848
                     Citation part
759 849
       ********************************************************-->
760 850
   <xsl:template name="emlcitation">
761
       
851
     <xsl:choose>
852
       <xsl:when test="$displaymodule='inlinedata'">
853
          <xsl:call-template name="emlinlinedata"/>
854
       </xsl:when>
855
       <xsl:otherwise>  
762 856
        <table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
763 857
        <tr>
764 858
          <td width="100%" colspan="2">
......
779 873
           </xsl:call-template>
780 874
          </td>
781 875
        </tr>
782
     </table>
876
      </table>
877
     </xsl:otherwise>
878
    </xsl:choose>
783 879
   </xsl:template>
784 880
   
785 881
   
......
789 885
       ********************************************************-->
790 886
   
791 887
   <xsl:template name="emlsoftware">
792
     <table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
793
        <tr>
794
          <td width="100%" colspan="2">
888
     <xsl:choose>
889
       <xsl:when test="$displaymodule='inlinedata'">
890
          <xsl:call-template name="emlinlinedata"/>
891
       </xsl:when>
892
       <xsl:otherwise>
893
          <table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
894
          <tr>
895
            <td width="100%" colspan="2">
795 896
             <right>
796 897
               <h3>Software Description</h3>
797 898
             </right>
798
          </td>
799
        </tr>
800
        <xsl:call-template name="identifier">
899
           </td>
900
          </tr>
901
          <xsl:call-template name="identifier">
801 902
              <xsl:with-param name="packageID" select="../@packageId"/>
802 903
              <xsl:with-param name="system" select="../@system"/>
803
        </xsl:call-template>
804
         <tr>
805
          <td width="100%" colspan="2">
904
          </xsl:call-template>
905
          <tr>
906
           <td width="100%" colspan="2">
806 907
            <xsl:call-template name="software">
807 908
               <xsl:with-param name="softwarefirstColStyle" select="$firstColStyle"/>
808 909
               <xsl:with-param name="softwaresubHeaderStyle" select="$subHeaderStyle"/>
809 910
           </xsl:call-template>
810
          </td>
811
        </tr>
812
     </table>
911
           </td>
912
         </tr>
913
       </table>
914
      </xsl:otherwise>
915
     </xsl:choose>
813 916
   </xsl:template>
814 917
   
815 918
     
......
818 921
       ********************************************************-->
819 922
   
820 923
   <xsl:template name="emlprotocol">
821
      <table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
822
        <tr>
924
    <xsl:choose>
925
       <xsl:when test="$displaymodule='inlinedata'">
926
          <xsl:call-template name="emlinlinedata"/>
927
       </xsl:when>
928
       <xsl:otherwise>
929
        <table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
930
         <tr>
823 931
          <td width="100%" colspan="2">
824 932
             <right>
825 933
               <h3>Protocal Description</h3>
826 934
             </right>
827 935
          </td>
828
        </tr>
829
        <xsl:call-template name="identifier">
936
         </tr>
937
         <xsl:call-template name="identifier">
830 938
              <xsl:with-param name="packageID" select="../@packageId"/>
831 939
              <xsl:with-param name="system" select="../@system"/>
832
        </xsl:call-template>
833
       <tr>
834
       <td width="100%" colspan="2">
940
         </xsl:call-template>
941
         <tr>
942
          <td width="100%" colspan="2">
835 943
            <xsl:call-template name="protocol">
836 944
               <xsl:with-param name="protocolfirstColStyle" select="$firstColStyle"/>
837 945
               <xsl:with-param name="protocolsubHeaderStyle" select="$subHeaderStyle"/>
838 946
           </xsl:call-template>
839 947
          </td>
840
        </tr>
841
     </table>
948
         </tr>
949
       </table>
950
      </xsl:otherwise>
951
    </xsl:choose>
842 952
   </xsl:template>
843 953
   
844 954
      <!--********************************************************

Also available in: Unified diff