Pages: « 1 2 3 4 5 6 7 8 9 10 »
 41 
 on: March 15, 2019, 03:47:30 PM 
Started by queshaw - Last post by Derek Read
Yes, XMetaL Developer includes a document-level customization called "MiniJournalist" which is a simple DTD and basic CSS, CTM files. Is that the kind of example you are looking for?

XMetaL Author itself includes three sample document-level customizations: Journalist, Meeting Minutes, and Docbook.

The Journalist sample uses a proprietary DTD created around the time DocBook for XML was being initially designed so it looks similar to some degree but it is just meant for demonstration. This customization shows off a large number of APIs through macros, includes some XFT forms, custom toolbars and menus. An XSD version of the DTD is also provided that uses all the same customization files but the XSD for validation and to drive the Element List and Attribute Inspector.

The Meeting Minutes sample is a really strange use for the software but it shows off some interesting functionality, including how to interact with a database.

The Docbook sample uses the 5.0 version of the Docbook standard DTDs. It is just a sample but could be used to build a more robust authoring environment for that schema. It shows off a bunch of APIs similar to the Journalist sample, exposed in this case via the Docbook menu (which itself is added to show how menus can be customized) and includes a demo of XInclude, and functionality for displaying the same document using different CSS styling.

 42 
 on: March 15, 2019, 02:49:49 PM 
Started by olehtine - Last post by Derek Read
Yes, that path looks to be far under any Windows limits (commonly 255).

Hard to say exactly what your issue might be. Perhaps there is some race condition occurring with multiple copies of the software or another process attempting to use files at the same time?

The initial posting suggested the software was hanging (and never opening the file). But it sounds to me like what you are saying is that the file is opened, it just takes longer using one method (there are many ways to open a file in the GUI and via different APIs) vs right clicking and asking Windows Explorer to ask XMetaL Author to open the file.

If you were to move the customization files to the user's local machine (this is the standard method of deployment) that should speed things up (if the issue is the speed of copying the files from the server each time).

I'm not sure what you mean when you mention macros being an issue. Whatever behaviour you are seeing with macros would likely be very specific to what the macro is doing. If you can provide XMetaL Support with some samples they could have a look and possibly make some recommendations.

 43 
 on: March 15, 2019, 12:42:17 PM 
Started by queshaw - Last post by queshaw
Hi,

In case there are no XMetaL Developer examples available. The main problem I am having is how to create a solution and how to deploy a solution.

The XMetaL Developer help describes the elements of script, the interfaces available, etc. etc. I haven't yet seen anywhere something that describes how the overall process of creating a solution and installing the solution is to be done.

Kendall

 44 
 on: March 15, 2019, 11:42:45 AM 
Started by Roopesh79 - Last post by queshaw
This feature was completely rewritten for version 13 (after a lot of negative feedback on how poorly it functioned for most people in version 11 when it was first introduced). So, if you need it, I would highly recommend running XMetaL Author Enterprise or XMetaL Author Essential 13.

The help in version 13 has been updated as well. It provides more detail, including specific information about the versions of the various components that drive the feature and the various options available.

So, schematron validation doesn't work with version 11?

 45 
 on: March 15, 2019, 11:27:22 AM 
Started by queshaw - Last post by queshaw
Hi,

Are there any example solutions for XMetaL Developer (that would apply to 12.0)?

Kendall

 46 
 on: March 15, 2019, 03:51:16 AM 
Started by olehtine - Last post by olehtine
We have all the files at UNC path: DTD, CSS, CTM, MCR, XSL and also the XML files we are editing.
Below is the longest path to a DTD we have. I don't think it's nowhere near the limit.

\\valtion.fi\Yhteiset tiedostot\Kotus\fo\struktur\fo.dtd
C:\Users\12345678\AppData\Roaming\SoftQuad\XMetaL\13.0\gen\valtion.fi\Yhteiset tiedostot\Kotus\fo\struktur\fo.dtd

I forgot to mention that opening XML files directly from Windows Explorer (Open with XMetaL...) works without delay and I have advised our users to do so. But that does not help with the occasional hangs that happen when editing (and using macros).

 47 
 on: March 14, 2019, 07:56:08 PM 
Started by olehtine - Last post by Derek Read
If the path to the DTD or XSD Schema is of significant length then the path that XMetaL Author generates to save files in the user's per-user folder may end up being too long for Windows:
%appdata%\SoftQuad\XMetaL\<version#>\gen\<path to original dtd or xsd>\<files here>

The fact that the issue goes away for you when you map the UNC path to a drive letter (reducing the length) suggests it might be the same issue. XMetaL Author Enterprise version 14 might include a fix that will help. XMetaL Author Essential 14 will not be released for a while.

It's hard to know for sure what your issue is without getting more detail about what is stored at the UNC path, so which files XMetaL Author is opening from there, etc. So if you can provide that information we can probably give more detail.

 48 
 on: March 14, 2019, 03:10:34 PM 
Started by Boyd White - Last post by Derek Read
Because users interact with tables in a unique way when compared to standard elements in a document (what the user is seeing doesn't line up 1:1 with the XML so things get complicated) you need to use special (new and as yet undocumented) APIs to get a user's selection when it might consist of selected cells in a table.

Here's something that does what I think your example code is trying to do.
You can paste these into a document to see them run:

Code: (VBScript)
'XMetaL Script Language VBScript:
If Selection.IsMultiCellSelection Then
    Set c = Selection.Cells
For j = 0 to c.length
Selection.SelectNodeContents(c(j))
Application.Alert("content: " & Selection.Text)
Next
End If

Code: (JScript)
//XMetaL Script Language JScript:
if(Selection.IsMultiCellSelection) {
    var c = Selection.Cells;
for(j=0; j<c.length; j++) {
Selection.SelectNodeContents(c(j));
Application.Alert("content: " + Selection.Text);
}
}

 49 
 on: March 14, 2019, 01:31:23 AM 
Started by olehtine - Last post by olehtine
I have a problem opening files using UNC path. Open dialog seems to hang for a while (~10-20 sec) before I can choose filename or navigate into another folder. There is no problem if I map the path to a drive letter. We also have several references to the UNC path in macros and other customization files and sometimes (not every time) XMetaL hangs when trying to use a macro. For some users it could take several minutes, so they have to shut down the application (from Task Manager) to get on with their work.

Is there any known problem using UNC paths sith XMetaL? Is mapping to the direve letter the only way to solve the problem?

We are using Windows 10 and XMetaL Essential 11.0.
I am also currently testing with XMetaL Essential 13.0, but the problem seems to persist.

Thanks,

-Outi

 50 
 on: March 13, 2019, 07:11:23 AM 
Started by Boyd White - Last post by Boyd White
This will show me every entry's content in a column:

Set ttable = ActiveDocument.documentElement   
Set tgrouplist = ttable.getelementsbytagname("tgroup")
Set tbodylist=tgrouplist.item(0).getelementsbytagname("tbody")
Set tentrylist=tbodylist.item(0).getelementsbytagname("entry")

For j = 0 To tentrylist.length-1
        selection.SelectNodeContents(tentrylist(j))
   contents=selection.text
   msgbox("contents = " + contents)
Next

But I don't need every entry's value...I need only those entry tags that have been selected in the column. I have to add a &tab; at the front of their content.

Anybody have some clues. This has turned out to be harder that I would have expected. In R&Ding I have not even been able to get the Range Start and Range End to maybe exclude those outside during the loop of "j" above.

Thanks in advance.

Pages: « 1 2 3 4 5 6 7 8 9 10 »