Changeset 816


Ignore:
Timestamp:
10/26/10 14:34:07 (14 years ago)
Author:
dietuyt
Message:

Re-enabled support for the Multilinguality attribute

File:
1 edited

Legend:

Unmodified
Added
Removed
  • metadata/trunk/toolkit/xslt/comp2schema-v2/comp2schema.xsl

    r810 r816  
    5858
    5959            <!-- import this for the use of the xml:lang attribute -->
    60             <!--<xs:import namespace="http://www.w3.org/XML/1998/namespace"
     60            <xs:import namespace="http://www.w3.org/XML/1998/namespace"
    6161                schemaLocation="http://www.w3.org/2001/xml.xsd"/>
    62 -->
     62
    6363
    6464            <!--  first create complex types for valueschemes (not inline) -->
     
    254254                        <xsl:apply-templates select="./AttributeList/Attribute"/>
    255255                        <!-- temporarily disabled -->
    256                         <!--<xsl:if test="./@Multilingual">
     256                        <xsl:if test="./@Multilingual">
    257257                            <xs:attribute ref="xml:lang"/>
    258                         </xsl:if>-->
     258                        </xsl:if>
    259259                    </xs:extension>
    260260                </xs:simpleContent>
     
    361361
    362362    <!-- if the multilingual attribute is there and the field has the type string, allow multuple occurrences -->
    363     <!--<xsl:template match="@Multilingual[../@ValueScheme='string'][. = 'true'] ">-->
     363    <xsl:template match="@Multilingual[../@ValueScheme='string'][. = 'true'] ">
    364364        <!-- temporarily disabled until Arbil can deal with the <xs:import> to cope with xml:lang -->
    365         <!--<xsl:attribute name="maxOccurs">
     365        <xsl:attribute name="maxOccurs">
    366366            <xsl:value-of>unbounded</xsl:value-of>
    367         </xsl:attribute>-->
    368     <!--</xsl:template>-->
     367        </xsl:attribute>
     368    </xsl:template>
    369369
    370370    <xsl:template match="@Multilingual">
     
    372372    </xsl:template>
    373373
    374     <!--<xsl:template match="@CardinalityMax[../@Multilingual='true'][../@ValueScheme='string']">-->
     374    <xsl:template match="@CardinalityMax[../@Multilingual='true'][../@ValueScheme='string']">
    375375        <!-- do nothing - maxOccurs should be set by Multilingual rule for strings -->
    376     <!--</xsl:template>-->
     376    </xsl:template>
    377377
    378378    <!-- end multilinguality part -->
Note: See TracChangeset for help on using the changeset viewer.