我有一个根插入标记,一系列Inserts标记,每个标记都有一个"name"属性.
我无法获得在线验证器,以发现有重复的"名称"值.
我们一直在努力奋斗......天.谢谢你找到答案.
XSD:
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.osames.org/osamesorm"
targetNamespace="http://www.osames.org/osamesorm" elementFormDefault="qualified">
<xs:element name="Inserts">
<xs:complexType>
<xs:sequence>
<xs:element name="Insert" maxOccurs="unbounded">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="name" type="xs:string" use="required"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:unique name="unique-isbn">
<xs:selector xpath="Inserts/Insert"/>
<xs:field xpath="@name"/>
</xs:unique>
</xs:element>
</xs:schema>
Run Code Online (Sandbox Code Playgroud)
XML:
<?xml version="1.0" encoding="UTF-8"?>
<Inserts xmlns="http://www.osames.org/osamesorm"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.osames.org/osamesorm ./xml_schemas/verysimple.xsd">
<Insert name="BaseInsert">INSERT INTO {0} ({1}) values ({2});</Insert>
<Insert name="BaseInsert">INSERT INTO {0} ({1}) values ({2});</Insert>
</Inserts>
Run Code Online (Sandbox Code Playgroud) 根据文档(https://cli.vuejs.org/guide/build-targets.html#library),我不清楚如何集成 babel 以使构建的 lib 对 IE11 友好......我必须从 Vue 组件制作一个 npm 包。
我在 package.json 中的 npm 脚本是:
vue-cli-service build --target lib src/MyComponent.vue
我在 package.json 中放置了一个正确的“浏览器列表”。
看来我必须使用带有预设的 babel.config.js。
不确定要安装什么作为开发依赖项以及要配置什么...
任何人都有一个工作示例库或一些指导,好吗?