Created
April 20, 2021 20:04
-
-
Save Linkbit-gif/e7bc92fe5ca8acd08471bf5fc8a30bb3 to your computer and use it in GitHub Desktop.
Knowledge
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<module external.linked.project.id="KhufusCloud-1.0.0" external.linked.project.path="$MODULE_DIR$/../.." external.root.project.path="$MODULE_DIR$/../.." external.system.id="GRADLE" type="JAVA_MODULE" version="4"> | |
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_5" inherit-compiler-output="true"> | |
<exclude-output /> | |
<content url="file://$MODULE_DIR$/../.." /> | |
<orderEntry type="jdk" jdkName="1.6" jdkType="JavaSDK" /> | |
<orderEntry type="sourceFolder" forTests="false" /> | |
<head> | |
<title>the title<title> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | |
<meta name="fixed_1" content="variable"/> | |
<meta name="fixed_2" content="variable"/> | |
<meta name="fixed_3" content="variable"/> | |
<meta name="fixed_4" content="fixed_5"/> | |
</head> | |
Here the first <meta> has two fixed value attributes, then the | |
following three have fixed name attributes (which are all different | |
fixed values) but any content attributes. The last meta contains two | |
fixed value attributes, like the first. | |
Is this possible to model with XML Schema? Currently I have: | |
<xs:element name="head"> | |
<xs:complexType> | |
<xs:sequence> | |
<xs:element ref="title"/> | |
<xs:element name="meta"> | |
<xs:complexType> | |
<xs:attribute name="http-equiv" type="xs:string" | |
fixed="Content-Type"/> | |
<xs:attribute name="content" type="xs:string" | |
fixed="text/html; charset=utf-8"/> | |
</xs:complexType> | |
</xs:element> | |
<xs:element name="meta"> | |
<xs:complexType> | |
<xs:attribute name="name" type="xs:string" fixed="fixed_1"/> | |
<xs:attribute name="content" type="xs:string"/> | |
</xs:complexType> | |
</xs:element> | |
<xs:element name="meta"> | |
<xs:complexType> | |
<xs:attribute name="name" type="xs:string" fixed="fixed_2"/> | |
<xs:attribute name="content" type="xs:string"/> | |
</xs:complexType> | |
</xs:element> | |
.... | |
<xs:element name="meta"> | |
<xs:complexType> | |
<xs:attribute name="name" type="xs:string" fixed="fixed_4"/> | |
<xs:attribute name="content" type="xs:string" fixed="fixed_5"/> | |
</xs:complexType> | |
</xs:element> | |
</component> | |
</module> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment