Working with mixed-content XML

Am new to Flex 2 and AS 3 but well versed in XML and related
technologies. This is my first time posting to the forum.
I have a simple Flex application that loads an external XML
file via HTTPService and binds the XML to some MXML form controls.
This works well as long as the XML element contains simple text,
but breaks when the element contains a mixture of text and other
elements (e.g. mixed-content).
<something>some text</something> (Fine)
<something>some <b>bold</b>
text</something> (Breaks).
Just wondering if anyone has could point me to an example of
a Flex application interpreting mixed content XML. I've looked at
various forums and in books and there isn't a lot on the subject
from what I can see. Most of the XML examples I've found use flat,
database/table-style XML which don't suit my purposes.
Thanks
Heather

Let's not give up here. The problem is that you have HTML
inside of an XML structure and the HTML, because its syntax is just
like XML, cannot be distinguished by the XML parser. The proper way
to get your HTML embedded in the XML is to use CDATA. So whoever
created the XML didn't take that into account.
I gave this a bit more thought. This will work ONLY if the
HTML inside of the XML is always complete. No <br> tags
without a </br>; no <p> without </p> etc. as that
won't be readable by the XML parser.
Once you've got your XML structure in Flex, you can get all
of the <something> items like this:
var somethings:XMLList = xmlvar.something;
Now you have an XMLList - an Array of XML structures. This
means somethings[0] is "some text" but somethings[1] is an XML node
with a sub-structure which includes the <b> node. I hope you
are withme so far.
Now try this: var sometext:String = XML( somethings[1]
).toString();
The toString() method should flatten the contents back into a
string and you can assign that to the htmlText property of the
control.
As I said, your XML has to be perfect for this to work. Or
you have to convince the author(s) of the XML to use CDATA to
enclose the HTML.

Similar Messages

  • How can I work with LoaderInfo.content while loading?

    I'm trying to implement the display of a loading swf into a
    papervision scene, as outlined by Paul Spitzer in his devnet about
    video in papervision. This requires updating a bitmapdata object to
    reflect the playhead position of the swf being loaded.
    In my code snippet, you can see that all I am ultimately
    trying to do is trace out the object being loaded, by referring to
    loaderInfo.content. But if I try to run this code, I repeatedly get
    the dreaded:
    Error: Error #2099: The loading object is not sufficiently
    loaded to provide this information.
    At 50% load, I believe I should be able to access
    loaderInfo.content. Is there a better way to work with
    loaderInfo.content whilst loading an external swf?
    Thanks for any help.

    You need Lightroom 5.5 or later (the most current version is 5.7.1). This is a free update if you have already purchased an earlier version of Lightroom 5.
    Product updates

  • Interested in work with Weblogic Content Express

    Hello, I'm interested in work with Weblogic Content Express and I would like some information (stepts) about how obtain this product because we are working with Weblogic Server, Weblogic Commerce Server and Weblogic Personalization Server and I can't found this tool. Thank for your attention and your help. Carlos

    Try this utility: http://h20180.www2.hp.com/apps/Nav?h_pagetype=s-92​6&h_lang=en&h_client=s-h-e17-1&h_keyword=dg-NDU&ju​...
    Say thanks by clicking "Kudos" "thumbs up" in the post that helped you.
    I am employed by HP

  • Working with Flash content in XML template

    My knowledge base of html and DWCS3 is limited. My knowledge of Flash CS3 is better and have built a web site using it.
    This is a newbie DW question. Am working on an XML template, which contained the following folders:
    site_flash folder containing:  main_v8.swf, tfile_main.xml, style.css, index (firefox doc) (+gallery stuff)
    flash folder containing: main_v8.swf, main_v8.fla, tfile_main.xml, AC_RunActiveContent (JSS file) (+gallery stuff)
    I was told by the template people to use the site_flash folder but there are no visuals (Design views), to work with and could not access Flash through DW to alter the files in Flash. When I can get a Design view in DW, all I get is the f symbol. In all the tutorials I've watched on DW, there is a Design view to work with.
    SO, I used the flash folder and adjusted the main layout in the .fla file to suit my needs, and worked on the tfile_main.xml document in DW and they seemed to be 'talking' as my changes were recognized. When I test the file from either Flash or DW, it is perfect. But when I run it from my test folder through the server, the page formatting is off (page pushed down, menu buttons squashed, etc). There is no style.css sheet in the flash folder.
    Am willing to go back and start over with the site_flash folder with CSS page if this will resolve things, but don’t know how to edit the flash layout through DW. I need a Design view…am very weak in the html side of things.
    Test run:  http://www.mackenziemode.com.au/test.html
    Any advice you can give would be helpful.
    The Not-feeling-so-Handy Ma'am  

    In followup to my own frenzied query, in case anyone else is having the same problem, the solution to the 'squashed'
    web site (that's works perfectly on testing outside the browser) is to upload the main.xml file in binary mode.

  • Mixed Content XML

    I am trying to load an XML file which has a mixed content
    model. Here is an example:
    <?xml version="1.0" encoding="utf-8"?>
    <tag1>This is my<tag2>XML</tag2>
    sample</tag1>
    This is XML data and not HTML data.
    Here's my App.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute">
    <mx:XML id="tempXML" source="file:///c:/flex/sample.xml"
    />
    </mx:Application>
    I get the following messages:
    Encountered "<tag2>" at line 2, column 17. Was
    expecting: Non-MXML language element ...
    Problem parsing external XML: file:/c:/flex/sample.xml
    Are there workarounds/fixes for this issue? This is valid XML
    and I want to be able to use it to populate data grids and I also
    want to be able to display the XML in a TextArea.

    Let's not give up here. The problem is that you have HTML
    inside of an XML structure and the HTML, because its syntax is just
    like XML, cannot be distinguished by the XML parser. The proper way
    to get your HTML embedded in the XML is to use CDATA. So whoever
    created the XML didn't take that into account.
    I gave this a bit more thought. This will work ONLY if the
    HTML inside of the XML is always complete. No <br> tags
    without a </br>; no <p> without </p> etc. as that
    won't be readable by the XML parser.
    Once you've got your XML structure in Flex, you can get all
    of the <something> items like this:
    var somethings:XMLList = xmlvar.something;
    Now you have an XMLList - an Array of XML structures. This
    means somethings[0] is "some text" but somethings[1] is an XML node
    with a sub-structure which includes the <b> node. I hope you
    are withme so far.
    Now try this: var sometext:String = XML( somethings[1]
    ).toString();
    The toString() method should flatten the contents back into a
    string and you can assign that to the htmlText property of the
    control.
    As I said, your XML has to be perfect for this to work. Or
    you have to convince the author(s) of the XML to use CDATA to
    enclose the HTML.

  • What is the best way to work with mixed media in 1080 timeline?

    Hi there,
    I have a project shot mostly in 1080 24p but a bit of 720 24p and 4x3 30p footage.
    What is the best way to work with this mixed media?
    Thanks!
    Steven

    Hi Shane,
    Ok just to recap (thanks for being patient by the way)...I have put some questions in here...feel free to write in caps to respond and we'll put this baby to rest!
    1) I will work in a 1080p FCP sequence, correct?
    2) HD 1080p footage captured as applepro res hq I will leave as is and work with?
    3) HD 720p footage which was captured as applepro res hq. Can I just drop in 1080 timeline and let FCP do its work? Or should i run through compressor, if so what setting shall I submit it too?
    4) I dont have a budget for an external hardware to convert SD to HD...should I capture my SD Beta through Final Cut and just leave and let FCP do its work? Or should I run through compressor? If so what setting shall I submit it too?
    5) For for my master sequence in FCP am I not using an I-Frame format apple pro res if I am using my apple pro res hq 1080 footage as my formatted sequence? I am not sure what you mean by GOP?
    6) I also found some 60p footage 1080p XDCAM compressor shot with the same XDCAM camera. I put in the 1080p 24p timeline but it was pretty choppy...any ideas of this conform?
    Thanks very much for all your help it has gone along way,
    Steven
    Saying what CODECS you are working with was my question. 1080, 720, 4:3...really says nothing. There are a dozen 1080 codecs, another dozen 720 codecs, and nearly 100 4:3 formats.
    Best to capture all the footage to one uniform codec.
    Second best is to work with one format and let FCP conform the rest to that...IF and only IF that format is an I-Frame format like ProRes. GOP formats as master sequence formats cause TONS of issues.
    What I'd do is work 1080 ProRes, just add the 720p footage (Use Compressor to convert it if you didn't have a lot, but if you had a lot, just add it), but I'd capture all the SD 4:3 footage via a Kona 3 or Matrox MXO2 as 1080 ProRes. Hardware conversion of SD to HD is much better than anything FCP can do. AE might do good as well. But then use Compressor to convert 29.97 footage captured (you can't convert 29.97 to 23.98 when you capture) to get to 23.98.

  • Complex Element with Mixed Content problem!!!!1

    Hi All,
    I have a scenario where complex XSD element has mixed content.i.e  it has text and elements. How to deal with it in XI.When i create any complex type in XI i cannot add text to it,i will be able to add only elements enclosed by that complex node. Any ideas on how to get across in Graphical Mapping.
    Regards,
    Sudharshan.
    Message was edited by: Sudharshan Aravamudan

    Hi Sudharshan,
    I dont think it is possible to create such elements in XI. As far as i know a complex element can only contain more nodes of varying occurences, but not some information of it self.
    Just check out these links,
    http://help.sap.com/saphelp_nw04/helpdata/en/3b/d2a3f7a166514abb8cf5635b71974f/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/2d/c7d9b2d9f138439482a8fafb91f047/content.htm
    I guess the format you are trying to create is actaually something that XI doesnt support.
    Do let me know if you got further queries,
    hope this helps,
    regards,
    Bhavesh

  • Working with HD content and Milti-Channel Sound AC3 in iMovie 08

    I am trying to figure out how to edit video content I exported from a VOB file that the audio is in AC3. I have used tools like StreamClip to export the file into a QT MOV format, but there are no AC3 options. So I DEMUX the audio to AC3 and try to add that to iMovie 08 and still no luck. Looks like 08 does not support m2v format.
    What I want to do is I have a number of HD/SD media that all have 5.1 Surround and I am simply wanting to merge them together into one big clip, with maybe some fine tuning of the clip length nothing fancy, but I want to retain the AC3 5.1 Surround sound content. Any ideas? I have FCE will that help me?

    I am trying to figure out how to edit video content I exported from a VOB file that the audio is in AC3.
    AC3 content is not editable in QT applications.
    I have used tools like StreamClip to export the file into a QT MOV format, but there are no AC3 options.
    MPEG Streamclip by default down-mixes 5.1 (3/2) AC3 down to stereo. (Other options include: Front Mix, Surround, L/R Ch., Center Ch., LS/RS Ch., and LFE ch. which can then be exported as stereo or mono.)
    So I DEMUX the audio to AC3 and try to add that to iMovie 08 and still no luck.
    As stated above, iMovie '08 does not support AC3 as a compression format. In addition, iMovie '08 cannot access third-party components so even if you have an AC3/A52 component installed, it will not work. Further, even if it did support AC3 compressed audio, iMovie '08 itself only supports stereo audio.
    Looks like 08 does not support m2v format.
    iMovie '08 will support M2V video content in an MOV file container if and only if all P- and B-frames have been converted to I-frames making the file equivalent to a Motion-JPEG video clip.
    I have FCE will that help me?
    Not Really.
    What I want to do is I have a number of HD/SD media that all have 5.1 Surround and I am simply wanting to merge them together into one big clip, with maybe some fine tuning of the clip length nothing fancy, but I want to retain the AC3 5.1 Surround sound content.
    In the end, all of the various possible work flows depend on how you plan to play the content. This, in turn, determines which work flow is best suited to your needs. Basically you can convert and then edit in QT editor applications or edit in MPEG Streamclip, (save,) and then convert for a final target use/device.

  • Does Flash Player only work with web content?

    Thought I'd better start a new thread on this, as my previous
    question has shifted emphasis.
    Does the free Flash Player download only provide Flash
    capability within the web browser? Or can it play local SWFs? If
    not, do I need the whole Flash product to just play?

    > Does the free Flash Player download only provide Flash
    capability within
    > the
    > web browser? Or can it play local SWFs? If not, do I
    need the whole Flash
    > product to just play?
    yes, yes, and no
    YES: The player you download is the activex control and
    Netscape plug-in
    that browsers use .. not a separate program. So yes it is
    effectively for
    use in the browser only.
    YES: You can fire local SWFs using it by opening them within
    your browser.
    It is only for web content.
    NO: You do not need a stand-alone flash player (that comes
    with the Flash
    product) to view SWF content (local or on the web)
    Jeckyl

  • Does Dreamweaver work with Oracle Content Management

    I'm trying to use Dreamweaver with our company WebDAV. Oracle
    is having me use Site Studio to build our intranet pages but it's
    capabilities are so limited. Has anyone had any luck using
    Dreamweaver in this environment?

    We faced same issue. Looks like the native driver does not support the automatic data encoding/decoding from/to database. You can always workaround this by reading everything as byte stream and then by letting java handle the encoding/decoding. But we decided to use type4 thin driver which does this automatically if you set the content type. Anyway we are told that later versions of IAS may not support native drivers, so if you are serious about multi language shift to type4 thin drivers now itself.

  • Airplay from ipad/iphone only works with offline content

    Hi guys
    Strangely, my atv3 will only stream, from my ipad, downloaded YouTube files. If I want to stream some live online content (I.e you tube clip), then there is an "error occurred loading this content".
    Any ideas?
    Thanks

    Hi Andrew
    Yes restarted and restored. Nothing.
    Also tried other apps (downloaded movies etc.) nothing.
    Strange one.

  • Playbook don'work with this content

    I want to buy a Backberry playbook, but the imposibility to play with tihis files, make me retink the tablet alternative:
    http://portal.aerocivil.gov.co/portal/page/portal/​Aerocivil_Portal_Internet/ais_informacion_aeronaut​...
    help me
    [email protected]

    To downgrade to Firefox 3.6 first uninstall Firefox 4, but do not select the option to "Remove my Firefox personal data". If you select that option it will delete your bookmarks, passwords and other user data.
    You can then install the latest version of Firefox 3.6 available from http://www.mozilla.com/en-US/firefox/all-older.html - it will automatically use your current bookmarks, passwords etc.
    To avoid possible problems with downgrading, I recommend going to your profile folder and deleting the following files if they exist - extensions.cache, extensions.rdf, extensions.ini, extensions.sqlite and localstore.rdf. Deleting these files will force Firefox to rebuild the list of installed extensions, checking their compatibility, and reset toolbar customizations.
    For details of how to find your profile folder see https://support.mozilla.com/kb/Profiles
    What problems are you having with Firefox 4?

  • XML parser working with MediaWiki API

    I have a little helper for a MediaWiki server. It intended to work the following way:
    Client side [GWT] &#8592;rpc&#8594; Server side [GWT] — JWBF &#8592;http&#8594; MediaWiki API+
    GWT - Google Web Toolkit 2.0.4
    JWBF - Java Wiki Bot Framework 1.3.2
    MediaWiki 1.16 XML
    JDK1.6.0_21
    GWT sends and receive utf-8 data between client and server well. But the second half fails to work with its own xml traffic.
    JWBF gets the xml file via HTTP (log4j logging):
    [DefaultClientConnection  ] Receiving response: HTTP/1.1 200 OK
    [headers                  ] << HTTP/1.1 200 OK
    [headers                  ] << Date: Thu, 09 Sep 2010 17:36:34 GMT
    [headers                  ] << Server: Apache/2.2.4 (Win32) mod_ssl/2.2.4 OpenSSL/0.9.8e PHP/5.2.4
    [headers                  ] << X-Powered-By: PHP/5.2.4
    [headers                  ] << Cache-Control: private
    [headers                  ] << Vary: Accept-Encoding
    [headers                  ] << Content-Length: 1177
    [headers                  ] << Keep-Alive: timeout=5, max=95
    [headers                  ] << Connection: Keep-Alive
    [headers                  ] << Content-Type: text/xml; charset=utf-8
    [DefaultRequestDirector   ] Connection can be kept alive for 5000 ms
    [wire                     ] << "<?xml version="1.0"?><api><query><pages><page pageid="103" ns="0" title="Bronenosets Potyomkin"><revisions><rev revid="503" parentid="502" user="Anton" timestamp="2010-09-09T09:26:34Z" comment="Undo revision 502" xml:space="preserve">[\n]"
    [wire                     ] << "The Battleship Potemkin ([0xd0][0x91][0xd1][0x80][0xd0][0xbe][0xd0][0xbd][0xd0][0xb5][0xd0][0xbd][0xd0][0xbe][0xd1][0x81][0xd0][0xb5][0xd1][0x86] [0xc2][0xab][0xd0][0x9f][0xd0][0xbe][0xd1][0x82][0xd1][0x91][0xd0][0xbc][0xd0][0xba][0xd0][0xb8][0xd0][0xbd][0xc2][0xbb]) is a film.[\n]"
    [wire                     ] << "[\n]"
    [wire                     ] << "The Odessa Steps sequence editing.</rev></revisions></page></pages></query><query-continue><revisions rvstartid="502" /></query-continue></api>"
    [SingleClientConnManager  ] Releasing connection org.apache.http.impl.conn.SingleClientConnManager$ConnAdapter@dfb098And Java XML parser fails to understand this xml and returns the string as it was ISO-8859-1. After the xml bases a class with SAXBuilder, name in brackets, the one within "rev" element, becomes:
    БроненоÑ&#65533;ец «Потёмкин»while it should be
    &#1041;&#1088;&#1086;&#1085;&#1077;&#1085;&#1086;&#1089;&#1077;&#1094; «&#1055;&#1086;&#1090;&#1105;&#1084;&#1082;&#1080;&#1085;»The whole system (Apache, MediaWiki plus JWBF, GWT, client HTML) is set to utf-8, but Java parser (default settings) still does not agree.
    Dear specialists, where could be the error?

    The problem's been found thanks to DrClap ( [XML converted to string - encoding lost?|http://forums.sun.com/thread.jspa?threadID=610257] ).
    JWBF read the HTTP stream using system's default encoding:
           +Line 216 in jwbf-1.3.2-262\src\net\sourceforge\jwbf\core\actions\HttpActionClient.java+
    BufferedReader br = new BufferedReader(new InputStreamReader(res.getEntity().getContent()));From here the whole chain got the wrongly encoded string, including XML parser.
    So, the solution is to define the encoding explicitly:
    BufferedReader br = new BufferedReader(new InputStreamReader(res.getEntity().getContent(), "UTF-8"));Thank to the community.

  • Problem Working With Framemaker 9 Dita XML Files in Framemaker 10

    I just upgraded to Framemaker 10. I am encountering a number of problems when I try to work with my Dita XML help topics, which were last saved in Framemaker 9 format.
    1. Using the Default Dita Template
    When I open one of my documents in Framemaker 10, the Dita 1.2 template ditabase.fm is automatically applied. Everything seems fine. But then when I convert the XML to Eclipse help (which is essentially html, so we're going from XML to HTML) using Dita Open Toolkit ant scripts, I see this message:
    [pipeline] [DOTJ013E][ERROR] Failed to parse the referenced file 'html\c_licensing.xml' due to below exception. Please correct the reference base on the exception message.
    [pipeline] c_licensing.xml Line 25:Attribute "xmlns:ditaarch" must be declared for element type "dita".
    I then opened the xml  file in a text editor, and I saw this on line 25:
    <dita xmlns:ditaarch = "http://dita.oasis-open.org/architecture/2005/">
    Line 25 looks fine to me. Am I missing something? 
    2. Switching to a 1.1 Dita Template
    I tried to work around the above problem. In Framemaker, I tried to set a different structured application as the default one. I closed all files and chose the default Dita 1.1 structured application (it defaults to the Dita 1.1. Composite app.)
    Then I tried to open my file: I got this message inside Framemaker:
    "Validation of XML failed. Continue?
    Error at [FILE PATH], line 25, char 72, Message: Attribute '{http://www.w3.org/2000/xmlns/}ditaarch' is not declared for element 'dita'
    Sounds familiar, doesn't it?
    I switched from the default Dita 1.1. Composite structured application to the Dita 1.1. Topic structured application. Then I dirtied the source file and saved it. The messages I got in FrameMaker log window included the one above, plus I got a variety of Unknown Element messages, things like this:
    Unknown element dita,
    unknown element concept,
    various attributes are not declared for concept,
    unknown element conbody.
    If I switch back to the Dita 1.1 Composite application all of these messages diappear except for this one:
    Attribute '{http://www.w3.org/2000/xmlns/}ditaarch' is not declared for element 'dita'
    My ant conversion scripts from the Dita Open Toolkit are still unable to process this file. They give the same message as is listed in (1) above and the file is not converted to HTML.
    Can anyone help me with this problem? I've also posted this question to the Dita Users Group on Yahoo Groups. If I get an answer in one place, I'll post it in the other.
    Thanks,
    Nina P.

    I really appreciate all the help you are providing with this, Scott. I tried your latest suggestions. Here's what happened:
    Application Mappings:
    I figured out how to add my "BigPage" structured application to the Applications Mappings dialog. I made a new "BigPage"  mapping type, then figured out the non-intuitive part: how to add my individual BigPage topic types to it.  I closed and reopened FrameMaker opened my test document, and, as before (before I did the application mappings) I saw my BigPage applications listed in the Structure Tools > Set Structured Application drop-down. I selected the appropriate application (in this case it was DITA1.1-BigPage-Reference-FM and clicked the "Set" button. 
    It is at this point in Framemaker 9 (and also once, in FrameMaker 10, early in this process, but I haven't been able to replicate it since) that the page size would change to tabloid size, indicating that the document was using the template from the BigPage reference structured application, not the regular DITA1.1 reference application. But this did not happen.
    I tried saving the document, closing it, and reopening it. Once again the default structured application assigned to that document was "reset" to DITA1.1-Reference-FM.  But the fact that the page size did not immediate refresh to tabloid size told me that although I did select the BigPage application in the drop-down, it wasn't being applied.
    Public IDs:
    The public ID in my test reference XML file is:  <!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN" "reference.dtd" [
    The four public IDs in the DITA1.1-BigPage-Reference-FM entry in structapps.fm (in the Entity Locations section) are:
    -//OASIS//DTD DITA Reference//EN 
    -//IBM//DTD DITA Reference//EN
    -//OASIS//DTD DITA Composite//EN
    -//IBM//DTD DITA Composite//EN
    Do you see anything wrong with the above? .
    Directory Structure: 
    Maybe I cloned the application incorrectly?  Here's what I did:
    1. In C:\Program Files (x86)\Adobe\AdobeFrameMaker10\Structure\xml, I copied the folder called DITA and pasted it into the same directory. I renamed this folder DITA-BigPage
    2. Inside DITA-BigPage, I opened the app folder. Inside each subfolder in app, DITA-Reference-FM, for example, I opened the edd file in Framemaker. In this case, the edd file name was reference.edd.fm.
    3. I edited the top line of reference.edd.fm.  It originally said:
    Structured Application: DITA1.1-Reference-FM.
    I changed it to say:
    Structured Application: DITA1.1-BigPage-Reference-FM
    4. I saved the EDD file. Then I opened the template file in the same folder. It was called: reference.template.fm.
    5. In reference.template.fm, I first changed my page size: Format Menu > Page Layout > Page Size > Tabloid > Set.
    6. Then I imported the element definitions from the corresponding EDD file:  File > Import > Element Definitions > reference.edd.fm > Click Import > Click OK to dismiss verification message.
    7. I repeated the above process for all topic-type folders. For the maps types, I did not change the page size, as these will never display as topics in my online  help. I did nothing to the dtd folder.
    8. Once all this was done, I opened structapps.fm.  I did the following to all Dita1.1 elements in the structure tree.
    Selected the Dita 1.1 XMLApplication element, for instance, the one named Dita1.1-Reference-FM, copied it, and pasted it underneath the original element.
    The original first few lines in the clone looked like this:
    Application Name: DITA1.1-Reference-FM
          Template:              $STRUCTDIR\xml\DITA\app\DITA-Reference-FM\reference.template.fm
          DTD:                       $STRUCTDIR\xml\DITA\app\dtd\reference.dtd
          Read/write Rules:  $STRUCTDIR\xml\DITA\app\DITA-Reference-FM\reference.rules.fm
          DOCTYPE:              reference
    I changed these lines to look like this, using your suggestion to create a variable for the first part of the URLs to enable speed and accuracy:
           Application Name:      DITA1.1-BigPage-Reference-FM
                   Template:                    $STRUCTDIR\xml\DITA-BigPage\app\DITA-Reference-FM\reference.template.fm
                   DTD:                            $STRUCTDIR\xml\DITA-BigPage\app\dtd\reference.dtd
                   Read/write Rules:        $STRUCTDIR\xml\DITA-BigPage\app\DITA-Reference-FM\reference.rules.fm
                   DOCTYPE:                    reference
    I also changed the "Filename" URLs in the "Entity Locations" section of this XMLApplication clone from  $STRUCTDIR\xml\DITA\app\  to $STRUCTDIR\xml\DITA-BigPage\app\.  Applying the "BigPage" variable I'd created for this purpose made this go quickly.
    Finally, after this didn't work the first few times I tried it, I got suspicious that the structapps.fm file in my AppData folder (in my case, it was in the Roaming subfolder under the usual Adobe directories) was overriding the modified structapps.fm file in the Framemaker program directory so I replaced the one in AppData (it had all the original settings) with my modified version.  This had no effect, unfortunately.
    That was my process. After doing the above, the Dita1.1-BigPage applications all listed in the Set Structured App drop-down. They just didn't work,when applied to my XML documents. Nor did the application "remember" what structured application I had set when I opened a new xml document  or closed/reopened the current document or closed/reopened the application.  Did I place the directories correctly for Framemaker 10?  This is the way I did it for FrameMaker 9 and it worked successfully.
    As much as I'd love to solve this mystery, I've thought of a workaround I can fall back on  that doesn't involve using a cloned application.  I will change the page size of a few of the original Dita1.1 sturctured application templates to tabloid size, but leave the Topic structured application at letter size. I'll then apply the Topic structured application to my PDFs and use the others for my help topics.  I'll set this up now. If this doesn't work, then I'll know there's a much bigger problem at the base of this, perhaps even something to do with changing page sizes in templates.

  • Working with local xml file

    Hi, I would like to work with a local xml file, but I don't want to point to a strict location as I would like my application to run on a few different machines.
    Is there a special place within Netbeans project structure that I can place such files?
    Say if I try and load a file "somefile.xml" - where is it going to look first?
    I have a <default package> with my settings.xml in there. How can I reference this within my app?
    Edited by: 993541 on Mar 16, 2013 9:25 AM

    993541 wrote:
    Is there a special place within Netbeans project structure that I can place such files?dunno Netbeans project structure at all but I'd sugest maven project structure wich is widely used: http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html
    There you would place such a file in the <tt>main/resources</tt> folder
    Say if I try and load a file "somefile.xml" - where is it going to look first?I'ts going to look for it where you tell your program to.
    When created as <tt>new File("somefile.xml")</tt> it will bee searched in the <i>currend working directory</i>. The problem with that is that it is unreliable what this will be at runtime (once your Program left your IDE...).
    You should better get it via <tt>getClass().getResource("somefile.xml")</tt> But in this case the file must be present in the classpath in the same package as the Class aquireing it. Adding a <tt>'/'</tt> in front of the file name expects it in the root directory of a classpath entry.
    I have a <default package> with my settings.xml in there. How can I reference this within my app?<tt>getClass().getResource("/settings.xml")</tt>
    But in case you include it into the delivery jar file it will not be writable. Also you cannot expect the installation folder of your App to be writable. On startup of your program you should copy your (default) settings to a writable place like <tt>new File(System.getProperty("user.home2),".myApp/settings.xml");</tt> and modify it there.
    bye
    TPD

Maybe you are looking for

  • Accounts Receivable by WBS

    We currently use SD to generate invoices for multiple WBS but after posting to Accounting, there is only one customer line item created which does not have a reference to the WBS. My company puts much emphasis on reporting at the WBS level for revenu

  • Receiver Determination doubt

    Hi folks, I’ve a scenario file to IDoc and/or ABAP Proxy. Well, depends of the source file content, an example to clarify: if field01 is equal to ‘37’ goes to IDoc, else if field01 is equal to ‘38’ goes to ABAP proxy. I’m trying to do it without BPM,

  • Login information for VFP

    I am developing a program to use CrystalReportViewer Control of CR SDK for VS2010. I have a report get data from Visual FoxPro via OLE DB and it does not need username and password to access. When I ran setLogon for that data source, it asked for use

  • Connecting Oracle 8.17 to SQL Server 7.0

    Hi Everybody, I am trying to connect to SQL Server 7.0 from Oracle 8.17 using generic connectivity. I have configured all the files(listener.ora and tsnames.ora) and created a database link in Oracle.But when I try to execute a query against the link

  • Download problems with app store

    Several updates to programs including iphoto and imovie are not working and display a message that simplay says there is an error, please try again via the purchases page. I have tried creating a new admin user account on my machine as somebody sugge