DITA for Print - E [Xerces] Attribute "xmlns:dita" must be d

Oxygen general issues.
straygoat
Posts: 4
Joined: Tue Mar 25, 2014 11:53 am

DITA for Print - E [Xerces] Attribute "xmlns:dita" must be d

Post by straygoat »

Hello all

I'm new to oXygen and DITA and I am trying to work my way through the exercises in the book DITA for Print by Leigh W White. I have run into a problem and can't figure out what to do. Hopefully someone on here can help.

I have a build_pdf-ug_template file that contains:

Code: Select all


<project name="com.straygoat.pdf-ug" default="dita2pdf-ug">
<property name="transtype" value="pdf-ug" />
<target name="dita2pdf-ug"
xmlns:dita="http://dita-ot.sourceforge.net"
dita:extension="depends org.dita.dost.platform.InsertDependsAction">
<property name="customization.dir"
location="${dita.plugin.com.straygoat.pdf-ug.dir}/cfg"/>
<antcall target="dita2pdf2" />
</target>

</project>
Where straygoat.pdf-ug is the name of the PDF plug in I am making. I get the error:

Code: Select all


E [Xerces] Attribute "xmlns:dita" must be declared for element type "target".
which I think means the target property doesn't understand the xmlns:dita definition, but I don't know why. It is preventing the integration from running.

Can anyone explain what is going on and what I should do to resolve the situation? I took the week off work to complete the exercises and am stuck this early on!
Radu
Posts: 9445
Joined: Fri Jul 09, 2004 5:18 pm

Re: DITA for Print - E [Xerces] Attribute "xmlns:dita" must

Post by Radu »

Hi Craig,

I also answered you on the LinkedIn post.
Please try posting the entire console output received in the Oxygen console view after the DITA OT integrator task is run.
You can also contact us directly at "support@oxygenxml.com", maybe send us your plugin's files and we'll try to help.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
straygoat
Posts: 4
Joined: Tue Mar 25, 2014 11:53 am

Re: DITA for Print - E [Xerces] Attribute "xmlns:dita" must

Post by straygoat »

Thanks Radu. I haven't been notified by LinkedIn yet...unless I forgot to choose to be notified :(

When I run the integrator, there doesn't appear to be a problem in the console:

Executing:
"c:\program files (x86)\oxygen xml editor 15\jre/bin/java" -Xmx256m -classpath "C:\Program Files (x86)\Oxygen XML Editor 15/tools/ant/lib/ant-launcher.jar" "-Dant.home=C:\Program Files (x86)\Oxygen XML Editor 15/tools/ant" org.apache.tools.ant.launch.Launcher -f "C:/Program Files (x86)/Oxygen XML Editor 15/frameworks/dita/DITA-OT/integrator.xml" "-Dwebhelp.trial.license=no" "-Dstrict=true"

Buildfile: C:\Program Files (x86)\Oxygen XML Editor 15\frameworks\dita\DITA-OT\integrator.xml

strict:

integrate:

BUILD SUCCESSFUL
Total time: 0 seconds

The process finished with exit code: 0


It is just the error on the template file itself that has me baffled.
straygoat
Posts: 4
Joined: Tue Mar 25, 2014 11:53 am

Re: DITA for Print - E [Xerces] Attribute "xmlns:dita" must

Post by straygoat »

I have sent you my plug in files via email.
Radu
Posts: 9445
Joined: Fri Jul 09, 2004 5:18 pm

Re: DITA for Print - E [Xerces] Attribute "xmlns:dita" must

Post by Radu »

Hi Craig,

Thanks for sending the samples, your plugin looks fine.
After you run the integration in Oxygen, open a DITA Map in the DITA Maps Manager view, create a new transformation scenario of type "PDF" in it and in the Parameters tab add a new parameter called transtype with the value pdf-ug which is the transtype contributed by your plugin.

The fact that you have validation problems reported by Oxygen on the build_pdf-ug_template.xml build file is caused by these extra attribute declarations:

Code: Select all

xmlns:dita="http://dita-ot.sourceforge.net" 
dita:extension="depends org.dita.dost.platform.InsertDependsAction"
which probably do not make sense in your case and can probably be removed.
Anyway, the best way to check if the plugin works is to transform a DITA Map to PDF using it.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
straygoat
Posts: 4
Joined: Tue Mar 25, 2014 11:53 am

Re: DITA for Print - E [Xerces] Attribute "xmlns:dita" must

Post by straygoat »

Thank you very much, Radu. Making those changes worked (it worked with the code you suggested to remove, although still with the error. It also worked without the code, so I have removed it.).
Post Reply