Can a DTD map custom styles to standard HTML tags?

Hi,
Every week the publishing house I work for has to manually copy the entire content of a weekly magazine on an article-by-article basis into an online database, the web version of the magazine. This means copying the styled InDesign content and inserting it into the database as plain text, re-finding all those italics (and any other styling) and putting it all back manually.
I already know that I can create tags with all the basic HTML styles needed in the 'Tags' palette in InDesign, and then export that.
The trouble is that when I re-import the XML file, I have to laboriously map the custom house-styles (there are many of them and they're boiler-plate, i.e. consistent, across all the magazine's InDesign styles) to the imported HTML styles.
So here's my question:
Am I wrong to believe that it's possible to create a DTD that would import not only the HTML tags but their relationship to the existing, custom-named InDesign tags that are common to all the magazine's documents?
As an InDesign wish-feature, what's missing from the 'Tags' corner-menu is 'Export DTD' - if that was available, I could map the whole relationship between Indesign Styles/HTML styles just one time and later import the DTD on other articles; which would tell the Structure View how to convert our custom house-styles (both Paragraph Styles and Character Styles) into HTML tags and cut this time-consuming task in half.
Thanks!
EDIT: I perhaps should have mentioned that obviously the final stage after this 'dream conversion' is to export the XML from the Structure View. Then I can just open the saved XML file and paste it into the CMS with formatting intact.
Added extra explanation of the workflow.

geekbelief wrote:
Googling XSLT and InDesign, it seems that such a stylesheet, if I were to create it, possibly couldn't handle spaces in the original InDesign style-names..? If anyone knows that for a fact, I'd be glad to be aware of it before starting down a long path to a roadblock.
That's a good question. Let's find out together, shall we. I just created a text frame with Lorem Ipsum text, and created "a style" (with space) and "bstyle" (without). Now ... Map Style to Tag doesn't work, presumably because the tags don't exist and I assumed this would *create* them. And if you create one, ID complains "tags cannot contain tabs or spaces". (So can you have a Tab in your paragraph style name then? Gosh.)
... Forcing in a Non-breaking Space (#160) also doesn't work, this time ID simply says "A tag name cannot contain the character ' '."
I think that's one you have to do manually.
geekbelief wrote:
I'm guessing that if I wanted to change the InDesign style 'Subheader' into 'h2', that snippet of the XSLT would be like this...?
<xsl:template match="Subheader"><h2><xsl:apply-templates /></h2></xsl:template>
Yeah, that's the correct syntax. But you cannot use an XSLT for mapping InDesign styles to tags. The process as I described works when importing your XML into InDesign, and changes the tags in the XML file to match InDesign styles. That's the other way around.
I don't expect anyone to write this for me, but any hints or links to tutes that I haven't yet found would be appreciated!
For a simple one-to-one translation of tag names, you can use this all the way. You only need any other XSL command if you want to do more than simple translation, such as filtering, moving, combining, or separating tags or their contents.
There are lots of good tutes on the 'web for XSLT, although it seems interest has diminished lately. Half a decade ago XSLT was "hot"; nowadays the iPad is. Is there any news on improvements for ID's native XSLT support in CS6? I dare bet there are none at all -- it's already been deemed "yesterday's technology" by Adobe's Dev Team, just as Flash was discarded per CS5.5. I'm sure next year DPS will follow; and the year after that EPubs will be gone for good as well, replaced by holograms, transmitted live from your local library.

Similar Messages

  • Mapping InDesign style names to PDF tags

    I've mapped style sheet names to tags in InDesign, and they display correctly in the InDesign structure panel, but when I export a PDF, it is my style sheet names that persist in the PDF tag window. Any ideas how to fix this?

    Hi Jongware
    Many thanks once again for your help. I have one more tweek to make to this code and that is to define which page I want to start loading pdfs from. The original script this is based on does ask me, but the code below does not and I am not sure which line of code I need to do this.
    //DESCRIPTION:Place PDF pages 2-up
    // Jongware, 22-Sep-2009
    // (based on PlaceMultipagePDF.jsx)
    //Make certain that user interaction (display of dialogs, etc.) is turned on.
    app.scriptPreferences.userInteractionLevel = UserInteractionLevels.interactWithAll;
    //Display a standard Open File dialog box.
    var myPDFFile = File.openDialog("Choose a PDF File", "PDF files:*.PDF");
    if(myPDFFile == "" || myPDFFile == null)
      exit(0);
    myDocument = app.activeDocument;
    myPage = myDocument.pages.item(0);
    myPlacePDF(myDocument, myPage, myPDFFile);
    function myPlacePDF(myDocument, myPage, myPDFFile){
    var myPDFPage;
    app.pdfPlacePreferences.pdfCrop = PDFCrop.cropMedia;
    var myCounter = 1;
    var myBreak = false;
    while(myBreak == false){
      if(myCounter > 2 && (myCounter & 1)){
       myPage = myDocument.pages.add(LocationOptions.after, myPage);
      app.pdfPlacePreferences.pageNumber = myCounter;
      if (myCounter & 1)
       myPDFPage = myPage.place(File(myPDFFile), )[0];
      else
       myPDFPage = myPage.place(File(myPDFFile), )[0];
      myPDFPage.horizontalScale = 90;
      myPDFPage.verticalScale = 90;
      if(myCounter == 1){
       var myFirstPage = myPDFPage.pdfAttributes.pageNumber;
      else{
       if(myPDFPage.pdfAttributes.pageNumber == myFirstPage){
        myPage.remove();
        myBreak = true;
      myCounter = myCounter + 1;
    I need to import more than one document into my A3 document, so I need to be able to determine where to start placing.
    Then the script will be perfect - many thanks - hope you can help.
    Regards
    G

  • How can I make a custom style look the same in both printed and online?

    My specs:
    RH 9.0.2.271
    Windows 7, 64-bit
    Word 2010
    The Background Info:
    So I created some custom css styles to try and mimic the look of a message box in our documentation. Here's the css code:
    .MsgBox {
        color: #000000;
        border-left-style: Solid;
        border-right-style: Solid;
        border-top-style: Solid;
        border-bottom-style: Solid;
        font-size: 10pt;
        background-color: #eeeeee;
        border-left-width: 4px;
        border-right-width: 4px;
        border-top-width: 4px;
        border-bottom-width: 4px;
        border-left-color: #cdcdcd;
        border-right-color: #cdcdcd;
        border-top-color: #cdcdcd;
        border-bottom-color: #cdcdcd;
        width: 350px;
        padding: 5px 5px 5px 5px;
        box-shadow: 10px 10px 5px #888888;
        margin-bottom: 7pt;
    .MsgBoxTitle {
        color: #000000;
        border-left-style: Solid;
        border-right-style: Solid;
        border-top-style: Solid;
        border-bottom-style: Solid;
        font-size: 10pt;
        background-color: #cdcdcd;
        border-left-width: 4px;
        border-right-width: 4px;
        border-top-width: 4px;
        border-bottom-width: 0px;
        border-top-color: #cdcdcd;
        border-bottom-color: #cdcdcd;
        border-left-color: #cdcdcd;
        border-right-color: #cdcdcd;
        width: 350px;
        padding: 5px 5px 5px 5px;
        box-shadow: 10px 10px 5px #888888;
    My HTML Code:
    <div class="MsgBoxTitle">
        PC-DMIS MESSAGE:
    </div>
    <div class="MsgBox">
        <p>Please do the following steps in the indicated order.</p>
        <p>1. Remove the current SH-1/2/3 stylus.</p>
        <p>2. Attach the SHSP (Stylus Holder Setting Piece).</p>
        <p>3. Jog the probe to a safe location with a clear line of approach
         to the port(s) being calibrated. </p>
        <p>4. Then click OK.</p>
        <p>After you click OK the machine will begin DCC measurement.</p>
    </div>
    The Expected Output:
    Here's how it renders in a browser (the title is MsgBoxTitle, the body is the MsgBox style). I'm happy with how it looks there, even if the box shadow doesn't always display:
    The Ugly Printed Output:
    And here's what it looks like in the printed output.
    Ugly. Are there any tricks to get the printable (doc) output to match the online? Ideally, on the printed output, I'd like to have all the white space in my pseudo message box removed so it looks just like the online.

    Hi Peter. Thanks for the reply.
    I assumed that if I used the project style sheet during the export, Word would convert the style so that it looked the same as in the HTML. Is that a bad assumption? I'm currently not mapping to any template equivalent for these message box styles. I did try it as one of my attempts, but I couldn't figure it out. It never seemed to take the style in the .dot.
    Anyway, if I use just 1 style, such as just the MsgBox, I obviously don't get the white paragraph between the title and message. That white paragraph comes from the first <p> tag in the MsgBox style. But I need to have the <p> tags in there because they're better for our localization process than line breaks.
    I did do some tweaks that made it look better. Basically I structured it so that the MsgBoxTitle div is now inside the MsgBox div. Something like this:
    <div class="MsgBox">
        <div class="MsgBoxTitle">PC-DMIS MESSAGE: </div>
        <p>Please do the following steps in the indicated order.</p>
        <p>1. Remove the current SH-1/2/3 stylus.</p>
        <p>2. Attach the SHSP (Stylus Holder Setting Piece).</p>
        <p>3. Jog the probe to a safe location with a clear line of approach
         to the port(s) being calibrated.</p>
        <p>4. Then click OK.</p>
        <p>After you click OK the machine will begin DCC measurement.</p>
    </div>
    And then I adjusted my styles borders, padding, and thickness. That helped it look more connected, but still doesn't look quite right:
    Would love to get rid of that white space after the title.
    If you have time, I would be interested in a more detailed example of how you did it.

  • How to map customer field to standard field using BAPI_PO_CREATE1 ?

    Hi,
    i am trying to transfer a customer field from SRM to ECC60 through BAPI_PO_CREATE1;
    In SRM the EAN field does not exist; Thus we have created it.
    While transfering the PO to ECC, we try tu use BBP_PO_INBOUND_BADI to map the SRM field to the EAN11 field in EKPO.
    However, we do not find the EAN11 field in the BAPIPOITEM structure.
    Steps already done :
    BBP_CUFMAP
    How do we map a customer field coming from an external system to an ECC standard field ?
    Kind regards,
    Yann

    interface name is: SalesOrderCreateRequestConfirmation_In
    have a look at this link to get some more details:
    http://help.sap.com/esoa_erp2005/helpdata/en/44/62e384e370311de10000000a155369/frameset.htm
    is that what you need?

  • How can you specify a custom style class for an ADF component (column)?

    We are using ADF 10_1_3_3_0 on Tomcat.
    We would like to specify an additional style class for a column header. We have specified the following style:
    {color:#808080}af|column.formHeader::header-text
    text-align: right;
    background-color:brown;
    border-color:#999999;
    font-family:Verdana,Arial,Helvetica,sans-serif;
    color: blue;
    }{color}
    {color:#808080}&lt;af:column sortable="true" formatType="text" styleClass="formHeader"&gt;{color}
    This does not seem to work. In our tests, the CSS gets generated but the new style class for the column header does not seem to be generated/mapped. I reveiwed this post: Re: Jdev 11g: how to set width of some components on panel form layout. Is this specification (component.className::selector) applicable for the 10g version of ADF?
    Additionnaly, are their specifcations/details for these selectors (e.g. ora-rule-ref, -rt-rule-ref, -tr-rule-ref). I am not clear on what they are mapped to and how they are used.
    Thanks
    Edited by: user10477345 on Oct 27, 2008 6:48 AM

    Hi,
    The column's style classes will be added on the <td> elements, not the header sadly. So for your use case you'll have to place the class on the table itself then use the selector
    af|table.MyStyleClass af|column.formHeader::header-text{}Sadly this will affect all columns, not just one so I don't know if it's going to fir your need.
    Regards,
    ~ Simon

  • Can I define 2 Distinct Style for A link tag?

    I created a template for my main menu and other universal contents.  the items on my main menu are all matched with specific colors that I chose,  (let's say red when normal and purple when hover)
    now, a page I inherit from the template, let's say B, has some links as well... and they should not inherit the link style defined in my templated.  (for example, they should be blue and white when hover)
    is there any ways for me to do that?  right now, if i changed the link color for B, it.. well... does nothing
    (should the law of greater specificity allow the definition in children to override the parent?)
    so, how do i get the effect i want?  (red menu, blue other links)

    These may help:
    http://www.thepattysite.com/linkstyles1.cfm
    http://www.projectseven.com/tutorials/pseudoclasses/index.htm

  • Vertical text. Can FireFox display a vertical text? Which HTML tags should be used for that?

    The site http://habrahabr.ru/blogs/css/58732/ recommends a way for using vertical text in HTML/CSS (see example below). However my instance of Firefox 3.6.22 does not display this vertical text. Please let me know your recommendations/
    <html>
    <head>
    <title>1</title>
    <style>
    <!--
    .vertical { overflow:hidden; line-height:30px; position:relative; white-space:nowrap; width:30px; height:200px; border:1px solid #999; }
    -->
    </style>
    <body>
    <div class="vertical">Testing text</div>
    </body>
    </html>

    See: https://developer.mozilla.org/En/CSS/-moz-transform

  • Can method declared in JSP have HTML tags?

              Hi all,
              Can a method in JSP page have a HTML tags? (e.g. <td> or <tr>
              etc)?
              Can anybody just give a small example for the same?
              Thanks,
              Amar
              

              Thanks Gary,
              The session bean which is invoked from the JSP page, returns a collection of objects. And each object can have child objects also. In the JSP page i want to iterate through the collection to display the data and that's why the method required is recursive. What would be the better approach for this scenario?
              Regards,
              Amar
              "Gary Keim" <[email protected]> wrote:
              >Yes, that will work fine. However, you might want to strive to reach a
              >place where your JSPs are only "looking" at data held by JavaBeans. That
              >is, if you're going to have your JSP doing ANYTHING other than simply being
              >the face on other data, you might as well make it a plain ol' servlet.
              >
              >A common pattern is to have a master servlet do any logic processing, then
              >it redirects to a JSP for the presentation.
              >
              >-Gary
              >
              >"Amar" <[email protected]> wrote in message
              >news:[email protected]...
              >>
              >> Gary Thanks for your reply.
              >>
              >> In the recursive function which i was trying to write, i wanted to display
              >HTML, so that the function is responsible for display of the HTML also (it
              >was not possible to send the HTML back to the calling function and print it
              >in the scriplet, as the function is recursive). But we can use out.print
              >statement in that recursive function by passing the "out" (JSPWriter) object
              >to that function. So instead of putting static text in the function, we can
              >use out.print statements and acheive the same.
              >>
              >> Any suggestion? Any other better way to acheive the same?
              >>
              >> Regards,
              >> Amar
              >>
              >> "Gary Keim" <[email protected]> wrote:
              >> >I responded to Amar privately on this.
              >> >
              >> >-Gary
              >> >
              >> >"Amar" <[email protected]> wrote in message
              >> >news:[email protected]...
              >> >>
              >> >> Hi Gary,
              >> >>
              >> >> Thanks for ur interest. I wanted to write a method (function,
              >procedure)
              >> >in a JSP page, in that i want to write a HTML tags. I tried that but JSP
              >> >compiler throws error for that. Is it that i have to include some other
              >tag?
              >> >Am i missing something.
              >> >>
              >> >> <%!
              >> >> private void displayProxy(ArrayList ObjectsInfo, BaseLW aObj)
              >> >> {
              >> >> ProxyObjectDisplayInfo ObjInfo =
              >> >(ProxyObjectDisplayInfo)ObjectsInfo.get(0);
              >> >> int Cnt = ObjInfo.mColumnNames.size();
              >> >> String Str = new String();
              >> >> for(int j = 0; j < Cnt; j++)
              >> >> {
              >> >> Str = Str + aObj.getColumnValue((String)ObjInfo.mColumnNames.get(j)) +
              >" ,
              >> >";
              >> >> }
              >> >> Str = Str.substring(0, Str.length()-3);
              >> >> String StrHRef = new String();
              >> >> StrHRef = "<a href=\"client?client_id=";
              >> >> StrHRef = StrHRef + aObj.getColumnValue("ClientCode");
              >> >> StrHRef = StrHRef + "\">";
              >> >> try
              >> >> {
              >> >> %>
              >> >> <tr bgcolor=\"#eeebcc\">
              >> >> <td>
              >> >> <%=StrHRef%>
              >> >> <%=Str%>
              >> >> </a>
              >> >> </td>
              >> >> </tr>
              >> >> <%
              >> >> }
              >> >> }
              >> >> %>
              >> >>
              >> >> Regards,
              >> >> Amar
              >> >>
              >> >> Gary Keim <[email protected]> wrote:
              >> >> >Amar,
              >> >> >
              >> >> >I don't think anyone is answering your question because we don't
              >> >> >understand what you are asking. Can you rephrase the question using
              >> >> >standard terminology? For example, what do you mean by "a method in
              >JSP
              >> >> >page?"
              >> >> >
              >> >> >-Gary
              >> >> >
              >> >> >Amar wrote:
              >> >> >
              >> >> >> Hi all,
              >> >> >>
              >> >> >> Can a method in JSP page have a HTML tags? (e.g. <td> or <tr>
              >> >> >> etc)?
              >> >> >>
              >> >> >> Can anybody just give a small example for the same?
              >> >> >>
              >> >> >> Thanks,
              >> >> >> Amar
              >> >> >>
              >> >> >>
              >> >> >
              >> >>
              >> >
              >> >
              >>
              >
              >
              

  • Placing Word docs with custom style mapping

    I am trying to place Word 2007 docs in InDesign CS3 using custom style mapping.
    When I place the Word doc, InDesign creates a whole new set of styles with the correctly mapped new names but with the Word style definition. It records no name conflicts with the my already existing styles of the same names. Each of the new styles has the disc icon next to it, showing it was imported.
    If I delete each of the styles I can replace it with my original InDesign style, but isn't the point of style mapping to eliminate that step?
    Thanks.

    This issue is now solved in the 6.0.4 update. See the release notes for item #2335625.
    An important update to the InCopy and InDesign products has been released today!
    To install the update, choose Help > Updates from any Adobe CS4 application, or navigate to the Adobe Updater and launch it:
    Mac: /Applications/Utilities/Adobe Utilities/Updater6/Adobe Updater.app
    Win: C:\Program Files\Common Files\Adobe\Updater6\Adobe_Updater.exe
    You can also download the updates from Adobe.com at the following locations:
    InCopy Mac: http://www.adobe.com/support/downloads/product.jsp?product=30&platform=Macintosh
    InCopy Win: http://www.adobe.com/support/downloads/product.jsp?product=30&platform=WIndows
    InDesign Mac: http://www.adobe.com/support/downloads/product.jsp?product=31&platform=Macintosh
    InDesign Win: http://www.adobe.com/support/downloads/product.jsp?product=31&platform=WIndows
    Release notes are here: http://www.adobe.com/go/id6_readme_en

  • Load or import custom style mapping in link options – is that possible somehow?

    Hi Everyone,
    I'm working with Instructions for Use and Technical Manual documents in InDesign. I'm constantly fine-tuning our templates, and now I have to refresh them again, because of a brand refresh. I'm using the Custom Style Mapping in the Link Options panel a lot, because it helps us to copy the text from older documents to the new ones with the right formatting, with less effort. The only thing I miss is the “Load/Import Custom Style Mapping” option from this panel.
    Do you know if there’s any options to export/import/load these mappings somehow from one document to another? Is it possible to write a script for that? I find this part of InDesign quite unattached, it seems to me (based on my search) that no other people are using it. I feel lonely, help me here!
    (I have created many new mappings in an older document, and I’d like to be able to use them in the new templates as well, but I can only do that if I map the styles again. And it’s quite time consuming. Maybe I'm just using too many paragraph styles, I have no idea – this could be another question: what is too much when it comes to styles...)
    Thanks a lot,
    Zita

    Sync is not intended to be used as a backup service like you are talking about, but it will work as long as you save the Recovery Key, as Jefferson mentioned (you also need your Sync Username ''[email address you used]'' and your account Password).
    Mozilla has just started working a new "cloud service" that is code named '''PiCL''' for "Profile in CLoud", which I am expecting will be a lot easier to use and might allow the user to access their bookmarks and other data from the internet without adding a "borrowed" PC to your Sync account.

  • The custom style mapping option text still maintains the word formatting or it shows a style override in the InDesign style - how do I correct this?

    When I tell the custom style mapping option to format a Word style (from an rtf document) with the InDesign style, the text still maintains the word formatting or it shows a style override in the InDesign style. I have a large document that needs to import the styles correctly and I've followed the tutorials exactly however the placed text is still hanging onto the word RTF styles. I want the rtf text to convert to my InDesign styles completely without overrides.

    I actually need the cell styles. That's what sets my font, spacing, and GREP styles.
    I did find the solution today. In the table style or table setup, I needed to set the "Stroke Drawing Order" to "Column Strokes in Front". Even though it was previously set to "Best Joins" and I had no strokes for rows or for the table borders, it just wasn't giving priority to my dotted columns.
    Thanks for your response though!

  • How we can add custom field in standard report 2kee.

    Hi,
    How we can add custom field in standard report 2kee.
    I need one extra field to add in 2kee report for the same is there any customization req.
    Regards
    Ravi

    Ravi,
    Which extra field do you want to add or see?  Without specifying the field, it is difficult for one to tell you precisely whether you need a custom field or just change the layout to get the standard one.
    There are so many fields which exists but are not displayed when you execute 2KEE. You need to change the layout selections to your preference.
    Nonetheless, if the field you want to add does not already exist, then yes you can do customization.  Is there a customization requirement? No. But remember, you are making changes to SAP Standard program which will no longer be supported by SAP should in the case an issue arise in the future related to this very program.
    Have your abaper add the said field in the program or why not just create a query to pull the report?
    Elias
    Edited by: Elias Akorli on Sep 18, 2009 9:02 PM

  • Can't Change Custom Border Custom Styles

    I created a custom border class to create a dashed line
    border, and I added two custom style properties "dashlen" and
    "gaplen", but I can't set them.
    In the attached code, the default dashlen and gaplen are 5. I
    create three VBox using the DashBorder, and although I have created
    a type selector style for DashBorder and a class selector style
    tightDashBorder, neither one is applied.
    Also, I get errors when I try to access the style properties
    dashlen and gaplen in the <mx:VBox> tag. I can access the
    borderColor style property though.
    What more must I do to fix this? Thanks in advance!!!

    I didn't have time to analyze your code in depth. Where was
    the issue?
    "Greg Lafrance" <[email protected]> wrote in
    message
    news:[email protected]...
    > Solved it. Turns out it was much simpler than I had
    thought.
    >
    > ------------------ DashBorder.as
    > package
    > {
    > import mx.core.UIComponent;
    >
    > public class DashBorder extends UIComponent{
    > private var dashlen:Number = 5;
    > private var gaplen:Number = 5;
    >
    > public function DashBorder(){
    > super();
    > }
    >
    > override protected function updateDisplayList
    > (unscaledWidth:Number, unscaledHeight:Number):void{
    >
    > super.updateDisplayList(unscaledWidth, unscaledHeight);
    >
    > var borderThickness:int = getStyle("borderThickness");
    > var borderColor:int = getStyle("borderColor");
    >
    > graphics.clear();
    > graphics.lineStyle(borderThickness, borderColor, 1)
    >
    > if (getStyle("dashlen")) {
    > this.dashlen = getStyle("dashlen");
    > }
    > if (getStyle("gaplen")) {
    > this.gaplen = getStyle("gaplen");
    > }
    >
    > drawBorder(this.x, this.y, unscaledWidth,
    unscaledHeight,
    > this.dashlen, this.gaplen);
    > }
    >
    > public function drawLine(x1:Number, y1:Number,
    x2:Number, y2:Number,
    > dashlen:Number, gaplen:Number): void {
    > if((x1 != x2) || (y1 != y2)){
    > var incrlen:Number = dashlen + gaplen;
    >
    > var len:Number = Math.sqrt((x1 - x2) * (x1 - x2) + (y1 -
    y2) *
    > (y1 -
    > y2));
    > var angle:Number = Math.atan((y2 - y1) / (x2 - x1));
    > var steps:uint = len / (dashlen + gaplen);
    >
    > var dashstepx:Number = dashlen * Math.cos(angle);
    > if (x2 < x1) dashstepx *= -1;
    >
    > var dashstepy:Number = dashlen * Math.sin(angle);
    >
    > var gapstepx:Number = gaplen * Math.cos(angle);
    > if (x2 < x1) gapstepx *= -1;
    >
    > var gapstepy:Number = gaplen * Math.sin(angle);
    > var stepcount:uint = 0;
    >
    > while ((stepcount++) < steps) {
    >
    > var dashstartx:Number;
    > var dashstarty:Number;
    > var dashendx:Number;
    > var dashendy:Number;
    >
    > if(x1 == x2 && y1 != y2){
    > dashstartx = dashendx = x1;
    > if(y2 > y1){
    > dashstarty = y1 + ((stepcount-1) * (dashlen + gaplen));
    >
    > dashendy = dashstarty + dashlen;
    > }else{
    > dashstarty = y1 - ((stepcount-1) * (dashlen + gaplen));
    >
    > dashendy = dashstarty - dashlen;
    > }
    > }else if(y1 == y2 && x1 != x2){
    > dashstarty = dashendy = y1;
    > if(x2 > x1){
    > dashstartx = x1 + ((stepcount-1) * (dashlen + gaplen));
    > dashendx = dashstartx + dashlen;
    > }else{
    > dashstartx = x1 - ((stepcount-1) * (dashlen + gaplen));
    > dashendx = dashstartx - dashlen;
    > }
    > }
    > graphics.moveTo(dashstartx, dashstarty);
    > graphics.lineTo(dashendx, dashendy);
    > }
    > }
    > }
    >
    > private function drawBorder(x1:Number, y1:Number,
    width:Number,
    > height:Number,
    > dashlen:Number, gaplen:Number) : void {
    > drawLine(x1, y1, x1 + width, y1, dashlen, gaplen);
    > drawLine(x1 + width, y1, x1 + width, y1 + height,
    dashlen, gaplen);
    > drawLine(x1 + width, y1 + height, x1, y1 + height,
    dashlen, gaplen);
    > drawLine(x1, y1 + height, x1, y1, dashlen, gaplen);
    > }
    > }
    > }
    > ---------------------- DashBorderExample.mxml
    > <?xml version="1.0" encoding="utf-8"?>
    > <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    > verticalGap="20">
    > <mx:Style>
    > DashBorder {
    > dashlen: 20;
    > gaplen: 20;
    > }
    > .tightDashBorder {
    > dashlen: 2;
    > gaplen: 2;
    > }
    > .tightDashWideGapBorder {
    > dashlen: 2;
    > gaplen: 20;
    > }
    > .wideDashTightGapBorder {
    > dashlen: 20;
    > gaplen: 2;
    > }
    > </mx:Style>
    > <mx:HBox horizontalGap="30">
    > <mx:VBox borderSkin="DashBorder"
    > borderThickness="1" borderColor="0xFF0000"
    > width="200" height="200">
    > </mx:VBox>
    > <mx:VBox borderSkin="DashBorder"
    > borderThickness="1" borderColor="0xFF0000"
    > width="200" height="200" styleName="tightDashBorder">
    > </mx:VBox>
    > </mx:HBox>
    > <mx:HBox horizontalGap="30">
    > <mx:VBox borderSkin="DashBorder"
    > borderThickness="1" borderColor="0xFF0000"
    > width="200" height="200"
    styleName="tightDashWideGapBorder">
    > </mx:VBox>
    > <mx:VBox borderSkin="DashBorder"
    > borderThickness="1" borderColor="0xFF0000"
    > width="200" height="200"
    styleName="wideDashTightGapBorder">
    > </mx:VBox>
    > </mx:HBox>
    > </mx:Application>
    >

  • Numbered List and Bulleted List w/ Custom Style Sheet

    Hi,
    I am a new user to RoboHelp 7, and must say I find it useful
    but also painful to use. Currently I’m trying to solve
    something that feels like a bug in RoboHelp 7, but before I give in
    and accept defeat I wanted to check with the forum.
    I have FrameMaker 8, and import the files to RH where I use
    them to create WebHelp projects.
    Here’s a short procedure:
    1. I Import my files with a predefined style sheet matching
    the FM styles.
    2. I also check the Convert to HTML list option and set all
    numbering and bullet styles to User defined.
    - After import RH does the usual thing and creates a bunch
    of style sheets on its own
    3. I select all the files from the Topic List pod and apply a
    new custom style sheet. This enables me to have one style sheet for
    all the HTML files with the right layout and formatting
    4. I generate the output, and RH uses the new style sheet
    reference
    The resulting HTML files shows that the output is not the
    same as the generated HTML shown in RH’s HTML editor view
    - Editor view: <li class=”style”>
    - Browser view: <li>
    6. If I make a change (e.g. add a space) and save the HTML
    file, and generate the project again the HTML is correct in the
    browser
    One could argue that it’s not a big problem; however,
    with a large project this is starting to look more like a nightmare
    Does anyone know of this problem, and if so can it be fixed?
    Kind regards,
    Jon

    Is this the time when I get really angry at Adobe for creating the worst FrameMaker/RoboHelp integration ever? No! However, I must admit that I'm amazed that they are unable to solve an important feature as conversion of lists from a FrameMaker document to a RoboHelp WebHelp project. When I say conversion I mean a clean conversion with minimal interference from RoboHelp that allows me to use CSS to its full extent.
    Here's the problem, and this was also the problem with RoboHelp 7 and FrameMaker 8. BTW, I use standalone versions (not TCS 1 or 2).
    Figures: First image depicts FrameMaker 9's Paragraph Designer and the Autonumber format for a paragraph named VizNumbered. Second image depicts the RoboHelp 8's conversion setting.
    FrameMaker uses Autonumbering in front of paragraphs to create lists. This means that you in RoboHelp need to manage two formats, the autonumber and the paragraph style.
    RoboHelp does of course not (by default) use Autonumbering in front of paragraphs because a RoboHelp WebHelp project is HTML based, and list tags in HTML can perfectly handle any formatting of text etc.
    RoboHelp will convert, when "Convert Autonumber to HTML List" is selected, the Autonumber in FrameMaker to a list tag (LI). By default this will generate a list with a lot of margin, font and other CSS properties that tries to simulate the way the list is laid out in the FrameMaker document. In addition to the list tags it will convert the FrameMaker paragraph to a P tag which it inserts within a list tag. The issue you will experience with this is that indentations with the paragraph tag does not align properly between line 1 and 2. At the same time the WebHelp project will not look the same in IE, Firefox or Chrome. That is, Chrome and Firefox will look the same, and IE different. IE has the WYSIWYG feel, but it does not comply well with W3C standards (i.e. using P tags enclosed by LI tags is not a good idea ...).
    Selecting "Convert Autonumber to RoboHelp List" does something similar, but is not recommended at all!
    So, here's the big question. How can I make sure RoboHelp understands that I ONLY need to define a list tag with a CSS class attribute attached to it?
    Today I basically only get the following:
    <li><p class=""></p></li> or,
    <p class=""></p>
    What I want is the following:
    <li class=""></li>
    Can this be solved with today's versions, can anyone help me, or do I have to wait for the Adobe development team to realize this and to fix it?

  • Mapping FM styles in RH7

    I am using RH7 in the Tech Comm Suite and cannot figure out
    how to map the FrameMaker style to styles I have created in a
    custom style sheet. The list in the Style Mapping window always
    defaults to the default.css. How can I get the list from my custon
    style sheet to show up there??? There is nothing about this in the
    RH online help.
    I don't have much prior experience in RH so this might seem
    like a basic question to some.
    ~Kim

    Well, when RH creates the topic(s) that corresponds to the
    framemaker file, it also creates a separate css file for EACH fm
    file that it imports. Each .ccs file has a name that corresponds to
    the FM file name. It appears to use the mappings you specify but
    also creates other styles that it uses. If you also use other
    custom styles (like for links), those are not added to the
    individual css files that RH creates (making it difficult for your
    site to have a consistent look and feel). I've been working on this
    for several days, trying to find an optimum way to do it, and it is
    a real pain as far as I'm concerned. (It's also driving me crazy
    the way it codes the html for lists, but that's another story...)
    One thing I'm trying now is to create a template for my RH
    files, and have a custom fmstyles.css file that is used by it.
    Then, in the Topics list, I select all topics at once, and then
    apply this template to all (via "Properties" in the context menu).
    That results in my custom css file being linked to all the topics,
    rather than the individual automatically generated ones. Of course,
    if I do an "update" on any of my topics generated from FM files,
    then that application of the template will have to be done again.
    Hope this helps,
    Linda

Maybe you are looking for