Pages: « 1 2 3 4 5 6 7 8 9 10 »
 31 
 on: April 26, 2017, 06:18:57 PM 
Started by C4 - Last post by C4
Hi,

Is it possible to write a macro that can select text within two entities?

I am using XMetaL Author Essential 11.

Thanks

 32 
 on: April 26, 2017, 06:06:15 PM 
Started by C4 - Last post by tonys
Maybe because you didn't call rng.Select()?

For efficiency, you should do everything with the Range object, then call the Select() method at the end.

 33 
 on: April 26, 2017, 06:02:51 PM 
Started by billburns - Last post by Derek Read
Screenshots of XMetaL Author Enterprise 9 and 12 showing their respective "Apply / Remove Conditions" dialogs for setting DITA conditional text attributes (default sample attribute values are listed).

 34 
 on: April 26, 2017, 05:55:44 PM 
Started by C4 - Last post by C4
Thanks

I tried both of those and it took me to the beginning of the element.

I've changed my code to this and it seems to work.

var rng=ActiveDocument.Range;
rng.MoveToElement("P",true);
rng.Select();
Selection.SelectAfterNode(Selection.ContainerNode);

 35 
 on: April 26, 2017, 05:32:07 PM 
Started by billburns - Last post by Derek Read
Is this attribute meant to be used like the DITA conditional text attributes @audience, @platform, @product, or @otherprops?

In other words, is the attribute you have specialized based on @props?

If so, you can configure the conditional text feature so that your attribute will work alongside the standard DITA conditional text attributes (listed above). See Help > Creating and modifying conditions (or search for "modifying conditions" or "ct_config.xml").

This enables a "..." button in the Attribute Inspector for conditional text attributes that opens a dialog that lets you select the values you have defined (in the ct_config.xml file). You can also access the same dialog via the Reuse menu by selecting "Apply / Remove Conditions" or by right clicking on any element and selecting "Apply / Remove Conditions". The Reuse menu contains another dialog that lets you configure how elements with specific attributes and values set appear using the "Style Conditional Text" option.

Or perhaps this is not a specialized DITA DTD? It sounds like you might be modifying the DTDs according to the XML specification (if you are creating attributes using NMTOKEN) and not DITA's more specific specialization rules. I guess we'd need to see it to be sure.

 36 
 on: April 26, 2017, 04:42:25 PM 
Started by billburns - Last post by billburns
Sorry, using Author Enterprise version 9.

Bill Burns
Content Architect | Healthwise
bburns@healthwise.org | www.healthwise.org
208.331.6917 (office)  |  208.345.1897 (fax)

Healthwise helps people make better health decisions.

 37 
 on: April 26, 2017, 04:32:21 PM 
Started by billburns - Last post by billburns
I've specialized an attribute, and I need to be able to control the values that can be populated and allow multiple space-delimited values. I defined the list using type NMTOKENS. When I try to apply a value, I get a drop-down list. Is there any way to customize this behavior?

Thanks,
Bill Burns
Content Architect | Healthwise
bburns@healthwise.org | www.healthwise.org
208.331.6917 (office)  |  208.345.1897 (fax)

Healthwise helps people make better health decisions.

 38 
 on: April 26, 2017, 03:34:05 PM 
Started by C4 - Last post by tonys
To move the cursor before the end tag:

rng.MoveToElement("P");
rng.SelectContainerContents();
rng.Collapse(0);

To move after the end tag:

rng.MoveToElement("P");
rng.SelectAfterContainer();

 39 
 on: April 25, 2017, 07:10:43 PM 
Started by C4 - Last post by C4
Hi,

We are using XMetal Author Essential 11.

I'm trying to write a macro to find an element using:

// XMetaL Script Language JSCRIPT:
var rng=ActiveDocument.Range;
rng.MoveToElement("P",false);
// make the range visible
rng.Select();

Is there any way to move to the end of the element rather than the beginning of the element?

Thanks.

 40 
 on: April 11, 2017, 10:13:50 PM 
Started by 55 - Last post by 55
Thanks :)
We will be using macros to push out the toolbars

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