1
この質問はthatに関連しています。しかし、やや広がった。 、複雑な混合要素のtext()ノードのパターンを定義する
<xs:element name="field">
<xs:complexType mixed="true">
<xs:sequence>
<xs:element ref="subfield" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
<xs:attribute name="name" type="xs:string" />
</xs:complexType>
</xs:element>
今、追加の要件がfield
要素のtext()
ノードはいくつかのパターンによって規制されるべきであるということである。
<field name="test_field_0">
Some text that is texty text.
<subfield>Some text.</subfield>
</field>
それのためのスキームrelated questionから:
は、我々は、XMLを持っていると仮定しましょうたとえば、次のようになります。\p{Lu}(\p{Ll}\p{P}\p{Z})+
これは悲しいことですが、ありがとうございます。 – skfd