Skip to main content
1-Visitor
September 11, 2012
Question

Epic and XSL-FO

  • September 11, 2012
  • 12 replies
  • 4440 views
I am having some issues with Epic and some XSL-FO I work with.

I want to use Editor to make changes to the FO, but I continually get errors
that I do not get with processors like XML Spy or Oxygen. The first problem
I have is that when I try to add FO elements, they are not listed in the
insert markup box(es). Next Epic does not seem to like <xsl:include>. It
will read them when publishing, but not when editing.

I have validated this by commenting out all the "includes" in my main file
and replacing them with ENTITIES. The errors I get change, presenting a
couple I know are in the referenced files.

Lastly, does anyone know what parser Epic uses to validate XSL files? I get
errors with Epic that I do not see with Spy or Oxygen.

Right now, though I love Epic as an XML editor, I have less than kind terms
to use for its support of XSL.


Lynn

    12 replies

    1-Visitor
    September 12, 2012
    Lynn,

    Someone has reset the default value to "1".
    Thanks for pointing me in that direction.
    Sindy

    1-Visitor
    September 12, 2012
    Sindy.

    If you look at the entity declarations (enter "edit -current -untaggedascii" on the command line) you will find that there are two declarations after you insert the entity again. When Epic inserts a graphic entity declaration it will not duplicate an existing emtityname, so it appends a number to the existing graphic entity declaration as you describe.

    Your .dcf file will specify the name of the attribute holding the entityname as "entity";

    <graphic<br/>element="graphic"
    entity="boardno"
    reproDepth="reprodep"
    reproWidth="reprowid"
    scaleToFit="scalefit"/>

    I haven't seen the problem here since I changed the instructions on how to replace a graphic.

    Entity method (MIL-STD-38784 based DTDs). An attribute where the graphic is referenced contains the name of an entity that actually references the graphic file. e.g. <graphic boardno="entity.name" reprodep="8.25in" reprowid="7.5in" hplace="center">

    o The entity name must start with a letter and is not allowed to contain any characters except period, dash, alphabetical, and numeric characters. The underscore, space, and all other keyboard and all non-keyboard characters are specifically disallowed

    o To replace the graphic with a new graphic DO NOT change the entity name (contents of BOARDNO attribute must remain the same). Doing so causes a duplicate declaration and only the first declaration found will be effective. Instead, highlight the graphic tag, click on Entities->Graphic, and edit the file name inside the entity declaration as shown (this changes the declaration instead in inserting a new one):
    [cid:image001.png@01CD9105.39E7A9C0]
    Maybe this will help,
    -Andy
    \ / Andy Esslinger LM Aero - Tech Order Data
    ______-/\-______ (817) 279-0442 1 Lockheed Blvd, MZ 4285
    \_\/_/ (817) 777-3047 Fort Worth, TX 76108-3916