XSD for Oxygen Author applet

This should cover W3C XML Schema, Relax NG and DTD related problems.
maxim.kovalev
Posts: 35

XSD for Oxygen Author applet

Fri Nov 11, 2011 10:48 am

Hi all!
I'm using Oxygen Author applet. I have a directory XSD, how can I connect it to the applet?
Now when you open an xml:

<learningOverview id="u1_l1_lo1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:sap:names:tc:dita:spec:learning:xsd:mmcpLearningOverview.xsd:1.0">
...
</learningOverview>

I get neobarbotanye data in the applet.

sorry for my english =)
maxim.kovalev
Posts: 35

Re: XSD for Oxygen Author applet

Fri Nov 11, 2011 3:28 pm

maxim.kovalev wrote:Hi all!
I'm using Oxygen Author applet. I have a directory XSD, how can I connect it to the applet?
Now when you open an xml:

<learningOverview id="u1_l1_lo1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:sap:names:tc:dita:spec:learning:xsd:mmcpLearningOverview.xsd:1.0">
...
</learningOverview>

I get untreated data in the applet.

sorry for my english =)

very bad English = ))))
Radu
Posts: 5867

Re: XSD for Oxygen Author applet

Fri Nov 11, 2011 3:52 pm

Hi Maxim,

In the Author Component Sample Project you started with there is a resources directory which contains a frameworks.zip.jar.
By default that file contains a JAR which wraps a ZIP file which contains part of the dita framework which can be usually found in a standalone Oxygen's installation:

OXYGEN_INSTALL_DIR/frameworks/dita

So if you unpack the archive and in the dita\DITA-OT\catalog-dita.xml catalog file you add your additional entries + install the additional XML Schemas in the same directory structure then zip the directory and JAR it to obtain the original archive structure then is you re-build the applet it should resolve the noNamespaceSchemaLocation through the catalog bundled with the framework.

Another alternative is to make modifications to the dita framework from an Oxygen standalone installation, then zip and jar the entire "dita" framework and copy it to the applet "resources" directory.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
maxim.kovalev
Posts: 35

Re: XSD for Oxygen Author applet

Fri Nov 11, 2011 5:21 pm

Radu wrote:Hi Maxim,

In the Author Component Sample Project you started with there is a resources directory which contains a frameworks.zip.jar.
By default that file contains a JAR which wraps a ZIP file which contains part of the dita framework which can be usually found in a standalone Oxygen's installation:

OXYGEN_INSTALL_DIR/frameworks/dita

So if you unpack the archive and in the dita\DITA-OT\catalog-dita.xml catalog file you add your additional entries + install the additional XML Schemas in the same directory structure then zip the directory and JAR it to obtain the original archive structure then is you re-build the applet it should resolve the noNamespaceSchemaLocation through the catalog bundled with the framework.

Another alternative is to make modifications to the dita framework from an Oxygen standalone installation, then zip and jar the entire "dita" framework and copy it to the applet "resources" directory.

Regards,
Radu

Hi
The fact is that the frameworks/dita I lay in frameworks.zip.jar
When I changed frameworks.zip.jar when you run the applet I get an error - "ould not verify signing in resource: frameworks.zip.jar" (I'm using the demo version oxygen and a signature for 30 days)
Radu
Posts: 5867

Re: XSD for Oxygen Author applet

Fri Nov 11, 2011 5:35 pm

Hi Maxim,

You have to re-run the "ant" on the Author Component Sample Project which signs the jars (including the frameworks.zip.jar).

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

Return to “XML Schemas”

Who is online

Users browsing this forum: No registered users and 0 guests