VRA Schema
This should cover W3C XML Schema, Relax NG and DTD related problems.
-
- Posts: 1
- Joined: Tue Mar 21, 2023 9:52 pm
VRA Schema
So I am working on validating VRA schema in XML. My document is well formed but I keep getting the following error "E [Xerces] cannot find the declaration of element 'vra'". I have been getting the same error for the last three days. Can anyone help?
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<vra xmlns="https://www.vraweb.org/vracore4.htm"
xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://www.vraweb.org/vracore4.htm https://www.loc.gov/standards/vracore/vra-strict.xsd">
<work id="w04002402" refid="500308853" source="Seattle Asian Art Museum"></work>
<agentSet>
<display>Tani Buncho (Japanese Painter, 1763-1840</display>
<agent>
<name type="personal" vocab="ULAN" refid="500121188">Tani, Bunco</name>
<dates type="life">
<earliestDate>1763</earliestDate>
<latestDate>1840</latestDate>
</dates>
<culture>Japanese</culture>
<role vocab="AAT" refid="300025136"> painter </role>
</agent>
</agentSet>
<dateSet>
<display>1828</display>
<date type="creation">
<earliestDate>1828</earliestDate>
<latestDate>1828</latestDate>
</date>
</dateSet>
<descriptionSet>
<display>This hanging scroll depicts eight men drinking wine and enjoying various amusements,
as described in the poem "Eight Immortals of the Wine Cup" by Chinese poet Du Fu (712-770).
One of the men in the painted is another famed Chinese poet Li Bai</display>
<description>This hanging scroll depicts eight men drinking wine and enjoying various amusements,
as described in the poem "Eight Immortals of the Wine Cup" by Chinese poet Du Fu (712-770).
One of the men in the painted is another famed Chinese poet Li Bai</description>
</descriptionSet>
<locationSet>
<display>Asian Art Museum (Seattle)w_04002402</display>
<location type="repository">
<name type = "corporate">Asian Art Museum</name>
<name type = "geographic" vocab = "TNG" refid = "7007920">Washington</name>
<name type = "geographic" vocab = "TNG" refid = "7014494">Seattle</name>
<name type = "geographic" vocab = "TNG" refid = "7012149">United States</name>
</location>
</locationSet>
<materialSet>
<display>hanging scroll on silk</display>
<material type="medium" vocab="AAT" refid="300015012">ink</material>
<material type="medium" vocab="AAT" refid="300264870">color</material>
<material type="medium" vocab="AAT" refid="300243428">silk (textile)</material>
</materialSet>
<measurementsSet>
<display>52 3/8 x 27 13/16 in (133 x 70.7 cm)</display>
<measurements type="height" unit="in" extent="overall">52 3/8</measurements>
<measurements type="width" unit="in" extent="overall">27 13/16</measurements>
<measurements type="height" unit="cm" extent="overall">133</measurements>
<measurements type="width" unit="cm" extent="overall">70.7</measurements>
</measurementsSet>
<relationSet>
<relation type="imageIs" refid="i_04002402-6" vocab="AAT" source="Seattle Asian Art Museum"></relation>
<relation type="imageIs" refid="i_04002402-6" href="http://art.seattleartmuseum.org/objects/65444/">Full view</relation>
</relationSet>
<rightsSet>
<display>Copyright (c)2018 Asian Art Museum, Seattle</display>
<rights>
<text>The Image Rights and Reproductions Department at the Seattle Art Museum provides images for educational presentation, professional research, print and electronic publications, and media projects. All requests for images MUST be made in writing. Permission for such use is granted at the sole discretion of the Seattle Art Museum. Please contact us for information concerning permissions, or to request digital photography of works in the SAM collection.</text>
</rights>
</rightsSet>
<sourceSet>
<display>Seattle Asian Art Museum</display>
<source>
<name type="electronic">Seattle Asian Art Museum</name>
<refid type="URI" dataDate="2018">http://art.seattleartmuseum.org/objects/65444/</refid>
</source>
</sourceSet>
<stylePeriodSet>
<display>The Eight Immortals of the Wine Cup</display>
<stylePeriod vocab="AAT" refid="300106643">Edo (Japanese Period</stylePeriod>
</stylePeriodSet>
<subjectSet>
<display>Inchu hassen. The Eight Immortals of the Wine Cup.</display>
<subject>
<term type="personalName" vocab="LCSH" refid="00001908">Li, Bai, 701-762</term>
<term type="personalName" vocab="LCSH" refid="n50013327">Du, Fu, 712-770</term>
<term type="descriptiveTopic" vocab="AAT" refid="300033666">Scroll paintings (visual works)</term>
<term type="descriptiveTopic" vocab="LCSH" refid="sh85096760">Painting, Japanese</term>
<term type="descriptiveTopic" vocab="LCSH" refid="sh85024357">Chinese poetry--Tang dynasty, 618-907</term>
</subject>
</subjectSet>
<titleSet>
<display>Inchu hassen</display>
<title type="translated">The Eight Immortals of the Wine Cup</title>
</titleSet>
</vra>
-
- Posts: 9424
- Joined: Fri Jul 09, 2004 5:18 pm
Re: VRA Schema
Hi,
I do not know anything about the XML standard you are using but your XML document seems to refer to an XML Schema located in "https://www.loc.gov/standards/vracore/vra-strict.xsd".
I used Oxygen's main menu File->"Open URL" to open the referenced XML Schema. It's target namespace is defined as "http://www.vraweb.org/vracore4.htm" but your XML document defines it as "https://www.vraweb.org/vracore4.htm" (notice that https instead of http). You must use in the XML document the same namespace as in the associated XML Schema.
I also noticed one extra change which is wrong in the XML document, this:
needs to be replaced with this:
Again probably someone on your side changed "http:" with "https" because they considered these are actual HTTP locations but they are not, they are namespaces and need to remain exactly as they were.
So the root element needs to look exactly like this:
Regards,
Radu
I do not know anything about the XML standard you are using but your XML document seems to refer to an XML Schema located in "https://www.loc.gov/standards/vracore/vra-strict.xsd".
I used Oxygen's main menu File->"Open URL" to open the referenced XML Schema. It's target namespace is defined as "http://www.vraweb.org/vracore4.htm" but your XML document defines it as "https://www.vraweb.org/vracore4.htm" (notice that https instead of http). You must use in the XML document the same namespace as in the associated XML Schema.
I also noticed one extra change which is wrong in the XML document, this:
Code: Select all
xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance"
Code: Select all
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
So the root element needs to look exactly like this:
Code: Select all
<vra xmlns="http://www.vraweb.org/vracore4.htm"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.vraweb.org/vracore4.htm https://www.loc.gov/standards/vracore/vra-strict.xsd">
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service