Changeset 1742 for metadata


Ignore:
Timestamp:
01/31/12 14:51:24 (12 years ago)
Author:
twagoo
Message:

Fixed the following issue through an update of the XSLT that generates profile schemas from the component specification:

"The XSLT adds an xml:lang attribute to the element if the 'Multilingual'
attribute is present in the component specification (regardless of its
value). However, the Component Registry has been outputting
'Multilingual="false"' for non-multilingual elements for a long time.
Therefore, a lot of profiles have this attribute all over the place.
That is not really a bad thing, it is probably good to have this
explicit in the specification. Except now all those elements do take an
optional language attribute, which is not right."

File:
1 edited

Legend:

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

    r1587 r1742  
    261261                        <xsl:apply-templates select="./AttributeList/Attribute"/>
    262262                        <!-- temporarily disabled -->
    263                         <xsl:if test="./@Multilingual">
    264                             <xs:attribute ref="xml:lang"/>
     263                        <xsl:if test="./@Multilingual=true">
     264                            <xs:attribute ref="xml:lang" />
    265265                        </xsl:if>
    266266                    </xs:extension>
Note: See TracChangeset for help on using the changeset viewer.