Claudio Li | 2 Nov 2009 03:43
Picon

Want use XMLmind 4.5 to create contextual help

Hi,
 
Just wanna know could XMLmind Pro 4.5 be used for authoring contextual help.
 
Say for example I would like to generate a set of single-page HTML topics with the following standard sections (each section is written in a single DITA file)
 
HTML 1:
-Overview of system module A
-Overview of the the module interface
-What can you do using this module
-Task 1
-Task 2
-Task 3
-Task 1 Fields Description
-Task 2 Fields Description
-Task 3 Fields Description
 
HTML 2:
-Overview of system module B
-Overview of the the module interface
-What can you do using this module
-Task 1
-Task 2
-Task 3
-Task 1 Fields Description
-Task 2 Fields Description
-Task 3 Fields Description
 
Wonder if need to do anything special on the DITA/DITAMAP files so that each section will have a fixed ID (Then we can point to a particular section from different places of the UI).
 
Thanks!
 
Claudio
 

--
XMLmind XML Editor Support List
xmleditor-support <at> xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support
Hussein Shafie | 2 Nov 2009 10:47
Favicon

Re: Want use XMLmind 4.5 to create contextual help

Claudio Li wrote:
>  
> Just wanna know could XMLmind Pro 4.5 be used for authoring contextual
> help.
>  
> Say for example I would like to generate a set of single-page HTML
> topics with the following standard sections (each section is written in
> a single DITA file)
>  
> HTML 1:
> -Overview of system module A
> -Overview of the the module interface
> -What can you do using this module
> -Task 1
> -Task 2
> -Task 3
> -Task 1 Fields Description
> -Task 2 Fields Description
> -Task 3 Fields Description
>  
> HTML 2:
> -Overview of system module B
> -Overview of the the module interface
> -What can you do using this module
> -Task 1
> -Task 2
> -Task 3
> -Task 1 Fields Description
> -Task 2 Fields Description
> -Task 3 Fields Description
>  
> Wonder if need to do anything special on the DITA/DITAMAP files so that
> each section will have a fixed ID (Then we can point to a particular
> section from different places of the UI).
>  

No. You cannot control the IDs of the XHTML/HTML elements generated by
ditac (XMLmind DITA Converter, which is integrated in XMLmind XML Editor).

However this should not prevent you from authoring contextual
help.

For example:

If HTML 1 is addressed as html1.html,

Then, supposing that topic Task 1 has "task1" as its DITA ID, "HTML
1/Task 1" is addressed as html1.html#task1.

Now let's suppose that, topic Task 1 contains a table element having
"parameter_table" as its DITA ID.

You can address this table as html1.html#task1__-__parameter_table.
("__-__" is underscore, underscore, minus, underscore, underscore).

We'll document this in the next release of ditac.

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

Benoit Maisonny | 2 Nov 2009 14:33
Favicon

Custom XInclusion: missing source URL error

Hi,

I'm developing a custom implementation of XInclusion. When opening in XXE a file containing my custom include element, I get the following error:

file:[some file URI here]::: inclusion implementation error: missing source URL

I load the target file using:
context.getDocument(url);
context is the XInclusionContext passed to the method XInclusion.include().

I thought I might need to set SOURCE_URL_PROPERTY myself, so I tried:
doc.putProperty(Constants.SOURCE_URL_PROPERTY, url);
right after the line above, but the result is the same: the error message above.

What should I do to provide that source URL?
And what if the included nodes are built on request and don't come from an actual source document?

Thanks,
Benoit



--
XMLmind XML Editor Support List
xmleditor-support <at> xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support
Jeff Hooker | 2 Nov 2009 16:21
Picon

Fw: Small bug with generateXref feature

 Hi Hussein,
 
Found one small bug with the genXref feature; it filters all special characters 
except the colon (:), which is an illegal character in xml:ids.
 
Thanks,
 Jeff.

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

Hussein Shafie | 2 Nov 2009 18:35
Favicon

Re: Custom XInclusion: missing source URL error

Benoit Maisonny wrote:
> 
> I'm developing a custom implementation of XInclusion. 

Unfortunately we cannot provide support for this kind of advanced
extensions.

We know that XInclusion is part of the public API, but in practice, we
provide support only for the extensions documented in "XMLmind XML
Editor - Developer's Guide"
(http://www.xmlmind.com/xmleditor/_distrib/doc/dev/index.html).

If you really need to develop a custom implementation of XInclusion,
then you'll have to read the source code of XXE (included in the xe-site
and xe-dev distributions, available on request for customers having
purchased 10 xe-usr licenses or more).

Alternatively, you can hire us to do it. See
http://www.xmlmind.com/xmleditor/customization_service.html

> When opening in
> XXE a file containing my custom include element, I get the following error:
> file:[some file URI here]::: inclusion implementation error: missing
> source URL
> 
> I load the target file using:
> context.getDocument(url);
> context is the XInclusionContext passed to the method XInclusion.include().
> 
> I thought I might need to set SOURCE_URL_PROPERTY myself, so I tried:
> doc.putProperty(Constants.SOURCE_URL_PROPERTY, url);
> right after the line above, but the result is the same: the error
> message above.
> 
> What should I do to provide that source URL?

According to the doc
http://www.xmlmind.com/xmleditor/_distrib/doc/api/com/xmlmind/xml/load/XInclusion.html#include(com.xmlmind.xml.doc.Node,%20com.xmlmind.xml.doc.Node,%20boolean,%20com.xmlmind.xml.load.XInclusionContext)
---
Node[] include(Node firstNode,
               Node lastNode,
               boolean updating,
               XInclusionContext context)
               throws InclusionException

returns a non-empty array containing included nodes.

Included nodes are copies of some ``original nodes''.

These copies are not always clones of the original nodes (e.g. DITA conref).

The returned nodes must each have a Constants.SOURCE_URL_PROPERTY
property properly set.

On the other hand, adding the Constants.INCLUSION_PROPERTY and
Constants.READ_ONLY_PROPERTY properties to returned nodes is not useful.
---

Therefore, you need to invoke putProperty(Constants.SOURCE_URL_PROPERTY,
XXX) on each node returned by include() and not on doc like you did it.

Excerpt of src/com/xmlmind/xml/xinclude/XInclude.java:
---
    public Node[] include(Node firstNode, Node lastNode,
                          boolean updating,
                          XInclusionContext context)
        throws InclusionException {
        Node[] nodes = null;

        if (parseText) {
            String text;
            try {
                text = loadText(href, textEncoding);
            } catch (IOException e) {
                throw new InclusionException(
                    Msg.msg("cannotLoadText", href,
                            ThrowableUtil.reason(e)));
            }

            Node copy = new Text(text);
            copy.putProperty(SOURCE_URL_PROPERTY, href);

            nodes = new Node[] { copy };
        } else {
            ...
---

> And what if the included nodes are built on request and don't come from
> an actual source document?

In theory, an XInclusion (but not a SimpleInclusion) allows to do this.

However, we currently have no implementation of an XInclusion which is
not also a SimpleInclusion. Therefore, XXE probably has design and/or
implementation and/or documentation bugs related to the support of
``pure XInclusions''.

References:

*
http://www.xmlmind.com/xmleditor/_distrib/doc/api/com/xmlmind/xml/load/XInclusion.html

*
http://www.xmlmind.com/xmleditor/_distrib/doc/api/com/xmlmind/xml/load/SimpleInclusion.html

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

Hussein Shafie | 2 Nov 2009 19:01
Favicon

Re: Fw: Small bug with generateXref feature

Jeff Hooker wrote:
>  
> Found one small bug with the genXref feature; it filters all special characters 
> except the colon (:), which is an illegal character in xml:ids.
>  

Is it really?

--> Extensible Markup Language (XML) 1.0 (Fourth Edition),
http://www.w3.org/TR/xml/ says:
---
Values of type ID  MUST match the Name production.

Name ::= NameStartChar (NameChar)*

NameStartChar ::= ":" | [A-Z] | "_" | [a-z] | ...
---

--> XML Schema Part 2: Datatypes Second Edition,
says:
---
The ·lexical space· of ID is the set of all strings that ·match· the
NCName production in [Namespaces in XML]

NCName ::= (Letter | '_') (NCNameChar)*	
/* An XML Name, minus the ":" */
---

Who is right?

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

Jeff Hooker | 2 Nov 2009 18:03
Picon

Fw: Small bug with generateXref feature

I was not clear here. It is the AddID command which sports this bug, not the Xref feature.

Got a household full of swine flu here and the sleep deprivation is getting to me.

Jeff.

----- Forwarded Message ----
> From: Jeff Hooker <jeff <at> itwriting.ca>
> To: "xmleditor-support <at> xmlmind.com" <xmleditor-support <at> xmlmind.com>
> Sent: Mon, November 2, 2009 7:21:37 AM
> Subject: Fw: Small bug with generateXref feature
> 
>  Hi Hussein,
>  
> Found one small bug with the genXref feature; it filters all special characters 
> except the colon (:), which is an illegal character in xml:ids.
>  
> Thanks,
>  Jeff.

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

Jeff Hooker | 3 Nov 2009 01:00
Picon

Re: Fw: Small bug with generateXref feature

Judging by what was actually implimented, I think that the schema def is the valid one. Wouldn't colons in ID
values mess with namespaces?

----- Original Message ----
> From: Hussein Shafie <hussein <at> xmlmind.com>
> To: Jeff Hooker <jeff <at> itwriting.ca>
> Cc: "xmleditor-support <at> xmlmind.com" <xmleditor-support <at> xmlmind.com>
> Sent: Mon, November 2, 2009 10:01:09 AM
> Subject: Re: [XXE] Fw: Small bug with generateXref feature
> 
> Jeff Hooker wrote:
> >  
> > Found one small bug with the genXref feature; it filters all special 
> characters 
> > except the colon (:), which is an illegal character in xml:ids.
> >  
> 
> Is it really?
> 
> --> Extensible Markup Language (XML) 1.0 (Fourth Edition),
> http://www.w3.org/TR/xml/ says:
> ---
> Values of type ID  MUST match the Name production.
> 
> Name ::= NameStartChar (NameChar)*
> 
> NameStartChar ::= ":" | [A-Z] | "_" | [a-z] | ...
> ---
> 
> --> XML Schema Part 2: Datatypes Second Edition,
> says:
> ---
> The ·lexical space· of ID is the set of all strings that ·match· the
> NCName production in [Namespaces in XML]
> 
> NCName ::= (Letter | '_') (NCNameChar)*    
> /* An XML Name, minus the ":" */
> ---
> 
> Who is right?
> 
> 
> 
> 
> 
> --
> XMLmind XML Editor Support List
> xmleditor-support <at> xmlmind.com
> http://www.xmlmind.com/mailman/listinfo/xmleditor-support

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

Niels Grundtvig Nielsen | 3 Nov 2009 10:54
Picon
Favicon

registration

Well, I _think_ our IT support guys have successfully installed 4.5 on
my PC ... but they started by uninstalling the older version, and at no
stage did we have to enter our registration key. How can I check whether
I have a fully-registered 4.5 Pro?

Thanks in advance!

Niels Grundtvig Nielsen
Technical Author - Safety Management Unit
The Brussels Airport Company
tel +32 (0)2 753 66 74
www.brusselsairport.be
_____________________________________________
This message, including attachments, is confidential and may be
privileged.
If you are not an intended recipient, please notify the sender then
delete and destroy the original message and all copies. You should not
copy, forward and/or disclose this message, in whole or in part, without
permission of the sender.

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

Hussein Shafie | 3 Nov 2009 12:16
Favicon

Re: registration

Niels Grundtvig Nielsen wrote:
> Well, I _think_ our IT support guys have successfully installed 4.5 on
> my PC ... but they started by uninstalling the older version, and at no
> stage did we have to enter our registration key. How can I check whether
> I have a fully-registered 4.5 Pro?
> 

XMLmind XML Editor Professional Edition has no
activation/registration/license key whatsoever.

An evaluation key allows to turn XMLmind XML Editor Personal Edition
(which has restrictions compared to Professional Edition) to XMLmind XML
Editor Evaluation Edition (which has no restrictions compared to
Professional Edition) during one week. But this is of no concern to
Professional Edition customers.

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


Gmane