Pages: « 1 2 3 4 5 6 7 8 9 10 »
 31 
 on: September 08, 2017, 08:25:34 AM 
Started by scott44 - Last post by scott44
We use XMetaL and customizations to author XML documents used for operational procedures.  Our browser-based procedure viewer transforms the XML documents to HTML for viewing.  The procedures may contain tables.  After a recent upgrade to XMetaL 11 (and also while evaluating XMetaL 12), we noticed tables are not rendered in Normal View and Tags On View (a very small square is displayed in place of the table).  The XML is valid, and the table tags can be seen in Plain Text View. 
In all versions of XMetaL we have previously used (up to and including version 7), the tables were rendered.  Our investigation discovered there must be a collision with the name of our XML table element and XMetaL’s rendering system.  In our schema, our XML table element is named “Table”.  I modified our schema, macros, and some sample documents to change “Table” to “myTable”.  After the modifications, the tables were successfully rendered in XMetaL.  Here are my questions:
1.   Any ideas why this began happening?  Is this a bug, or a conscious design change?
2.   In what version was the change/bug introduced? It had to be after version 7.
3.   Is there a workaround short of changing our schema?  We have many thousands of existing documents.  Changing the schema, and therefore the existing documents, would cause a significant work impact to re-verify the modified documents.

Any help or suggestions will be greatly appreciated.

 32 
 on: September 06, 2017, 01:03:02 PM 
Started by rhastah - Last post by Derek Read
The simplest way to do this is in Plain Text view.

If that is not an option then you will need to live with the paste feature implemented by the customization for the specific DTD you are using and the built-in capabilities of XMetaL Author Essential/Enterprise/XMAX that you are using unless you can have the person that created the customization make changes to it or add the specific feature you want. That will vary greatly depending on which DTD / customization you are authoring to and the exact specifications for what you want to be inserted.

If you implemented the paste capabilities for your customization then you can look at all the various different APIs that XMetaL Author Essential/Enterprise/XMAX implements (search for "paste" in the Programmers Guide) and implement a macro that will do exactly what you want. In almost all cases you are going to want to keep some form of markup, so it is usually not desirable to strip it all away or convert the markup itself into characters that don't result in markup being inserted.

Does "plain text" for you mean to not escape characters such as "<", ">" and "&"?
If you paste something such as <para>text</para> does that mean you want it to appear exactly as that in the XML, so the resulting markup would be this: &lt;para&gt;text&lt;/para&gt;

 33 
 on: September 06, 2017, 12:53:13 PM 
Started by lxsibi - Last post by Derek Read
This means the Windows JavaScript engine has been disabled for your computer. It might be broken (ie: Windows is broken) or 3rd party software may have disabled it. The latter is a strategy for some antivirus packages.

Check to see if you have any 3rd party software that may be doing this (starting with features in your antivirus software if you have something installed).
Check that the following DLL exists, is not broken (repair Windows), and registered (using the regsvr32.exe Windows tool):

C:\Windows\System32\jscript.dll

In newer versions of Windows there may be additional files involved that make up the JScript engine. Ultimately, your best bet would be to check with any 3rd party vendor that you suspect might be interfering with how this portion of Windows functions. Their software might be stopping you from registering the DLL, or perhaps monitoring it and deactivating it again. You can also check with Microsoft to see if they are aware of this kind of issue. It may be that your IT people have disabled this Windows functionality or are locking up the system for your permissions level using Windows security settings or 3rd party software other than an antivirus tool.

 34 
 on: September 06, 2017, 09:29:12 AM 
Started by lxsibi - Last post by lxsibi
We are using Astoria Content Management System, version 6.3.4J that is integrated with XMetaL Enterprise Edition 10.0. One of our writers received this message every time he tries to edit an XML file.

We had used the fix to register the jscript.dll indicated on the Tips and Techniques forum but receiver another error, 0x80004005. Is there another resolution?


 35 
 on: September 06, 2017, 08:56:17 AM 
Started by rhastah - Last post by rhastah
Hi all,

This is probably a simple question, but I can't seem to find the answer. All I want to do is set XMetal to always paste plain text only - never try to format anything for me or copy the formatting over from another application.

I just want plain text when I hit ctrl+v.

Anyone know how to do this?

Thanks,
Rhastah

 36 
 on: September 05, 2017, 12:44:05 PM 
Started by ndudek - Last post by Derek Read
For any selectors that are unsupported (now or into the future) or for other complex selectors that CSS just does not support in general you can use the Selection.ContainerStyle or the Range.ContainerStyle API. This will work for any element you can programmatically move a Range to in your document (ie: there is some logic you can use to uniquely identify an element). In your case running the following would likely give you what you want:

Code: (Example(JScript): setting CSS through script)
//XMetaL Script Language JScript:
/*Change following XPath to suit your needs.
Hopefully it is as simple as changing the element
name from Para to yours.
Setting color:red shows how to set multiple CSS
properties on the same node. Remove that if you
don't want them red.
*/
var xpath = "//Para[last()]";
var nodes = ActiveDocument.getNodesByXPath(xpath);
var rng = ActiveDocument.Range;
for(var i=0; i<nodes.length; i++) {
rng.SelectNodeContents(nodes.item(i));
rng.ContainerStyle = "margin-bottom:2em; color:red";
}

If that doesn't do it please provide more information on the XML structure (include a sample).

Note that in this example I use getNodesByXPath. You can use any logic to move the Range to the element you need to style. Other methods would include walking the document element by element to identify node name, content, attributes, etc. I merely use the getNodesByXPath API here because that was the simplest way to do it given the requirements.

 37 
 on: August 21, 2017, 01:22:36 AM 
Started by ndudek - Last post by ndudek
Hello,

I'm trying to customize a certain element through css. I want to use the last-child selector in order to add a line break through css. Unfortunately it seems like XMetaL doesn't understand this selector. Any Idea on how to give css instruction to the last appearance of an element?

 38 
 on: August 11, 2017, 05:53:07 PM 
Started by akheiljain - Last post by Derek Read
The CritiqueUtils.dll doesn't ship with any products anymore and is unavailable. It was part of the integration between XMetaL Author Enterprise and XMetaL Reviewer (a server product that was discontinued).

 39 
 on: August 09, 2017, 11:26:48 AM 
Started by akheiljain - Last post by akheiljain
Not having any luck with running the demo 5 and demo 6 from the XMetal website demo of "Extending XMetaL Author Using the Resource Manager" http://xmetal.com/content-demos/#37Min:ResourceManager. Has anyone been able to run through the demo successfully? Does anyone know how to get access to CritiqueUtils.dll and/or the source code?

Thanks,
Akheil Jain

 40 
 on: August 07, 2017, 02:00:14 AM 
Started by Shekii - Last post by Shekii

.

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