Forum Replies Created
-
mag3737 October 24, 2017 at 12:01 am
Reply To: Deleting an element
October 24, 2017 at 12:01 amParticipants 0Replies 95Last Activity 5 years, 3 months agoOk, 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]mag3737 October 23, 2017 at 11:27 pm
Reply To: Deleting an element
October 23, 2017 at 11:27 pmParticipants 0Replies 95Last Activity 5 years, 3 months agoI 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.
mag3737 April 26, 2016 at 4:56 pm
Reply To: Adding a line break for each indexterm
April 26, 2016 at 4:56 pmParticipants 0Replies 95Last Activity 6 years, 9 months agoThe “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.
mag3737 April 12, 2016 at 7:38 pm
Reply To: Branch filtering, DITA 1.3
April 12, 2016 at 7:38 pmParticipants 0Replies 95Last Activity 6 years, 9 months agoWe 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_DTDditavaldtdIf 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.
mag3737 February 23, 2016 at 6:34 pm
Reply To: Map Editor/Properties panel does not appear when I create a new theme map.
February 23, 2016 at 6:34 pmParticipants 0Replies 95Last Activity 6 years, 11 months agoHi 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.
mag3737 August 5, 2015 at 9:35 pm
Reply To: CSS: Hiding Specific PIs and Styling Selected PIs Differently
August 5, 2015 at 9:35 pmParticipants 0Replies 95Last Activity 7 years, 5 months agoThe $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?
mag3737 August 5, 2015 at 9:17 pm
Reply To: Mini-templates with ctm file
August 5, 2015 at 9:17 pmParticipants 0Replies 95Last Activity 7 years, 5 months agoAn 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
mag3737 April 26, 2014 at 12:49 am
Reply To: Integration of XMetaL WebHelp plugin with IXIASOFT DITA CMS
April 26, 2014 at 12:49 amParticipants 0Replies 95Last Activity 8 years, 9 months agoIf 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.
mag3737 December 4, 2013 at 1:27 am
Reply To: XMetaL and EasyDITA CMS
December 4, 2013 at 1:27 amParticipants 0Replies 95Last Activity 9 years, 1 month agoHi 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.
mag3737 June 28, 2013 at 7:38 pm
Reply To: DITA Editor style – add a background image?
June 28, 2013 at 7:38 pmParticipants 0Replies 95Last Activity 9 years, 7 months agoXMetaL 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 …
mag3737 March 21, 2013 at 11:15 pm
Reply To: Forgetful XMetaL 8 Tool Bars?
March 21, 2013 at 11:15 pmParticipants 0Replies 95Last Activity 9 years, 10 months agoThe 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.
mag3737 March 21, 2013 at 9:51 pm
Reply To: Using keyword variables in topic titles
March 21, 2013 at 9:51 pmParticipants 0Replies 95Last Activity 9 years, 10 months agoThis sounds like a limitation of the DITA OT processing. Have you asked or searched in the Yahoo! dita-users mailing archives?
mag3737 March 21, 2013 at 9:49 pm
Reply To: XMetal 8.0 trial removes XMetaL 7.0 installation …
March 21, 2013 at 9:49 pmParticipants 0Replies 95Last Activity 9 years, 10 months agoYou 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?)
mag3737 March 20, 2013 at 12:17 am
Reply To: XMetal 8.0 trial removes XMetaL 7.0 installation …
March 20, 2013 at 12:17 amParticipants 0Replies 95Last Activity 9 years, 10 months agoHi 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.htmlmag3737 December 14, 2012 at 10:58 pm
Reply To: Images (.png) in tags on view shows up as red box with X
December 14, 2012 at 10:58 pmParticipants 0Replies 95Last Activity 10 years, 1 month agoSome 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?
-
AuthorPosts