SDK API - Map Styles to Tags (StyleExportTagMaps)

Hello everybody,
I am developing a script to specialize the export tag mapping tool on CS5.5
I have found an object called "StyleExportTagMaps".
I would like to know two things:
Wich object is its parent? i.e. from which Object should it be called from to create a new "StyleExportTagMap" Object. I have unsuccessfully tried to make the call from:
The Document Object:
myStyleExportTagMapA = myDocument.StyleExportTagMaps.add(...)
The Paragraph Object, which is the "MyStyleExportTag" object parent (the element, but not the list):
myStyleExportTagMapA = myDocument.paragraphStyles.item(myStyleAName).StyleExportTagMaps.add(...)
What values should you send to the add method as parameters 1, 4, 5? i.e:
exportTypeParam:String
exportTagParam:String
exportClassParam:String
exportAttributesParam:String
withPropertiesParam:Object
Thanks in advance,
Andres Mendoza

Hello Evreybody,
I have allready figuered out the object's parent, and it is definatelly a ParagraphStyleItem (but the class name doesn't begin with capital letter):
The ParagraphStyle Object, e.g:
myStyleExportTagMapA = myDocument.paragraphStyles.item(myStyleAName).styleExportTagMaps.add( ...)
Now I would like to know, the argument values for the 1st, 4th and 5th parameters, the add method expect to recieve (I haven't been able to create a valid StyleExportTagMap object):
myStyleExportTagMapA = myStyleA.styleExportTagMaps.add("1st???", myXMLTagAName, "TheExportClass", "4th???", "5th???"); i.e:
exportTypeParam:String
exportTagParam:String
exportClassParam:String
exportAttributesParam:String
withPropertiesParam:Object
Furthermore, what I really need to know is how do you specifically map a style to a specific Tag and class value. I was trying to use "xmlExportMaps.add()" and "mapStylesToXMLTags()" methods. It is possible to map a Style to a Tag with these methods, but I couldn't figure out how to set the class associated to the Tag (this is how I found the StyleExportMap Object, which I'm trying to use), e.g:
myStyleName: h2.fakecaps
Expected associated Tag name: h2
Expectede associated class name: fakecaps
Expected "template.css" values when exporting to ePub file: h2.fakecaps{...}
Thanks in advance,
Andres Mendoza

Similar Messages

  • INDESIGN GLITCH: Creating an XML file from Indesign Layout - Issue "Using more than one line of GREP" & "Map Styles to Tags"

    I currently create XML from InDesign CC by Mapping Style to Tags.
    - The Paragraph Styles are manually apply to text. These styles include multiple lines of GREP to automatically apply character styles.
    - I map some of the paragraph and character styles to prebuilt tags that have the same name "Map Styles to Tags".
    I have found through trouble-shooting that InDesign is unable to "Map Styles to Tags" for more than one line of GREP. I therefore have to chose which line of GREP to automatically tag and which lines to manually tag.
    Please can anyone help, I need to automatically map tags to at least two character styles in one paragraph via GREP.
    Thanks,

    OK. The best I can suggest is running a Find/Change like this:
    Which will actually apply the character style to the italics (and I would do the bold as well just to make certain). Then run the Map Styles to Tags again, using the Apply by Name. Which will tag the italics.
    I don't know why ID can map to the bold and not the italic character style. It either should do them both (as in this instance) or none at all as the character styles are not actually applied by the grep, just the styling from the character styles.
    Mike

  • Map styles to tags v. Map tags to styles

    Hi everyone,
    Indesign CS4 has an option in the tags panel to:
    1) Map styles to tags
    and
    2) Map tags to styles
    Does anyone know what the difference between these two options are?
    Appreciate any help.

    Tags and Styles serve two separate functions.
    A Tag defines data that belongs to a specific element and is enclosed with an opening and closing tag.
    example:  <element>  This copy will be used for a headline  </element>
    A Style defines how that data will appear with specific attributes: font, font size, color, etc.
    So, say I have an Indesign document that has a predefined paragraph style named: Headline (with attributes of Times New Roman Bold, 18 Point) and I import a file that is tagged like my example. I can map the tag "element" to the style "Headline" and the import can automate the process like this:
    This copy will be used for a headline

  • Error messages when using Mapping Styles to tags

    We are using the XML Export from Indesign as part of our translation workflow. This has been fine until today. I am trying to tag an older document and when I use the Mapping Styles to Tags option I get the following error message:
    "Cannot tag the selected text because the text contains part of a hyperlink or cross reference. Change the text selection to include the entire hyperlink or cross-reference"
    I have no text selected, and I have tried tagging each Cross-Reference in the document and then repeating the map styles to tags all with no result. I don't really understand the message. Can anybody help me?
    I'm using InDesign CS6 Verison 8.0.1 on a MacBook Pro OSx 10.6.8
    Thanks
    Steve M

    Do you still have the original version of ID in which the file was made? If so, try the export to interchange from that. It frequently works better than after conversionin a new version. Open the exported file in CS6 and try your mapping again.
    If that still doesn't work, we'll need someone else to step in who has some XML experience.

  • Map Styles to Tags Problem

    For the first time ever I am having problems running the Map Styles to Tags commmand in InDesign CS3. The program takes some time to d the command but then an empty dialog pops up and the tagging has not happened. Any ideas in taking the text step to debug this problem?
    InCopy CS3 on a PowerMac DualG5/Mac OS X 10.5.8. Extra plug-ins include the K4 workflow system, Universal Type Server plug-in, Notes Manager, Overset Manager. I have attempted to do this operation via InCopy on this article and encountered the same problem.

    I finally figured out this problem. The main article (InCopy document) was very, very long. Once I removed all change tracking in InCopy and turned off change tracking (which involved some changes in K4 administration) everything worked perfectly.

  • Problem mapping styles to tags

    How do I prevent creation of the "Story" tag during mapping of styles to tags?
    I need to achieve the following using a script:
    I have two XMElements in the structure view, say Title and Body as follows:
    <Root>
      <Title/>
      <Body/>
    </Root>
    Also, I have two text frames in a document. The first text frame has text with parastyle named "titlestyle".
    And the second text frame has text with parastyle named "bodystyle".
    What I need is when I do mapping of styles to tags (mapStylesToXMLTags) then the text with "titlestyle" should be placed as contents of title tag and the text with "bodystyle" should be placed as contents in body tag.
    The problem is that when I map styles to text a Story tag is created for each text frame and the original Title and Body tags remain as it is, i.e, empty.
    I get:
    <Title></Title>
    <Body></Body>
    <Story><Title>here are the contents</Title></Story>
    <Story><Body>here are the conents</Body></Story>
    NOTE: If you select the text in text frame and then click the tag in structure view, then the contents are placed correctly. This is what I need as follows:
    <Title>here are the contents</Title>
    <Body>here are the contents</Body>
    Regards,
    Vinoth

    Hi,
    Can you provide some text examples from your xml file. This because to identify the concern in the xml coding.
    Regards
    Thiyagu

  • Map by name, Tags to Styles

    In JavaScript, I can map Styles to Tags using autoTag but how do I map Tags to Styles by name?
    Thank you,
    Richard

    #target indesign
    #include "/Applications/Adobe InDesign CS3/Scripts/Xml Rules/glue code.jsx"
    var myDocument = app.activeDocument;
    var myRuleSet = new Array (new ProcessAll);
    with(myDocument){                   
       var elements = xmlElements;
       __processRuleSet(elements.item(0), myRuleSet);
    myDocument.mapXMLTagsToStyles();
    function ProcessAll(){
       this.name = "ProcessAll";
       this.xpath = "//*"; 
       this.apply = function(myElement, myRuleProcessor){
          with(myElement){
             $.writeln(markupTag.name);
             var myParagraphStyle = myDocument.paragraphStyles.itemByName(markupTag.name);
             if (myParagraphStyle != null){
                myDocument.xmlImportMaps.add(markupTag.name, markupTag.name);
       return true;

  • Map Styles to XML Tags

    Hi,
    My InDesign cc2014 freezes when I apply manually  'mapStylestoXMLTags' to a document. any idea?
    Thank you,

    +1 for Harb's reply.
    As for an answer, as much as it is, if indesign freezes when manually mapping styles to tags (or the other way around), there is not much you can do. In my experience that always happens if the indesign document is large. Most you can do is post a bug report with Adobe and hope for the best.
    As a workaround, you can iterate through the textStyleRanges, test each one and create the xml structure, but it's not a easy solution.

  • Mapping Styles from Word 2010 to RoboHelp HTML 10

    Hello all,
    I have created customized styles for myself and my team to use for authoring content, which I then import to RoboHelp, as I am the only individual who understands RoboHelp and HTML/CSS. I created a corresponding CSS style sheet in RoboHelp to correspond with the names of the Word styles. When I go to import the files in RoboHelp, I am running in to an issue with paragraph tags and heading tags.
    When I import a file from a Word document, I have not found a way to map a <p> tag that is parsed from a Word document to an <h> tag, as heading tags do not appear as a selectable item in the Conversion Settings  window when importing Word files. I would be able to keep the formatting if I left the headings as <p> tags; however, it is my understanding that RoboHelp 10 search relies heavily on the heading tags for weighting search results. I have about 400 topics, and search is used heavily by those using my documentation. I would prefer to keep the <h> tags in place in the RoboHelp files and retain the search functionality, if at all possible, while finding an easier import option from Word files.
    At this point, I have to manually change the HTML for each <p> tag to match the correct heading style. While Find and Replace works well for this, I would prefer to have a seamless import from Word (which bloats an HTML file horrendously, I know) by mapping from one style to the next. Has anyone found a way to map a <p> tag to an <h> tag so that the search functionality does not suffer? Or am I just approaching this the wrong way?

    You are correct in your assumption that I am referring to paragraph styles when speaking of <p> tags. The paragraph styles come over as <p> tags, and I was just thinking of my style sheet. Sorry for the confusion.
    Speaking of my workflow, I'm attempting to map the styles for one topic at a time when importing a new Word file. I set up a test project to test out my style sheet, as I am upgrading from RoboHelp 7 right now. .I need to get one document to map correctly to save the settings for future imports.
    From the Import window, I click the Edit... button in the Word Document section. After RoboHelp scans the Word file, a list of all the styles from the Word document display. When I attempt to select from the available styles I want to map to from my RoboHelp style sheet, I don't have the option to select the heading styles I created in my RoboHelp CSS file. Does this provide you enough information to give you context on how I am attempting to map the styles?
    I found this article that leads me to belive that RoboHelp does not support mapping to a customized heading style from a CSS file. I realize that this is around the printed output, but it states the following:
    If custom heading styles aren’t named in the format Heading <number>, they are not treated as headings.
    If it doesn't work going from HTML to printed output, I'm guessing that there is not support going from Word to HTML. Am I wrong in this assumption? Do I just need to alter my style sheet to only use the standard <h> tags to fix this issue?

  • [CS5 JS] Problem in Applying character styles xml tag names

    Hi,
    e.g. 1
    <italic>This is a italic text with <sup>superscript value</sup></italic>
    e.g.2
    <sup>This is a superscript text with <bold>Bold superscript</bold></sup>
    <italic>  mapped to character style "italic" and
    <sup> mapped to character style "sup"
    In my java script I already mapped the xml tags to specific character styles. In some of the cases (see e.g.1 and e.g.2) I need to map it to other character styles.
    In e.g.1 I need to apply a new character styles "italicSup" for the text "superscript value" same way
    In e.g.2 I need to apply a new character styles "BoldSup" for the text "Bold superscript".
    Can any know how to do this?
    Green4ever

    FYI, I am using
    Win Xp-SP2, CS5 7.0.3

  • XML Styles to Tags--template?

    Hi,
    First, many thanks to the users that make this site so helpful.
    My question today is this: I have a book full of chapters that will each be exported to XML.  In each chapter, there are styles that I need to "Map to Tags" (which I've done by hand for the first chapter) for the final XML.  Since the styles will be named the same in each chapter, is there a way for me to retain the mappings to the tags for the next chapter so that I do not have to make those mappings again?
    Atomik Xport's add-on product calls the mapping a "ruleset" (.rls).
    I'd like to avoid scripting this if possible, since the styles for this particular project are 100+ (gulp).
    Any ideas?
    -ThisGuy

    ThisGuy-500 wrote:
    Hi,
    First, many thanks to the users that make this site so helpful.
    My question today is this: I have a book full of chapters that will each be exported to XML.  In each chapter, there are styles that I need to "Map to Tags" (which I've done by hand for the first chapter) for the final XML.  Since the styles will be named the same in each chapter, is there a way for me to retain the mappings to the tags for the next chapter so that I do not have to make those mappings again?
    Atomik Xport's add-on product calls the mapping a "ruleset" (.rls).
    I'd like to avoid scripting this if possible, since the styles for this particular project are 100+ (gulp).
    Any ideas?
    -ThisGuy
    Tags can be saved and loaded via the Window > Tags panel menu.
    Although tag mappings don't appear in the Synchronize Options dialog box of the Book panel's menu, it's worth experimenting to see if the style-to-tag mappings are indeed propagated to component files in a book panel. Let us know your results. If it doesn't work, consider filing a feature request at: wish
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices

  • How does one create the Process List (AdminUI) with the provided SDK API?

    Currently we are developing a custom component for Adobe LiveCycle, which should offer the following service operation:
    Fetch a list of schedulers (= long-lived processes with that loop with a Wait-operation) and check whether there are instances running for them
    Input: none
    Output: A list of (long-lived) process definitions together with a list of (running) process instances in XMLXML format could look like:
    <processes>
         <process>
              <name>Mortage/Util/Scheduler A</name>
              <application>Mortage</application>
              <status>Active</status>
              <creationDate>2015-03-25T13:00</creationDate>
              <processInstances>
                   <processInstance>
                        <id>12314</id>
                        <status>RUNNING</status>
                        <createdOn>2015-03-25T13:01</createdOn>
                        <modifiedOn>2015-03-25T13:02</modifiedOn>
                        <operations>
                             <operation>
                                  <name>Set Value X</name>
                                  <status>COMPLETE</status>
                                  <createdOn>2015-03-25T13:01</createdOn>
                                  <completedOn>2015-03-25T13:01</completedOn>
                             </operation>
                             <operation>
                                  <name>Set Value X</name>
                                  <status>STALLED</status>
                                  <createdOn>2015-03-25T13:02</createdOn>
                                  <completedOn>2015-03-25T13:02</completedOn>
                             </operation>
                        </operations>
                   </processInstance>
                   <processInstance>
                        <id>12315</id>
                        <status>RUNNING</status>
                        <createdOn>2015-03-25T13:02</createdOn>
                        <modifiedOn>2015-03-25T13:02</modifiedOn>
                        <operations>
                             <operation>
                                  <name>Set Value X</name>
                                  <status>COMPLETE</status>
                                  <createdOn>2015-03-25T13:02</createdOn>
                                  <completedOn>2015-03-25T13:02</completedOn>
                             </operation>
                             <operation>
                                  <name>Set Value X</name>
                                  <status>RUNNING</status>
                                  <createdOn>2015-03-25T13:02</createdOn>
                                  <completedOn></completedOn>
                             </operation>
                        </operations>
                   </processInstance>
              </processInstances>
         </process>
         <process>
              <name>Mortage/Util/Scheduler B</name>
              <application>Mortage</application>
              <status>Active</status>
              <creationDate>2015-03-25T13:00</creationDate>
              <processInstances/>
         </process>
    </processes>
    Though I'm unable to retrieve these kind of processes, since the SDK API does not offer a way to fetch these kind of processes.
    I tried the following Quick Start: http://help.adobe.com/en_US/livecycle/10.0/ProgramLC/WS624e3cba99b79e12e69a9941333732bac8- 7d27.html
    Quick Start (EJB mode): Searching for Process Instances using the Java API
    (and yes I went through all the possible options (other Quick Starts, API documentation))

    Yes, removing the block diagram obscures the code so much that not even newer versions of LabVIEW can make sense of it.
    I think under the hood it must be converting it to Perl.
    Spoiler (Highlight to read)
    If you believe this and have lots of money please contact me with your credit card info 
    If you believe this and have lots of money please contact me with your credit card info 
    =====================
    LabVIEW 2012

  • 1.1 vs 1.4 : SDK API's and how they relate to JVM versions

    Hey all,
    I'm hoping some Java expert/guru/enthusiast can help me understand a little (OK, a lot) more about designing applets for backward compatibility .
    My situation is that I need to design applets which are compatibile with the built-in Java features of Internet Explorer and Netscape 6.x - which appears to be JVM versions 1.1.4. I know going with Java2, JDK 1.4, web start whatever would be MUCH better, and will do whatever I can to push clients to plug-in & non-MS browsers, etc. etc., but believe me, supporting MS JVM 1.1.4 is a requirement...
    ...So my question is, are there any things added to the JDK since 1.1.4 that can be used in a 1.1 JVM? If so, how would I be able to determine what those things are without testing them all?
    Like could i take java source for some 1.4 SDK code and add them to a 1.1 project? how do I know if the api requires a new intrinsic or not? (native keyword?)
    Also, I'm using the 1.4 SDK compiling for 1.1 targets, aside from the 1.4 SDK api's & packages, will there be any code I can write that will happily compile for a 1.1 target but then mysteriously fail when testing? What I mean is, if I use a new language feature or compiler feature since 1.1, will the 1.4 compiler's byte-code still be 1.1 compatible, or will there be some potential run-time problems?
    thanks

    As a rule of thumb, avoid all swing components (just use awt) because they are only available in 1.2. You can use all enhancements and bug fixes to awt components that are available in 1.4 (even 1.5).
    ;o)
    V.V.

  • How to create cross tab reports using RAS SDK api with Crystal Reports XI

    Hi Everybody,
    Iam generating reports in a web-based application with Crystal Reports XI using Report Application Server(RAS) SDK API. The columns in my report exceed that of an A4 sized page. So, when I export that report to pdf, only those columns that fit to a page are showing up. To solve, this problem, I thought of using cross tab. But, I donot know how to generate cross tab report using RAS SDK API. I have tried to get some code from the internet. But, I did not find any java code for that.Can some one give me some sample code.It is very urgent.
    Thanks in advance.

    Hi,
    The easiest way I use is to create the worksheet as regular table and then when i verify the data I get (non aggregate) I duplicate it as a cross tab.
    In the duplication wizard I just need to define the axis (using drag and drop).
    if you want to create a cross tab from the beginning you need to define that in the new workbook wizard (check the "cross tab" rather then "table"), chose your fields and define the place you want them.
    The data point (the center of the cross tab) is aggregated as to your machine definition and will happen automatically.
    for example: to find the amount of receipt by months:
    On the left put the "Buyer Name", on top put the "Months" and in the data point put the amount.
    What you'll get is something like:
    months: jan feb mar apr ......
    buyer_name
    jhon_smith 100 50 30 250 ......
    jhon_doe 80 45 90 453 ........
    and so on.....

  • Remove hidden text using SDK api

    HI Guys,
    I am new to SDK and would like to know if there is an API to remove hidden text functionality the one that described here. I need a separate .Net library on top of Acrobat SDK that could remove all hidden data from pdf and save it.
    Please point me to an example or documentation where to start from, if it can be done?
    Thanks,
    Andrey

    I have found in sdk api the following method:
    PDWordFinderAcquireVisibleWordList()
    "Finds all words on the specified page that are visible in the given optional-content context" what does it means 'visible'? it is related with the 'heuristic' Acrobat uses to show 'hidden text'?
    It is not clear also the 'PDOCContext ocContext' parameter this method uses.
    Thanks

Maybe you are looking for

  • Connect iPad to my TV

    Hello, I want to buy a cable from amazon that i can connect my ipad to my Projector OR TV , btw i dont have a fancy new smart tv...i have an old tv with three ports(Yellow, White and Red) . Ive been looking on amazon and i like this one http://www.am

  • MY ITUNES GIFT CARD DOES NOT WORK. FOR 3 DAYS I'VE BEEN TRYING TO BUY SONGS, AND IT DOES NOT WORK. I NEED A PHONE NUMBER TO SPEAK TO SOMEONE.

    THIS IS LIKE THE FOURTH TIME I AM WRITING ABOUT THIS. FOR THREE DAYS I'VE BEEN TRYING TO BUY SONGS PAYING WITH AN ITUNES GIFT CARD, I DID SIGN IN, PUT THE CODE OF THE CARD WHERE IT SAID "REDEEM", AND IN ITUNES, NEXT TO MY SIGN IN NAME, APEAR THE $15.

  • PhotoShop CS6 .psd file currpt/not open :( my lots hard work

    Hi Friends, Today Accidentally my photoshop has closed at that time i am working on my demo template work from last 2 months, so again i open my .psd file thier is error prompt "could not complete your request because the file is not compatible with

  • Music Store Problem

    I am having an issue when I perform a search in the music store. I key in the band I want to search for and "accessing music store" comes up and it looks like everything is fine. Then I get a message saying that "iTunes has encounted a problem and ne

  • Hierarchy Restrictions as Per Query

    Hi , We have one query that is using GL Account InfoObject. We are displaying GL account as Hierarchy in Bex Output. There are 5 hierarchies in BW for GL Account Info Object. I created one Variable to select hierarchy while running the query. When us