What do you mean by "tagging" this time? Mapping Styles to Tags causes paragraphs to be XML tagged according to their paragraph styles and the map.
Text frames can't be tagged in this context, only stories.
Dave
This is a discussion on CS2 (JS) Tag Frames - Adobe Indesign ; I have some text frames that I need tagging based on their Paragraph Styles. Is this what Mapping Styles to Tags all about? How can I do this? Norbert...
I have some text frames that I need tagging based on their Paragraph Styles. Is this what Mapping Styles to Tags all about?
How can I do this?
Norbert
What do you mean by "tagging" this time? Mapping Styles to Tags causes paragraphs to be XML tagged according to their paragraph styles and the map.
Text frames can't be tagged in this context, only stories.
Dave
What I meant was I have a few tags in the tags pallette. Now based on a particular Paragraph Style of a text frame, I need to apply a tag from the tags pallette to it.
Norbert
You can't tag text frames. Stories or text within stories.
If a text frame is the whole story (or, rather, the text in the frame is a complete story), the result of tagging the story is very similar to tagging the frame.
Are you doing this tagging for XML export purposes or are you using tags for some other purpose?
Dave
I am doing it for XML Export.
I have many document with multiple text frames with a different style for each text frame. I can manually tag each text frame to a tag from the pallette but I want to automate this
Norbert
Any ideas suggestions Dave?
Norbert
Are these text frames complete stories?
If so, then what you're really doing is tagging the story. And, indeed, if you map styles to tags, that should work if you then use autotag, although you have to be careful because autotag will untag anything that isn't included in its maps.
Might be better to tag text style ranges.
There have been a number of examples of that kind of tagging posted here recently. Search the forum on xmlElement and look for examples and xmlElement.add()
Dave
Dave,
The textframes are not threaded if thats what you mean.
One text frame is as an example a frame for the Heading
and another for the body copy. These are individual frames and not threaded.
Looked for xmlElements but couldn;t figure out which of the threads there would work for me.
Norbert
Dave I don't know why but the same code posted above just worked.
I didn't even do any trashing of my Preferences.
Weird huh!
Norbert