Save to XML: image attribute defined twice

Hello all,
I am saving a structured document to XML and run into an error I cannot explain - or solve: I place graphics inside an anchored frame, which is aligned right with the image centered in the frame. Saving the document to XML generates an error in the log, stating that the 'align' attribute is already used in the image element. The XML shows the following:
<figure Language = "en-US">
<image entity = "image5" impsize = "1.289in 1.478in" impby = "ref"
    sideways = "0" impang = "0.000" xoffset = "2.111in"
    yoffset = "0.000in" position = "below" align = "aright"
    cropped = "1" float = "0" width = "5.512in" height = "1.479in"
    angle = "0.000" nsoffset = "0.000in" align = "left"/>
Does anyone know where the second align attribute (align = "left") comes from ? The Structure Application Developer Guide clearly states that the 'align' attribute is the frame alignment on the page, so the first align attribute is in fact the correct one.
Thanks for any help - I would hate to ship my stuff to my clients when they get ugly errors on saving to XML.
Jang

Hi again,
Disregard the previous post. I found the mistake: the image that was inserted in the anchored frame had an invalid attribute 'align' - that is where the second attribute came from in the XML. Oh well, I should learn to check all options before shooting off a post on this forum. Sorry for the interruption.
Thanks anyway
Jang

Similar Messages

  • Error, attribute defined twice: language

    Hi All,
    Im using JDEV10.1.2 and im compiling the custom JSP and throws the following error.
    Error, attribute defined twice: language
    Request for the help....
    Thanks
    Shashikanth

    I fail to see how you can not understand that error. It's telling you that language is used more then 1 time. So find the second one and remove it.

  • XML Attributes Created Twice in the XML after Saving in FM

    Hi All,
    I've built a structured application to read and write a custom XML. The file is opened just fine. However, when saving the XML in FM, some XML attributes appear in the XML twice. For example, in the original XML I have the following:
    <object_group doc_name="xxx" parsed_by_sym="false">
    </object_group>
    After I save the XML, it looks like this:
    <object_group doc_name="xxx" parsed_by_sym="false" doc_name="xxx" parsed_by_sym="false">
    </object_group>
    After the XML is saved, FM refuses to re-open it aborting the parsing. If I remove the doubled attributes manually in Notepad, then the XML is opened in FM again.
    Should I define anything in read/write rules? What am I doing wrong?
    I'm using an XSD, which I defined in structapp.fm.
    Thank you very much!

    Alex,
      Without looking at the application and document, I don't have any other ideas. To debug a situation like this, I would try variations such as the following, investigating any change that eliminates the doubled attribute:
    1) If you haven't already, shut your computer down and restart it.
    2) If the application uses a custom client or processing, remove them. If their absence makes a difference, the problem may originate in them.
    3) Simplify the test document as much as possible, probably in several steps. For example, remove all optional attributes and elements. Remove all non-containers (tables, xrefs, graphics, etc.) You may need to change the EDD or schema to create as short a document as you can that fails. The goal is to have a document with just a few elements and only one attribute that fails.
    4) Change the element and attribute names, which shouldn't make a difference, but may be worth testing.
    5) Simplify or eliminate the r/w rules.
    6) Simplify the EDD so that the only defined elements and attributes are the ones that appear in the small sample.
    7) Remove all format rules and autoinsertions from the EDD. The goal is to remove anything that should not be relevant.
    8) Simplify the schema in the same way.
    9) Remove the schema from the application. If doing so eliminates the duplicate, convert the schema to a DTD and see if using a DTD instead of the schema makes a difference.
    10) Make sure your have installed all updates to the version of FM you are using.
    11) If you have access to a different version of FM, see if it behaves the same way.
    Good luck and let us know when you find the problem.
         --Lynne

  • Error during "Save as XML" - SVG Image

    Hi,
    I am trying to save the book as XML (File à Save as XML), but its showing the attached error (FMError.PNG). FrameMaker created a error log and am pasting its header contents below.
    === Header Begin ===
    Internal Error: 9004, 6920492, 9676798, 0
    FrameMaker 9.0.0 for Intel
    Build: 9.0p237
    Window System: MSWindows
    Operating System: Windows NT 6.1 (major.minor.build: 6.1.7600 )
    Generated on: Wednesday, September 08, 2010 2:14:40 PM
    To file: C:\Users\30088130\AppData\Roaming\Adobe\FrameMaker\9\FrameLog_10.09.08_14.14.40.txt
    === Header End ===
    This errors occurs only if SVG images are present on the fm files.
    Please help me on this.

    I just tested with a small sample SVG file (from here:
    http://www.w3schools.com/svg/tryit.asp?filename=ellipse1&type=svg )
    and FM didn't crash when I did Save as XML.  I put the SVG inside an anchored frame.
    Could you test using that specific image and see if you get the crash or whether it's OK?
    Unfortunately FM did clip the right side of the image when the image is displayed, and also when the image is saved to XML  (it was converted to GIF in the export).
    Googling for "svg framemaker" brought up some old Framers list references to other issues with FM's SVG handling.
    I also notice that in the maker.ini there is a commented out reference to an SVG import filter in the APIClients section:
    ;SVG Import=FileToFileGFXImport, SVG, FrameImage, SVG, ORBL, SVG, SVG, filters\svgfilter.dll,all,^.svg
    SVG Import=FileToFileGFXImport, SVG, PDF, SVG, ORBL, SVG, SVG, filters\svg2pdf.dll,all,^.svg
    What it seems to be changing is that the second line will automatically convert SVG to PDF on import, so
    you might try the other filter:
    save a backup copy of the maker.ini, open the makier.ini in a text editor, then switch the semi-colon to the next line, save, and test to see whether you get any better results.
    Have you been able to successfully export any files with SVG, or does the problem only occur with some files?
    Also, exactly how are you importing the problem SVG file into FM? Referenced or embedded,  is it on a body page, master page, in an anchored graphic frame or not, etc?  Do you know what application was used to create the SVG files?
    Sheila

  • Problems with image attributes

    I'm not a native speaker but I give it a try :-)
    I tried to add attributes of my image element directly in the attributes window, for example I set the alignment to left. But the image is then still aligned center and it won't save the setting when I save the xml file. I looked throw my dtd and also the r/w rules but they are seem to be ok.
    When I set the attributes in the anchored frame window everything works just fine.
    My DTD looks like these (BildPosition is the alignment, BildAusrichtung is the position of the image):
    <!ATTLIST Bild       src       CDATA     #IMPLIED
                         BildPosition  (below)   #IMPLIED
                         BildAusrichtung  (left)    #IMPLIED
    My r/w rules are these one:
    /* Graphic element: Bild */
    element "Bild" {
    is fm graphic element;
    writer facet default
    specify size in cm;
    fm property import by reference or copy value is "ref";
    attribute "src"
    is fm attribute "src";
    is fm property file;
      attribute "BildPosition" {
        is fm attribute "BildPosition";      
        is fm property position;
        attribute "BildAusrichtung" {
        is fm attribute "BildAusrichtung";
        is fm property alignment;
        value "left" is fm property value align left;
    Has anyone an idea what I do wrong?
    Thanks!

    When I set the attributes in the anchored frame window everything works just fine.
    There is no way to control the anchoring position or image alignment
    just by changing attribute values. Both properties are native FrameMaker
    properties and with the correct R/W rules they can be written to XML
    and read, but there is no way to control their setting via the EDD.
    There was another long thread in this forum about this issue; however, I cannot find it.
    The point is that once you open an XML file in FrameMaker, you cannot change properties of certain FrameMaker objects by changing the attributes in the corresponding element. You have to change the properties via the objects themselves. Thus, for graphics in anchored frames, you select the graphic and change its properties (Object Properties) the same as you do in unstructured FrameMaker. Also, you can select the anchored frame and change its properties the same way you do in unstructured FrameMaker.
    Then with the correct read/write rules, those object properties are exported as attribute values in the XML. When you open the XML in FrameMaker, the attribute values are converted to the corresponding FrameMaker objects. You can find all the information about this in the FrameMaker Structured Applications Guide.
    Thus, there is no need for a script, unless you really want the ability to change FrameMaker object properties via changing attribute values.
    Van

  • How to save a background image on a mac?

    I want to save a background image on this webpage
    http://www.twitterbackgrounds.com/tiled-twitter-backgrounds
    when I used windows i would just rt click and save background and it would save only the background. when i do that with the mac it saves the whole page. can anyone help me. i can fine any help online. I am new to a mac. alexandra.

    HI,
    Go here and check out the bottom right side of the page.
    http://www.twitterbackgrounds.com/tiled-twitter-backgrounds
    Use their e-mail to ask if their images are Mac OS X friendly and if so which Mac OS X version.
    Please click My Settings right side of this page and tell us which Mac OS X your MacBook is running.
    Thanks! Your forum profile is important... it helps us to help you.
    Please do not post twice for the same topic.
    http://discussions.apple.com/message.jspa?messageID=10578998#10578998
    Carolyn

  • Can I parameterise image attributes?

    I am displaying an image in my BI Publisher report, sourcing it from a blob.
    <xsl:if test="not(FILENAME='')">
      <fo:instream-foreign-object content-type="image/gif" height="5cm" width="5cm">
        <xsl:value-of select="LOGO_IMAGE"/>
      </fo:instream-foreign-object>
    </xsl:if>It works fine, until some of the images get larger heights or widths - I haven't figured out the relation yet, but I thought if I could parameterise the height and width properties, perhaps I could make the report happier.
    Is there a way to pass XML values into these fields, such as something like
    <xsl:if test="not(FILENAME='')">
      <fo:instream-foreign-object content-type="image/gif" height="SQL_HEIGHT" width="SQL_WIDTH">
        <xsl:value-of select="LOGO_IMAGE"/>
      </fo:instream-foreign-object>
    </xsl:if>Which doesn't work, but I thought there might be a way if I got the syntax right...
    Thanks.
    Scott

    I haven't successfully parameterised either those image attribute fields, or the usage of
    <fo:external-graphic src="http://my_url:7021/i/loadingAnimation.gif"/> In efforts to do something constructive I tried to parameterise the external-graphic reference instead - since I can't seem to generate anything larger than 32kb worth of XML.
    I tried variations of the following, with no success
    <?IMAGE_URL?> -- displays the url text
    <fo:external-graphic src="?IMAGE_URL?"> -- displays nothing
    <fo:external-graphic src="IMAGE_URL"> -- displays nothing
    <fo:external-graphic src=?IMAGE_URL?> -- displays nothing
    <fo:instream-foreign-object content-type="image/gif">
    <xsl:value-of select="IMAGE_URL"/>
    </fo:instream-foreign-object> -- displays nothing, but did expand area consumed
    Is there syntax I should be using instead, or is this not possible?
    Cheers.

  • I have created a 468x60 animated banner in Edge Animate. How do I save the animated image to my desktop? (not in html code)

    I have created a 468x60 animated banner in Edge Animate. How do I save the animated image to my desktop? (not in html code)

    Hi,
    This feature is not available in Adobe Edge animate. You can not export as image from Edge animate.
    Publish options available in edge describe here
    Edge Animate Help | Publish your content
    Regards,
    Devendra

  • How do i save STACKS of images (e.g. TIFF) as a SINGLE file in IMAQ?

    I would like to save stacks of images (movies and time series) as single files (TIFF in particular) but i can only find support in IMAQ for saving single images to single files. Does anyone know how to save STACKS? (As far as i know that is a common feature in most frame grabbers).
    I am using a PCI-1408 card for analog acquisition and NI-IMAQ driver in Windows 2000.

    Bernhard,
    There are no utilities in IMAQ to save image sequences in a single file.
    One possible solution, if you aren't trying to compress the images, is to extract the 2D array of pixel intensities and save them as a standard array. You would be able to store as many arrays as you want in a single file.
    If you want to compress the images, there are utilities for creating AVI files. I have used a wavelet compression utility that I wrote LV drivers for, also. If you are willing to spend a little money, that might be a good solution. You can contact me at bruce@ammonsengineering if you want to discuss it further.
    Bruce
    Bruce Ammons
    Ammons Engineering

  • How can I save a XML file with JAXP1.1?

    Dear All.
    I write a program to create XML file with DOM model, but I can't know how to save it? My environment is JAXP1.1 and JDK1.3.1,I has been required not use other XML parser toolkits,only JAXP1.1.
    How can I do? thank you.
    Many person give me a idea the com.sun.xml.tree.XmlDocument, but I can't find the class in API document or JAXP1.1's packages. why?
    what is it? How can i use it?
    thank you very much.

    The way to save an XML Document is using a Transformer.
    To have access to a transformer use the packages :
    import javax.xml.transform.*;
    import javax.xml.transform.dom.*;
    import javax.xml.transform.stream.*;
    Then for saving your Document Object (named dXml) get a Transformer Object with the TransformerFactory Object :
    TransformerFactory tf = TransformerFactory.newInstance();
    Transformer t = tf.newTransformer();
    Now you have got your Transformer Object, to save your Document Object use the method :
    Document dXml = getMyDocument(); // this is your Document Object.
    OutputStream osSave = getMySaveStream(); // this the OutputStream you need to save your Document.
    try
    t.transform(new DomSource(dXml), new StreamResult(new OutputStreamWriter(osSave)));
    finally
    osSave.close();
    And your Document was now saved.

  • How to save a drawn image in our own format

    hai,
    i'm developing a designing tool. in that user can draw any type of diagrams. i have to save the drawn image in my own extention... how can i do it. provide me some sample code if u can...

    mituli wrote:
    Thanks,
    but I am using Image.getScaledImage() to get scaled image(obviously). This returns an Image object. When I call getGraphics() on this object it throws an exception:
    Exception in thread "AWT-EventQueue-0" java.lang.UnsupportedOperationException: getGraphics() not valid for images created with createImage(producer) at sun.awt.image.ToolkitImage.getGraphics(ToolkitImage.java:292)Try using createGraphics() instead.
    In javadoc i found out that this method can be used only on off-screen image. What is off-screen image?Use BufferedImages, you'll have a lot less problems.
    Anyway I can't use this object in ImageIO.write because it requires RenderedImage object which can only be BufferedImage object.
    I tried to cast Image to BufferedImage but can't be ... If you need to get your Image painted onto a BufferedImage, you can do it like this:
    BufferedImage bi = new BufferedImage(myImageWidth, myImageHeight, BufferedImage.TYPE_INT_RGB);
    Graphics2D  g = bi.createGraphics();
    g.drawImage(myImage, 0, 0, null);

  • Error-29, Cannot burn a DVD or save a disc image from within FCPX using Mountain Lion

    Really stumped on this one.
    Running Mountain Lion, freshly downloaded version of FCPX, on a 2009 MacPro with 16 G RAM.
    Trying to share a 4 minute movie I edited.
    - No problem exporting as a quicktime move...worked fine
    - Big problem trying to either burn a DVD, save a disc image, or export to an Apple device.
    The progress bar gets about 90% complete, and then it stops and a message window comes up that says:
    There was an error burning your disc. The operation couldn't be completed. (DSPPublishing error-29)
    Thoughts?

    From Crash Analyzer:
    DSPPublishing error -29 (Final Cut Pro X)
    This error can occur when burning a disc if your menu has incompatible assets.
    Suggested Actions
    If your menu has a background image, make sure the image is not too large. Try reducing the size of the image and saving it as a JPEG or PNG.
    Report generated by Crash Analyzer in Pro Maintenance Tools

  • I'm using a Mac / Leopard. I can no longer "save as" an image. Please see the "details" section for more information. Thanks.

    I'm using a Mac / Leopard. Beginning about a month ago, I can no longer "save as" an image. The "Save Image As" menue comes up -- but then nothing. I can drag images onto the desktop, but that's it. I tossed out Firefox, and then downloaded it and reinstalled it, but have the same problem. (I couldn't figure out how to get rid of profiles and bookmarks -- so they remained). As I type this question on the Firefox website, I don't see the forum in front of me -- just a window to type a question. So, if you answer this question, I'm not sure I'll be able to find the answer. Thus, if you'd be so kind as to also email me the answer, that would be greatly appreciated: davidfreeman11 AT gmail.com Thanks

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
    Your above posted system details show outdated plugin(s) with known security and stability risks.
    *Shockwave Flash 9.0 r124
    Update the [[Flash]] plugin to the latest version.
    *http://www.adobe.com/software/flash/about/

  • How do I save a webpage image to my hard drive to be printed later offline

    I am only able to go online from my laptop at a location away from my printer therefore I cannot directly print from a website to my printer. I need to save the webpage image to my hard drive to print offline at a later time

    It is probably best to install a print driver for that printer and use print to file to avoid losing content as that can happen if you save a page to disk.

  • I just got a new mac and use my external hard drive to save all my images to but whenever I go to save my photo to my hard drive it says I do not have write access....Whats wrong how do i fix this or do i need a new hard drive??

    I just got a new mac and use my external hard drive to save all my images to but whenever I go to save my photo to my hard drive it says I do not have write access....Whats wrong how do i fix this or do i need a new hard drive??@

    This is a Mac question not a Photoshop question, and I am a Windows users, but I can Google and this might be what you need to do:
    http://www.makeuseof.com/answers/change-read-permision-external-hard-drive-mac/

Maybe you are looking for

  • Can anyone help me, please(again)

    Hello : I am sorry that my massage is not clearly. Please run my coding first, and get some view from my coding. you can see somes buttons are on the frame. Now I want to click the number 20 of the buttons, and then I want to display a table which fr

  • Who can look at my etrecheck results?

    Problem description: My whole system is very sluggish.  Spinning wheel shows a lot. EtreCheck version: 2.2 (132) Report generated 5/2/15, 1:14 PM Download EtreCheck from http://etresoft.com/etrecheck Click the [Click for support] links for help with

  • Cannot select my Mac HD to install Mountain Lion

    When installing from Snow Leopard on a iMac late 2009, when I have to choose the HD, it says that it cannot boot on my Mac HD partition...I haven't got Time Machine active, and I haven't used it

  • CS4 Spry File is Corrupt

    Okay I did the unthinkable and revised (eg: deleted some code from) a css spry asset. Ever since, CS4 has stopped working. After trying various restore points, I can finally open CS4, but every time I try to open the spry asset file to fix what I mes

  • Additional SAP-MI environment via client copy

    Hi there. We need to set up an additional SAP-MI environment for UAT (User acceptance test). Can this be done by creating a new client (and using client copy function) within the existing MI instance? If so, what are the implications to J2EE engine?