Try to separate process fragments where data flow branches based on the business item from process fragments where data flow branches based on an item attribute to avoid the need to mix both forms.
在某些流程片段中,数据流会根据来自流程片段的业务项进行分支,而在另一些流程片段中,则会根据某个项目属性进行分支,将这些流程片段分离,可以避免将两种形式混合起来。
In this case I applied a mix of the Principle of core content and the Principle of readability to the decision to put the value in content and the units in an attribute.
在这个例子中,我结合使用了 核心内容原则 和 可读性原则,决定把数量作为元素内容而把度量单位放在属性中。
However, in many situation you probably don't have a mix of numeric and non-numeric values in a given element or attribute of your documents.
不过,在很多情况下您的文档中的特定元素和属性都不可能同时包含数字和非数字值。
应用推荐