Page 1 of 1

XSD for Oxygen Author applet

Posted: Fri Nov 11, 2011 10:48 am
by maxim.kovalev
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 =)

Re: XSD for Oxygen Author applet

Posted: Fri Nov 11, 2011 3:28 pm
by maxim.kovalev
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 = ))))

Re: XSD for Oxygen Author applet

Posted: Fri Nov 11, 2011 3:52 pm
by Radu
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

Re: XSD for Oxygen Author applet

Posted: Fri Nov 11, 2011 5:21 pm
by maxim.kovalev
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)

Re: XSD for Oxygen Author applet

Posted: Fri Nov 11, 2011 5:35 pm
by Radu
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