Date   

Increasing Java memory for dita command line

Dan Vint
 

I'm using this

../dita-ot/dita-ot-3.4.1/bin/dita -d -v -Xmx2048m\
--input=/Users/danvint/pubsrc/doc-tools/sample-content/MD/PF.ditamap \
--format=ping-training-pdf \
--output=output -t=temp

I'm getting

java.lang.IllegalArgumentException: -Xmx2048m
at org.dita.dost.invoker.ArgumentParser.processArgs(ArgumentParser.java:323)
at org.dita.dost.invoker.Main.processArgs(Main.java:265)
at org.dita.dost.invoker.Main.startAnt(Main.java:158)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:284)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:101)

The DITA OT documentation talks about adding memory but it modifies the ant files. Is there a correct way to pass this at the command line?


Re: Proper Universal Attribute Specialization Using XSDs #specialization #samples

 

Hello Eliot,

I mean specializing @props to create a universal attribute.

-Tony



From: ekimber@... <ekimber@...>
Sent: Friday, July 24, 2020, 11:20 AM
To: main@dita-users.groups.io
Subject: Re: [dita-users] Proper Universal Attribute Specialization Using XSDs #specialization #samples

It's not clear what you mean by universal attribute specialization: the only attributes you can specialize in DITA are @base and @props. Cheers, Eliot -- Eliot Kimber http://contrext.com On 7/23/20, 11:30 PM, "Anthony J. (Tony) Bufort" wrote: Hello All, I am clear on attribute specialization using props in XSDs generally speaking, but I am unsure as to what to do in the case of UNIVERSAL attributes. I implemented a universal attribute in the following manner: commonElementGroup.xsd - Added reference to the definition in my attribute file to Is that all there is to it? Or am I missing something? What is the proper DITA way to do this? Is there a sample of this someone can point me toward, or perhaps illustrate for me? TIA, -Tony Bufort AJB Consulting


Re: Proper Universal Attribute Specialization Using XSDs #specialization #samples

ekimber@contrext.com
 

It's not clear what you mean by universal attribute specialization: the only attributes you can specialize in DITA are @base and @props.

Cheers,

Eliot

--
Eliot Kimber
http://contrext.com


On 7/23/20, 11:30 PM, "Anthony J. (Tony) Bufort" <main@dita-users.groups.io on behalf of ajbufort@ajbconsulting.us> wrote:

Hello All,

I am clear on attribute specialization using props in XSDs generally speaking, but I am unsure as to what to do in the case of UNIVERSAL attributes.

I implemented a universal attribute in the following manner:

commonElementGroup.xsd - Added reference to the definition in my attribute file to <xs:attributeGroup name="props-attribute-extensions"/>

Is that all there is to it? Or am I missing something?

What is the proper DITA way to do this? Is there a sample of this someone can point me toward, or perhaps illustrate for me?

TIA,

-Tony Bufort
AJB Consulting


Proper Universal Attribute Specialization Using XSDs #specialization #samples

 

Hello All,

I am clear on attribute specialization using props in XSDs generally speaking, but I am unsure as to what to do in the case of UNIVERSAL attributes.

I implemented a universal attribute in the following manner:

commonElementGroup.xsd - Added reference to the definition in my attribute file to <xs:attributeGroup name="props-attribute-extensions"/>

Is that all there is to it?  Or am I missing something?

What is the proper DITA way to do this?  Is there a sample of this someone can point me toward, or perhaps illustrate for me?

TIA,

-Tony Bufort
AJB Consulting


Known Branch-Filtering Woes #branch-filtering #DITA-OT #Oxygen

 

Hello All,

I have a DITA project that I have successfully published to XHTML within oXygen 22.1 using the supplied DITA-OT version.

Trouble is, in order to get the publish to be successful, I had to actually comment out the branch-filtering ANT task in the /frameworks/dita/DITA-OT3.x/plugins/org.dita.base/build_preprocess.xml file:


  
<target name="branch-filter">
   
<pipeline taskname="branch-filter" message="Filter branches">
     
<module class="org.dita.dost.module.BranchFilterModule"/>
   
</pipeline>
  </target>


Does anyone have any insights as to what might be provoking a null-pointer exception while running this portion of the pre-process?

I'd give you more info re the NPE, but I don't have any.  All I was able to do is see that the publish dies while running that ANT task.


TIA,

-Tony Bufort
AJB Consulting


Re: Filter on Topics Reused with Keys #branch-filtering #keys

Radu Coravu
 

Hi Ed,

From what I investigated, this looks like a bug to me.

Can you add a new issue on the DITA OT issues list?

https://github.com/dita-ot/dita-ot/issues

attach your samples there, maybe also give some details about the expected behavior.

Regards,

Radu

Radu Coravu
Oxygen XML Editor
On 7/24/20 8:44 AM, schmidt.eduard@... wrote:

Good morning,

I attached a sample project and included output generated via cmd using --format=html5 with dita-ot 3.5.2. I wanted a result completely detached from Oxygen to see whether the problem was with Oxygen or dita-ot, unfortunately, the latter seems to be the case. The attached sample should be more or less identical to the one posted earlier in this thread:
https://dita-users.groups.io/g/main/message/45330

Regards,
Ed



  


Re: Filter on Topics Reused with Keys #branch-filtering #keys

@l3arn4life
 

Good morning,

I attached a sample project and included output generated via cmd using --format=html5 with dita-ot 3.5.2. I wanted a result completely detached from Oxygen to see whether the problem was with Oxygen or dita-ot, unfortunately, the latter seems to be the case. The attached sample should be more or less identical to the one posted earlier in this thread:
https://dita-users.groups.io/g/main/message/45330

Regards,
Ed


Re: Filter on Topics Reused with Keys #branch-filtering #keys

Radu Coravu
 

Hi Ed,

Please attach a small sample project and I will try to take a look at it.

Regards,

Radu

Radu Coravu
Oxygen XML Editor
On 7/23/20 4:08 PM, schmidt.eduard@... wrote:

Hi Radu,

I find no pleasure in reviving this discussion, but due to the its relevance in our current situation I feel compelled to: I revisited the sample project you modified and upon closer inspection made the discovery, that everything went fine for Product A and Product B, but filtering went haywire for Product C. I have no explanation for this, as I see no difference between productA.ditamap, productB.ditamap and productC.ditamap. They all have their ditavals and use keyrefs to point to the same topic. A and B come out fine, C is botched. Any ideas?

Many thanks,
Ed


-- 


Re: Filter on Topics Reused with Keys #branch-filtering #keys

@l3arn4life
 

Hi Radu,

I find no pleasure in reviving this discussion, but due to the its relevance in our current situation I feel compelled to: I revisited the sample project you modified and upon closer inspection made the discovery, that everything went fine for Product A and Product B, but filtering went haywire for Product C. I have no explanation for this, as I see no difference between productA.ditamap, productB.ditamap and productC.ditamap. They all have their ditavals and use keyrefs to point to the same topic. A and B come out fine, C is botched. Any ideas?

Many thanks,
Ed


Re: Relationships on Multiple Axes? #reltable

Larry Kollar
 

I think I would use multiple reltables for this, one for color, one for shape, etc. The rows would be only one column wide, each representing one shape/color/whatever.

Then (using colors as an example), put all red topics in one entry, all green in the next row down, yellow below that. Wrap all the topicrefs in one cell in a topicgroup element, with attribute @collection-type="family"

Any topics that have a common color and shape would be picked up by any reltable. The question is whether they'll be displayed twice.


Re: Bookmap or Pubmap for technical eBooks? #bookmap #Oxygen

John Wills
 

Thanks Elliot. Much appreciated context  as I start my DITA journey.


Re: Bookmap or Pubmap for technical eBooks? #bookmap #Oxygen

ekimber@contrext.com
 

The PubMap map type, part of DITA for Publishers, is not being actively maintained, although it still works fine. But unless there's something you really need from PubMap and BookMap otherwise works for you I'd recommend going with BooMap.

I have for some time now hoped to introduce PubMap into the DITA standard (or a companion OASIS standard) but life has simply not allowed for me (or anyone else who might be interested) to apply the level of effort it would require to bring it up to date with DITA 2.0 and standardize it properly.

I think the fundamental design is sound and I designed it so that it would pretty much work with BookMap-aware processing but I definitely haven't been able to keep the PubMap-specific processing in the D4P code up to date with newer OT versions.

Cheers,

E.
--
Eliot Kimber
http://contrext.com


On 7/21/20, 4:42 PM, "John Wills" <main@dita-users.groups.io on behalf of jw@itessence.com> wrote:

Should I plan to use BookMap or PubMap for new projects to publish technical eBooks? I'm new to DITA and it seems BookMap is actively maintained as part of the spec whereas although DITA for Publishing identified concerns with BookMap for publishing books years ago, it does not look like it is actively maintained.
Is DITA for Publishing (and PubMap) currently deprecated or is it still a good choice and easy to use with Oxygen XML? Thanks for any insight you can provide.


Bookmap or Pubmap for technical eBooks? #bookmap #Oxygen

John Wills
 

Should I plan to use BookMap or PubMap for new projects to publish technical eBooks? I'm new to DITA and it seems BookMap is actively maintained as part of the spec whereas although DITA for Publishing identified concerns with BookMap for publishing books years ago, it does not look like it is actively maintained.
Is DITA for Publishing (and PubMap) currently deprecated or is it still a good choice and easy to use with Oxygen XML? Thanks for any insight you can provide.


Re: Dita Build Successful But No PDF Output Generated #DITA-OT #bookmap #PDF

Leigh White
 

Hi there,

Your ANT file is not *quite* a copy of what's in the book. 🙂 You have the line

<ant antfile="${dita.dir}/plugins/com.try.custpdf/build.xml">

which calls the build file in your plugin. If you've followed the instructions in the second edition of the book (which is meant for DITA OT 2.x), then you do not have a build file in your plugin.

You want to copy the line exactly as it is in the example in the "Create an ANT build file/Reality check" topic, which is:

<ant antfile="${dita.dir}/build.xml">

This calls the main build file in the OT itself, which kicks off a whole pipeline of things that must happen for a successful build.

That said, if you are using this ANT file as-is, then you need to be building a ditamap named WidgetUserGuide.ditamap, which lives at C:\Widget, and you need to be outputting to C:\Widget\output\pdf, and the transtype defined for your custom PDF plugin must be "custpdf." In other words, you have to be exactly matching my example in all respects for this to work.

Also, if you can, I would recommend updating from OT 2.0 to OT 2.5.4. The version you have is an early 2.0 version and likely to include a lot of bugs that have been fixed in later versions. OT 2.5.4 is the last 2.x version and is quite robust and widely used.

Best,
Leigh


Re: Error "java.lang.NoSuchMethodError" #conditional-processing #DITA-OT #branch-filtering #specialization

Radu Coravu
 

Hi Ed,

If you look inside a DITA OT bundled with Oxygen, it has in the "plugins" folder a plugin named "com.oxygenxml.dost.patches". That plugin depends very much on the DITA OT version, if installed in another DITA OT version it will break the publishing. So I think you might have also copied this plugin to the DITA OT 3.5.2 installation, which would explain why the publishing did not work.

We do not yet officially support DITA OT 3.5.2 with our publishing plugins, we have updated them internally but we'll officially support them in Oxygen 23 (November 2020).

My advice to you if you want to use our plugins is to use our DITA OT publishing engine distribution:

https://www.oxygenxml.com/publishing_engine.html

It comes with DITA OT 3.4.2 with all our plugins pre-installed.

About this problem:

https://github.com/dita-ot/dita-ot/issues/3370

it seems to be still opened so for now I do not have a workaround for you.

Regards,
Radu
Radu Coravu
Oxygen XML Editor
On 7/20/20 9:51 AM, schmidt.eduard@... wrote:

Hi Radu,
I think I might have found the culprit: I tried to generate output using DITA-OT 3.5.2. Our customized plugins rely on Oxygen plugins, so I naturally copied Oxygen plugins from their installation directory into the new DITA-OT directory along with our customized plugins. It looks like Oxygen has issues with running a newer DITA-OT than the one it was installed with and somehow that affects seemingly unrelated transformations. Your last response and the mention of DITA-OT 3.4.1 (instead of 3.5.2) made me think, so I downloaded a "naked" 3.4.1, ran a html5-transformation and things turned out mostly fine.
However, the problem described here still persists and I wonder, whether it will be taken care of in the near future or not. Using <topicref keyref="topic" href="path/topic.dita"/> kind of defeats the purpose of using keys in the first place it seems. Is there a way to "vote" on issues to make them more visible and push them up in priority for development?

Thanks,
Ed



  


Re: Error "java.lang.NoSuchMethodError" #conditional-processing #DITA-OT #branch-filtering #specialization

@l3arn4life
 

Hi Radu,
I think I might have found the culprit: I tried to generate output using DITA-OT 3.5.2. Our customized plugins rely on Oxygen plugins, so I naturally copied Oxygen plugins from their installation directory into the new DITA-OT directory along with our customized plugins. It looks like Oxygen has issues with running a newer DITA-OT than the one it was installed with and somehow that affects seemingly unrelated transformations. Your last response and the mention of DITA-OT 3.4.1 (instead of 3.5.2) made me think, so I downloaded a "naked" 3.4.1, ran a html5-transformation and things turned out mostly fine.
However, the problem described here still persists and I wonder, whether it will be taken care of in the near future or not. Using <topicref keyref="topic" href="path/topic.dita"/> kind of defeats the purpose of using keys in the first place it seems. Is there a way to "vote" on issues to make them more visible and push them up in priority for development?

Thanks,
Ed


Re: Dita Build Successful But No PDF Output Generated #DITA-OT #bookmap #PDF

Reece Roggentien
 

This Ant file is simply deleting your output directory and then calling the build.xml file in plugins/com.try.custpdf. Does build.xml include the code to build the PDF?

 

-Reece

 

From: main@dita-users.groups.io <main@dita-users.groups.io> On Behalf Of bvigneshwaran21 via groups.io
Sent: Sunday, July 19, 2020 12:25 PM
To: main@dita-users.groups.io
Subject: [dita-users] Dita Build Successful But No PDF Output Generated #DITA-OT #bookmap #PDF

 

Dear All,
I am a new Dita learner. Recently, I purchased the Dita for Print Book and I am trying to do the exercises given in the book.
I successfully built an ant file. When I generate output, I get a message stating that the build is successful. But I do not find any PDF file. Please help me.
I have attached the screenshots of the following:

  1. Build Successful Message.
  2. Ant file Contents
  3. DitaMap File Location

I have been blindly following the commands in the exercises. This problem that I face is not allowing me to proceed. Please help me to understand my mistake. Thank you.
1.Build Successful


2. Contents of the Ant File




3. Dita Map Location


Dita Build Successful But No PDF Output Generated #DITA-OT #bookmap #PDF

bvigneshwaran21@...
 

Dear All,
I am a new Dita learner. Recently, I purchased the Dita for Print Book and I am trying to do the exercises given in the book.
I successfully built an ant file. When I generate output, I get a message stating that the build is successful. But I do not find any PDF file. Please help me.
I have attached the screenshots of the following:
  1. Build Successful Message.
  2. Ant file Contents
  3. DitaMap File Location

I have been blindly following the commands in the exercises. This problem that I face is not allowing me to proceed. Please help me to understand my mistake. Thank you.
1.Build Successful


2. Contents of the Ant File




3. Dita Map Location


Re: Error "java.lang.NoSuchMethodError" #conditional-processing #DITA-OT #branch-filtering #specialization

Radu Coravu
 

Hi Ed,

Can you give a list with all the custom plugins you installed in DITA OT 3.4.1?

Also just to make sure, you did not copy the DITA OT 3.4.1 installation over the older 2.x installation, right? Because in this way you could have ended up with older Java JAR libraries in the updated installation.

Regards,
Radu
Radu Coravu
Oxygen XML Editor
On 7/16/20 4:43 PM, schmidt.eduard@... wrote:

I use the standard procedure described here. The exact command is (I wont list the complete directories since they’re irrelevant I think):

dita
--input=file.ditamap
--output=desktop\folder
--format=html5
--debug
--logfile=logfile.log

I did not create my own ANT build files as at this stage I would’t even know where to start with such an endeavor.

Best, Ed



Re: Error "java.lang.NoSuchMethodError" #conditional-processing #DITA-OT #branch-filtering #specialization

@l3arn4life
 

I use the standard procedure described here. The exact command is (I wont list the complete directories since they’re irrelevant I think):

dita
--input=file.ditamap
--output=desktop\folder
--format=html5
--debug
--logfile=logfile.log

I did not create my own ANT build files as at this stage I would’t even know where to start with such an endeavor.

Best, Ed

661 - 680 of 46276