Pages: « 1 2 3 4 5 6 7 8 9 10 »
 51 
 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

 52 
 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?

 53 
 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

 54 
 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).

 55 
 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.

 56 
 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);
}
}

 57 
 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

 58 
 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.

 59 
 on: March 11, 2019, 03:47:13 PM 
Started by Boyd White - Last post by Boyd White
I have been R&D'ing how to select multiple entry tags in a column then add a &tab; at the front of the content of each of those entry tags.

This has proved more difficult that I would have thought. How do you, in a macro, loop through the multiple Entry Tags selected and add text?

Thanks in advance!

 60 
 on: March 09, 2019, 08:02:42 AM 
Started by lxsibi - Last post by TimothyAveri
I fixed the issue, I didnt had the proper devices selected. Can an admin close this topic?

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