Forum Replies Created

  • mag3737

    Reply To: Deleting an element

    Participants 0
    Replies 95
    Last Activity 4 years, 11 months ago

    Ok, I think the answer is that before you do the RemoveContainerTags() you need to verify that after doing MoveToElement() your range/selection is actually located inside the element whose tags you want to remove. Otherwise, if it so happens that the tags of the resulting location can also be validly removed, they will be.

    Try this:

    [code]
    var rng=ActiveDocument.Range;
    rng.MoveToElement(“autovalue”, true);
    rng.Select();
    if ((Selection.CanRemoveContainerTags) && (Selection.ContainerName == “autovalue”)) {
    Selection.RemoveContainerTags();
    }
    [/code]

    As a side note, you might consider doing the rng.Select() after the tags are removed, instead of before. This should work just as well, with the bonus(?) effect that the cursor will not move unless some tags actually do get removed (i.e. if the code performs a no-op, the user's cursor will remain where it was):

    [code]
    var rng=ActiveDocument.Range;
    rng.MoveToElement(“autovalue”, true);
    if ((rng.CanRemoveContainerTags) && (rng.ContainerName == “autovalue”)) {
    rng.RemoveContainerTags();
    rng.Select();
    }
    [/code]

    Reply

    mag3737

    Reply To: Deleting an element

    Participants 0
    Replies 95
    Last Activity 4 years, 11 months ago

    I think we might need a little more context here. For example:

    – What is the parent of the autovalue element?
    – Is there any other markup structure involved here?
    – Where might the user's cursor/highlight be located when this operation is performed?

    I tried out your code to remove the tags from elements within paragraphs (changing “autovalue” to “b”), and the code worked fine if the cursor was placed anywhere before the first and then executed repeatedly. Each execution deleted the next set of tags it found. The

    was never removed.

    Reply

    mag3737

    Reply To: Adding a line break for each indexterm

    Participants 0
    Replies 95
    Last Activity 6 years, 5 months ago

    The “intended” way to make changes like this to the CSS is not to edit this file Derek mentioned:
    AuthorDITAXACssharedditabase-base.css

    but rather to edit the following file (note slightly different directory path):
    AuthorDITAXACsditabaseditabase-base-override.css

    The technique is to copy the CSS you want from the original file, paste it into the “override” file, and then make the changes there (including adding entirely new selectors if needed). XMetaL loads these files in a specific order so that the override file is loaded AFTER the original one. Thus the settings for all style attributes specified in the override file will supersede any previous values they were assigned.

    This may be considered a nit-picky correction. The resulting text display either way is the same. There may be advantages gained in code maintenance practice by doing it this way, but one might argue that those gains are minor.

    Reply

    mag3737

    Reply To: Branch filtering, DITA 1.3

    Participants 0
    Replies 95
    Last Activity 6 years, 5 months ago

    We don't include a proper XMetaL customization for editing DITAVAL files, so the out-of-box editing approach would be to accept XMetaL's default-generated customization. This would mean no special visual styling, no custom forms, toolbars, or menus. But you would have Normal/TagsOn views, the Element List and Attribute Inspector windows available, which are technically all you need.

    If you have an existing DITAVAL file to edit, you can use File>Open to select it. You will almost certainly be prompted to browse for the DTD. In XMetaL Author Enterprise 11 (32-bit installation), the ditaval.dtd from DITA 1.3 is located here:
    C:Program Files (x86)XMetaL 11.0AuthorDITADITA_1.3_DTDditavaldtd

    If you want to work from a template, you can create a DITAVAL template by copying any DITAVAL file and placing it into any subfolder here (or you can also make a new subfolder):
    C:Program Files (x86)XMetaL 11.0AuthorTemplate
    Then if you do File>New, you will see your DITAVAL template included among all the others. Once again, you will probably need to browse for the DTD after opening the file.

    A third option, to open a new, one-time-only blank DITAVAL file, is to use File>New, then select the template called “Blank XML Document” (from the “General” tab), and then select the DITAVAL DTD from the subsequent browse dialog.

    The very first time you open a DITAVAL file, by whichever of the above methods, you will see a message about XMetaL automatically generating some configuration files. Those could serve as the beginning of a “proper customization”, if desired.

    If you wish to avoid the “browse for a DTD” prompt every time, you must (1) ensure that the DITAVAL file or template you are opening includes a DOCTYPE declaration that references a DTD and (2) ensure that the DTD is in a location where XMetaL can find it by resolving the information in the DOCTYPE.

    Reply

    mag3737

    Reply To: Map Editor/Properties panel does not appear when I create a new theme map.

    Participants 0
    Replies 95
    Last Activity 6 years, 7 months ago

    Hi Miguel,

    The problem you had sounds like it relates more to Windows than to XMetaL itself. The commands “Open” and “Edit in XMetaL” will appear on the menu when you right-click on a file in the Windows Explorer. The “Open” command is standard in Windows, and if you select it, Windows will open the file (whatever it is) using the application that it thinks is appropriate. In the case of DITA maps (file extension .ditamap), this should be XMetaL. But in the case of XML files, XMetaL does not “take ownership” of those files automatically in Windows. If you want XML files to open with XMetaL, you need to change that setting via Windows.

    Reply

    mag3737

    Reply To: CSS: Hiding Specific PIs and Styling Selected PIs Differently

    Participants 0
    Replies 95
    Last Activity 7 years, 1 month ago

    The $procins CSS as you have it here works for me. Could it be that you have some other selectors relating to PIs that are conflicting (overriding) in this case?

    Reply

    mag3737

    Reply To: Mini-templates with ctm file

    Participants 0
    Replies 95
    Last Activity 7 years, 1 month ago

    An easy way to confirm that a CTM is loaded is to include (or change) a LongDescription of one of the elements in the the ElementProperties section. The text of the LongDescription is displayed at the bottom of the Element List window whenever the element is selected.

     
        werkzeug
        Description of werkzeug element goes here
     

    Reply

    mag3737

    Reply To: Integration of XMetaL WebHelp plugin with IXIASOFT DITA CMS

    Participants 0
    Replies 95
    Last Activity 8 years, 5 months ago

    If anyone has already done such an implementation, please do share your experience with us here.

    From the perspective of us here at XMetaL, this is really a question for IXIASOFT. Our WebHelp plugin is an extension of the “Multiple HTML” deliverable type from the DITA Open Toolkit. If IXIASOFT is using the DITA OT, then (technically speaking) they could most likely integrate our plugin to their DITA OT.

    Reply

    mag3737

    Reply To: XMetaL and EasyDITA CMS

    Participants 0
    Replies 95
    Last Activity 8 years, 10 months ago

    Hi Joanne,

    I don't know of any customers who have done this, although if anyone has done any work I'd love to hear about it.

    Have you tried contacting the folks at easyDITA? I think at least in their early days Casey might have done some prototyping, but I could be wrong about that.

    Reply

    mag3737

    Reply To: DITA Editor style – add a background image?

    Participants 0
    Replies 95
    Last Activity 9 years, 3 months ago

    XMetaL doesn't support the “background” or “background-image” properties.

    You can do an image with the :before pseudo-selector:

    [class~=”topic/note”]:before
    {
    content: url('note.gif');
    }

    [class~=”topic/note”][type~=”tip”]:before
    {
    content: url('tip.gif');
    }

    But I can't see an obvious way to get BOTH the image and a text label such as “Note” or “Tip”. Simply putting both in the content: property didn't do it. Maybe Derek knows …

    Reply

    mag3737

    Reply To: Forgetful XMetaL 8 Tool Bars?

    Participants 0
    Replies 95
    Last Activity 9 years, 6 months ago

    The re-appearance of the Repository toolbar is “works as designed” in XMetaL. It is turned on as a result of the initialization of the repository subsystem at XMetaL startup time.

    I've put in a feature request with Product Management for the ability to turn off this toolbar.

    Reply

    mag3737

    Reply To: Using keyword variables in topic titles

    Participants 0
    Replies 95
    Last Activity 9 years, 6 months ago

    This sounds like a limitation of the DITA OT processing. Have you asked or searched in the Yahoo! dita-users mailing archives?

    Reply

    mag3737

    Reply To: XMetal 8.0 trial removes XMetaL 7.0 installation …

    Participants 0
    Replies 95
    Last Activity 9 years, 6 months ago

    You should be able to uninstall 8 and reinstall 7, but I'm not sure if the previous XMetaL 7 settings will be available. (Is that what you are hoping?)

    Reply

    mag3737

    Reply To: XMetal 8.0 trial removes XMetaL 7.0 installation …

    Participants 0
    Replies 95
    Last Activity 9 years, 6 months ago

    Hi Wim,

    Unfortunately it is not possible to have two copies of XMetaL installed on the same machine.

    If it will help you to work out what issues may have been fixed, there is a list of bug fixes in the 8.0 readme file which is available in the following forum thread:
    http://forums.xmetal.com/index.php/topic,3023.0.html

    Reply

    mag3737

    Reply To: Images (.png) in tags on view shows up as red box with X

    Participants 0
    Replies 95
    Last Activity 9 years, 9 months ago

    Some questions to help solve the problem:

    Are you linking to the same images that your co-workers are, or different ones?

    What is the @href attribute of (one of) the broken images? (Or, if you are not using DITA, whichever attribute is the one that signifies the location of the image source file.)

    If it's a relative path, are you able to confirm that the image is indeed present in the directory that is referenced, relative to your XML file?

    If it's a full path, try copying the pathname and loading it into a web browser (by pasting it into the URL bar). Does the image load in the browser?

    Reply

Products
Downloads
Support