Hussein Shafie | 19 Aug 18:12 2014

Re: cannot install the xml2rfc add-on

Avri D. wrote:
>
> While waiting for someone to update it, or getting up to speed
> myself, is it possible to still grab a copy of the 5.x version of
> xmlmind for Windows?  I did not see it on the site.

Sure. You'll find all the old versions of XMLmind XML Editor Evaluation 
Edition, along with compatible add-ons, in this folder:

http://www.xmlmind.com/archive/xmleditor/

You can browse the contents of this folder using your web browser.

--
XMLmind XML Editor Support List
xmleditor-support <at> xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Camille Bégnis | 19 Aug 09:17 2014

DocBook 5.1 support

Hello,

with DocBook 5.1 in the final leap of formal approval by OASIS, what are your plans for adding support for it into XXE?

Best regards,

--
NeoDoc
Camille Bégnis
camille <at> neodoc.fr
Tél: +33 (0)4.42.52.24.20
5, rue de la Touloubre
13770 Venelles
France

--
XMLmind XML Editor Support List
xmleditor-support <at> xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support
Boris Goldowsky | 18 Aug 21:28 2014

Java commands and undo

I’m trying to write a command in Java that structurally changes a DTBook file - promoting a subsection up a
level to become a sibling of its current parent.  In DTBook sections are <level1>, <level2>, <level3>,
etc, and contain header tags <h1>, <h2>, <h3>, etc.  So my method has to (a) change the element names, etc
from <level3> to <level2> and <h3> to <h2>, and then (b) move the structure.

That much is working, but I find that when I hit ‘undo’ only some of the changes get undone - the
structural change is reverted but tag names are not set back to what they were, resulting in an invalid document.

My execute method looks like this.  I had thought that the beginEdit() and endEdit() would tell the undo
manager the scope of everything that needs to be reverted.   PromotionHandler is defined to do the
appropriate element name changes.

public Object execute(DocumentView doc, String param, int x, int y) {
		MarkManager markManager = doc.getMarkManager();
		markManager.beginMark();
		
		Document document = doc.getDocument();
		document.beginEdit();

		// Rewrite element names inside this element to one level higher
		Element e = getSelectedElement(doc);
		Traversal.traverse(e, new PromotionHandler());
		
		// Move the element to be a sibling of, and just before, its current parent.
		Element parent = e.getParentElement();
		parent.removeChild(e);
		parent.getParentElement().insertChild(parent, e);
		
		document.endEdit();
		
		doc.describeUndo("Promote level");
		
		markManager.endMark();
		return null;
	}

Any idea what I’m missing?

Thanks!

Boris

--
XMLmind XML Editor Support List
xmleditor-support <at> xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Hussein Shafie | 19 Aug 09:13 2014

Re: cannot install the xml2rfc add-on

Avri D. wrote:
>
>
> Following instructions at: https://code.google.com/p/xml2rfc-xxe/
> I have tried both:
>
> the web option:
> <http://xml2rfc-xxe.googlecode.com/svn/release/xml2rfc.xxe_addon>
>
> and the zip option by downloading:
> <https://code.google.com/p/xml2rfc-xxe/downloads/detail?name=xml2rfc-xxe-0.8.0.zip&can=2&q=>
>
> But when i got to Options -> Install addons, I do not see it no matter
> which way I try to do it.

The xml2rfc-xxe-0.8.0 add-on is marked to be compatible with XMLmind XML 
Editor v5. This implies that it has not been upgraded to be made 
compatible with latest v6. That's why it is not listed in the "Install 
Add-ons" dialog box.

>
> Is this because I only I have the Eval copy, or am I experiencing some
> other fault.  The only thing I plan to do with xmlmind is xml2rfc, so
> want to make sure I can do that.

We are not the authors of the xml2rfc add-on, therefore we cannot help 
you further.

I suggest that you contact the authors of this add-on and ask them to 
release a version which has been tested against XMLmind XML Editor v6. 
If the xml2rfc add-on already works OK with v5, then this should be a snap.

--
XMLmind XML Editor Support List
xmleditor-support <at> xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

maxwell | 11 Aug 17:57 2014
Picon

Bug with <colspec>s

We discovered what I think is a bug in XXE (5.9.0) with <colspec>.  The 
problem arises when a <table> has two or more <colspec>s with identical 
 <at> colname attributes.  XXE should flag such a situation in the Validity 
Checker as an error; it does not.  But worse, if such a situation arises 
(in our case it probably happened because someone copy-pasted an 
existing <colspec>), and then you try to insert a new <row> into the 
table with DocBook | Row | Insert After (or Before), XXE hangs.  
Specifically, you can't edit that file until you close and re-open 
it--you can work on other files, and you can close the file with the bad 
<table>.

I think two things should change:
1) XXE should flag this as an error.
2) XXE shouldn't hang (it could say "I'm sorry, Dave, I can't do that", 
or beep--but it shouldn't hang)

I'm attaching a sample file with the problem.

BTW, we're long-time users of XXE, and we like it!

    Mike Maxwell
    University of Maryland
Attachment (NewFile.xml): application/xml, 1236 bytes

--
XMLmind XML Editor Support List
xmleditor-support <at> xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support
Niels Grundtvig Nielsen | 11 Aug 15:22 2014
Picon

customising navigation labels

After consulting the helps, it was easy to make sure that a particular set of topics showed their context with the Parent/Child/Sibling topic(s) lists … but I'll dare to ask a small related question all the same: is there any way to customise the labels Parent/Child/Sibling?

--
XMLmind XML Editor Support List
xmleditor-support <at> xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support
Hussein Shafie | 11 Aug 09:15 2014

Re: Tiny fonts

Steve L. wrote:
> Both the fonts in the edit area and the titlebar fonts are
> tiny. I'd like to make them bigger but I don't know how.

Please use the dialog box displayed by menu item "Options|Preferences" 
to change this:

* Fonts in user interface (menus, dialog boxes, etc):

Select section "General", use the "Font size" control.

More info:
http://www.xmlmind.com/xmleditor/_distrib/doc/help/generalOptions.html

* Fonts in the edit area:

Select section "View", use the controls found in "CSS stylesheet 
defaults" subsection.

More info:
http://www.xmlmind.com/xmleditor/_distrib/doc/help/viewOptions.html#cssDefaults

--
XMLmind XML Editor Support List
xmleditor-support <at> xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Hussein Shafie | 31 Jul 18:24 2014

Re: Paste-from-Word for my Configuration

Marc H. wrote:
>
> We use our own XML dialect which is very similar to DITA.
>
> How can we use the Paste-from-Word feature in our documents?
>

--> This is not difficult if you can write an XSLT 1.0 stylesheet. This 
XSLT 1.0 stylesheet must transform simple, clean, valid, XHTML 1.0 
Transitional to your XML dialect.

(At this stage of the "Paste from Word" process, a mind-boggling 
machinery has already been used to clean-up the scary unfiltered HTML 
pasted by MS-Word to the clipboard.)

--> If you look at attached copy of 
<paste_from_word_install_dir>/dita/topic.incl, you'll see:

1) This configuration adds a menu item called "Paste from Word" to the 
"Topic" menu. This menu item invokes the following command:

---
    <command name="pasteFromWord">
      <class>com.xmlmind.xmleditext.paste_from_word.PasteFromWord</class>
    </command>
---

(The above snipped is found in included 
<paste_from_word_install_dir>/common/common.incl)

2) The above command is parametrized as follows:

---
[after p]

[xmlns:dh=java:com.xmlmind.xmleditext.dita.DITAHelp]

-p tables.set-column-number yes

-p sections.max-level {if($pasting-root, '-1', '1')}

-t paste-from-word:xslt/mswordhtml/topic.xslt

-p transform.topic-type {if($pasting-root, local-name(/*), 'topic')}

-p transform.single-topic {if($pasting-root, 'no', 'yes')}

-p transform.root-topic-id '{dh:getTopicAncestor(.)/ <at> id}'
---

* [after p] means: never paste blocks (e.g. a list or a table) inside 
the ``text'' of a paragraph or list item. Always paste blocks after the 
``text'' of a paragraph or list item.

This needed to prevent pasting a list or a table inside a paragraph 
(which is allowed by DITA: 
http://docs.oasis-open.org/dita/v1.2/os/spec/langref/p.html).

* Your XSLT 1.0 stylesheet must be specified as follows:

-t URL_of_my_XSLT_stylesheet

-(The XSLT 1.0 stylesheet used for DITA Topics is found in
<paste_from_word_install_dir>/xslt/mswordhtml/topic.xslt)

* Your XSLT 1.0 stylesheet can be passed parameters by the means of the 
-p option.

* The value of such parameters may depend on the content of the XML 
document where some data is to be pasted (AKA the "target document").

-p {XPath_1_expr} evaluates XPath 1.0 expression XPath_1_expr in the 
context of this target document.

* We of course support all the XPath 1.0 functions documented here:

http://www.xmlmind.com/xmleditor/_distrib/doc/commands/xpathfunc.html

including directly invoking Java static methods. This was needed for 
DITA. com.xmlmind.xmleditext.dita.DITAHelp is a Java class containing 
such XPath 1.0 helpers.

That's all I can do for you until "Paste from Word" is officially 
documented.

Attachment (topic.incl): text/xml, 1252 bytes

--
XMLmind XML Editor Support List
xmleditor-support <at> xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support
Hussein Shafie | 31 Jul 11:30 2014

Re: Table column size issue in PDF

Erik B. wrote:
>
> Many thanks! That seems to work perfectly.

No problem.

> The original tables were created by copy/paste from part so I suppose it creates HTML tables when doing so.
>

If you pasted the table using "Paste from Word", then yes, that's right. 
By default, "Paste from Word" pastes HTML tables in DocBook documents 
(which is valid), not CALS tables.

This can be configured of course, though, currently this requires 
tweaking an undocumented configuration file by hand.

Will make this choice easier in the next release and/or will make the 
CALS table the default when using "Paste from Word".

> Hussein Shafie <hussein <at> xmlmind.com> wrote:
>
> Yes. You need to use CALS tables in your DocBook document, not HTML tables.
>
> The standard DocBook XSL stylesheets (not the work of XMLmind) which are used to generate the XSL-FO which
is then converted to PDF, seem to not fully support HTML tables, hence the issue you report. On the other
hand, DocBook XSL stylesheets seem to fully support CALS tables.
>
> Attached sample files shows you the difference between the two kinds of tables.
>
> <TableCols.xml><TableCols.pdf>
>

--
XMLmind XML Editor Support List
xmleditor-support <at> xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Hussein Shafie | 30 Jul 13:20 2014

Re: Table column size issue in PDF

Erik B. wrote:
>
> We have an issue with sizing table columns when generating a PDF.
> We use the colgroup width attribute to set the size.

colgroup implies that you are using HTML tables in your DocBook 
document, which is fine, except...see below.

> In the XMLMind Editor the columns appear in the size we want.
> However when generating a PDF all columns are the same size.
> Any ideas on how to solve this?
>

Yes. You need to use CALS tables in your DocBook document, not HTML tables.

The standard DocBook XSL stylesheets (not the work of XMLmind) which are 
used to generate the XSL-FO which is then converted to PDF, seem to not 
fully support HTML tables, hence the issue you report. On the other 
hand, DocBook XSL stylesheets seem to fully support CALS tables.

Attached sample files shows you the difference between the two kinds of 
tables.

Attachment (TableCols.xml): text/xml, 1466 bytes
Attachment (TableCols.pdf): application/pdf, 10 KiB

--
XMLmind XML Editor Support List
xmleditor-support <at> xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support
Jeff Hooker | 25 Jul 17:22 2014

Breaking Paste From Word (XMLmind 6.0)

Hello Hussein,

 

I have attached a small sample of a large document that, in my version of XMLmind 6.0, utterly breaks the Paste From Word feature. I have yet to get the engineer responsible for this document to admit what he did, but I thought you might be interested in a sample. Since it also utterly violates all of PMC’s guidelines for Word documents, I’m not terribly interested in a fix for it; I am just submitting this sample as way of possibly improving the Paste From Word feature in future versions of the product.

 

Cheers,

Jeff.

Attachment (XMLconversionDoom.docm): application/vnd.ms-word.document.macroenabled.12, 195 KiB

--
XMLmind XML Editor Support List
xmleditor-support <at> xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Gmane