OASIS XML Localisation Interchange File Format (XLIFF) TC

 View Only

RE: [xliff][follow-up] FW: Degrees of constraint

  • 1.  RE: [xliff][follow-up] FW: Degrees of constraint

    Posted 07-27-2004 17:49
     MHonArc v2.5.0b2 -->
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    

    xliff message

    [Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


    Subject: RE: [xliff][follow-up] FW: Degrees of constraint


    Hi Mat,
    
    You wrote:
    > Don't know if this is workable though
    > Any Thoughts?
    
    Wow.  I like your idea.  I think it's quite workable.
    
    We'd just need to do something along these lines;
    
    Change this:
    
    	<xsd:complexType name="ElemType_target" mixed="true">
    		<xsd:group ref="xlf:ElemGroup_TextContent" minOccurs="0"
    maxOccurs="unbounded"/>
    		<xsd:attribute name="state" type="xlf:AttrType_state"
    use="optional"/>
    		<xsd:attribute name="state-qualifier"
    type="xlf:AttrType_state-qualifier" 
    				   use="optional"/>
    		<xsd:attribute name="phase-name" type="xsd:NMTOKEN"
    use="optional"/>
    		<xsd:attribute ref="xml:lang" use="optional"/>
    		<xsd:attribute name="ts" type="xsd:string" use="optional"/>
    		<xsd:attribute name="restype" type="xlf:AttrType_restype"
    use="optional"/>
    		<xsd:attribute name="resname" type="xsd:string"
    use="optional"/>
    		<xsd:attribute name="coord" type="xlf:AttrType_Coordinates"
    use="optional"/>
    		<xsd:attribute name="font" type="xsd:string"
    use="optional"/>
    		<xsd:attribute name="css-style" type="xsd:string"
    use="optional"/>
    		<xsd:attribute name="style" type="xsd:NMTOKEN"
    use="optional"/>
    		<xsd:attribute name="exstyle" type="xsd:NMTOKEN"
    use="optional"/>
    		<xsd:anyAttribute namespace="##any" processContents="lax"/>
    	</xsd:complexType>
    
    to this:
    
    	<xsd:complexType name="ElemType_target" mixed="true">
    	   <xsd:choice>
    		<xsd:group ref="xlf:ElemGroup_TextContent" minOccurs="0"
    maxOccurs="unbounded"/>
    <!-- add Mat's new element -->
    		<xsd:element ref="xlf:Extend" minOccurs="0"
    maxOccurs="unbounded"/>
    	   </xsd:choice>
    		<xsd:attribute name="state" type="xlf:AttrType_state"
    use="optional"/>
    		<xsd:attribute name="state-qualifier"
    type="xlf:AttrType_state-qualifier" 
    				   use="optional"/>
    		<xsd:attribute name="phase-name" type="xsd:NMTOKEN"
    use="optional"/>
    		<xsd:attribute ref="xml:lang" use="optional"/>
    		<xsd:attribute name="ts" type="xsd:string" use="optional"/>
    		<xsd:attribute name="restype" type="xlf:AttrType_restype"
    use="optional"/>
    		<xsd:attribute name="resname" type="xsd:string"
    use="optional"/>
    		<xsd:attribute name="coord" type="xlf:AttrType_Coordinates"
    use="optional"/>
    		<xsd:attribute name="font" type="xsd:string"
    use="optional"/>
    		<xsd:attribute name="css-style" type="xsd:string"
    use="optional"/>
    		<xsd:attribute name="style" type="xsd:NMTOKEN"
    use="optional"/>
    		<xsd:attribute name="exstyle" type="xsd:NMTOKEN"
    use="optional"/>
    		<xsd:anyAttribute namespace="##any" processContents="lax"/>
    	</xsd:complexType>
    
    And add this:
    
    	<xsd:element name="Extend">
    <!-- define Mat's new element -->
    		<xsd:complexType>
    			<xsd:sequence maxOccurs="unbounded">
    <!-- list of valid namespaces could be added here, space delimited -->
    				<xsd:any
    namespace="http://www.w3.org/1999/xhtml";
    				         processContents="lax" />
    			</xsd:sequence>
    			<xsd:attribute name="state"
    type="xlf:AttrType_state" use="optional"/>
    		</xsd:complexType>
    	</xsd:element>
    
    And Bob's your uncle.
    
    I think this is a nice solution.  We could close the list of namespaces in
    <Extend's content model to whatever set we think is reasonable.  And we
    could still fine-tune the degree of constraint with the "processContents"
    attribute.