What is the correct way to format file paths and names in the structapp file?

I am trying to create a structured application to export fm files as xml, and probably read the xml back to fm.
In the structured application file (structapp), I need to specify the locations of the various files (DTD, read/write, template, etc). I would like to place these files on a shared server so others can use the same structapp file (that is, a cop of it). What is the correct way to format the file paths and names? Can folders folder names and file names have spaces in them? I tried the following, for example:
\\serverName\shareName\folder 1\folder 2\file name.dtd
I use the same format for the template file and the read/write rules file.
When I try to save an fm file to xml, FrameMaker says that it cannot read the DTD; however, the resulting xml file appears to be well-formed. The DOCTYPE element in the resulting xml is formatted with forward slashes and spaces replaced with %20.
I tried using forward slashes and replacing spaces with %20, but then I get an error about reading the read/write rules.
NOTE: I have another structured application to read xml into fm. This application does not have a DTD file. The template and read/write rules files are specified as above. Except for complaining about a lack of a DTD, the application works fine; it even applies an XSLT in the process. Again, when I DO add a DTD to this latter application, I get the same complaint about not being able to read the DTD.
I am using fully patched FrameMaker 9 in Windows XP.
Thanks,
Van

Hi Van,
The XML parser and FrameMaker are not the same thing. The Error Log says which component created which message. The XSL processor is another option that can throw messages. The "\\server\path\some.dtd" syntax in structapps.fm seems to be fine for some tools, as Internet Explorer with XML tools successfully finds the DTD which appears as "//server/path/some.dtd" in the XML. But apparently Xerxes, the XML parser bundled with FrameMaker, does not like this notation.
If you have a path with a drive letter, "H:\path\some.dtd", FrameMaker turns that into "file:///H:/path/some.dtd". It seems, Xerces would like to see "file:/" in front of absolute paths.
This is what I have in structapps.fm:
Template: \\server\path\projecttemplate.fm
DTD: some.dtd
Read/write rules: \\server\path\projectrules.txt
DOCTYPE: …
Entity locations
  Entity search paths
    1: \\server\path\
In the structapps.fm I have the DTD without path information. The resulting XML (without XSL postprocessing) then contains just the file name with a relative path back to the book folder (when saving a book as XML). It therefore requires the DTD to be available at this place. I handle this using an event script that fires for NotePreSaveXml and copies the DTD to the folder of the original document.
As I always use XSL postprocessing and using XSLT1 it is not possible to have the doctype-system as a parameter I have this in my XSL stylesheet:
<xsl:output doctype-system="some.dtd" />
For the resulting XML the DTD is expected to be in the same folder as the XML file. This is handled by the same event script as above, it therefore copies the DTD to the source and the target folder.
Bottom line: If you want/have to use UNC paths, you have to do some programming to work around a FrameMaker bug.
- Michael

Similar Messages

  • 1.4.2 - What is the correct way to format output in the java.io.PrintStream

    With Java 1.4.2:
    What is the correct way to format output in the java.io.PrintStream?
    The following is incorrect, even though it is still used in the The JavaTM Tutorial at: http://java.sun.com/docs/books/tutorial/essential/
    System.out.formatThis returns "cannot resolve the method 'format'"
    Any detailed suggestions or information is greatly appreciated.

    The following is incorrect, even though it is still
    used in the The JavaTM Tutorial at:
    http://java.sun.com/docs/books/tutorial/essential/
    The whole format thing has been introduced in 1.5. The tutorial also states it's been "updated to 1.5.".
    That's all I've got to say for I don't know how you can format a PrintWriter, let alone a PrintStream, prior to 1.5. I'm not really sure there is any way. Any "legacy way", that is. There almost certainly are third-party API which achieve similar results.

  • File Path and Name field does not display correct path

    We are using Crystal 2008 along with VS 2005. We embed the special "File Path and Name" field  inside our report and it displays the correct path when viewed inside Crystal reports:
    C:\Program Files\reports\Chart.rpt
    When run through the web and viewed in the DHTML viewer, the file name and path appear as follows:
    C:\Windows\TEMP\Chart {02152A43-3339-4C03-A50A-E281E1D391AF}.rpt
    How can this be corrected?
    Thanks in advance for any assistance.

    This is a known issue tracked under ADAPT0000962216. At this time I do not know when this will be resolved, however Service Pack 2 for CR 2008 is targeted to be released by September and this may contain the fix.
    Ludek

  • "File Path and Name" field not displaying correctly

    Post Author: DaveWoo
    CA Forum: General
    Hello,Here's my situation: I'm currently upgrading from Crystal Reports for Visual Studio .NET 2003 to Crystal Reports for Visual Studio 2005. I have several reports (programmatically generated using VB.NET) that use the "File Path and Name" special field. Now, in the old version of Crystal Reports (2003), the field properly displayed the original file path and name; however, in the new version (2005), the field displays as "C:\DOCUME1\Username\LOCALS1\Temp\Filename{F2459406-3719-4C8B-917C-4A7055A18C76}.tmp" - in other words, the location of the temporary .rpt file.How do I get the "File Path and Name" field to correctly display the path & name of the original file, like it did in the prior version?- Dave

    This is a known issue tracked under ADAPT0000962216. At this time I do not know when this will be resolved, however Service Pack 2 for CR 2008 is targeted to be released by September and this may contain the fix.
    Ludek

  • Get (variable) file path and name in a text element

    How do you get the (variable) file path and name in a text element (label) in LCD? If you save the PDF and afterwards relocate it, it should update the values. Is that actually possible?

    Does anyone have any advice on this issue?
    Thanks in advance,
    Zack H.

  • File Path and Name

    Hi everyone,
    I am scheduling reports in Crystal Reports Server.  My reports contain the "Special Field" File Path and Name.  However, when the report is sent out via CRS, it prints a different location of where the report actually resides.  In CRS, how can I make the file path and name field print the actual location of the report file rather than a rogue location?
    Thanks in advance,
    Zack H.

    Does anyone have any advice on this issue?
    Thanks in advance,
    Zack H.

  • FTP adapter should take file path and name at runtime..

    Hello All,
    I have requirement of getting the file from remote machine into local machine..thinking FTP adapter should help me to do this..
    I dont need to poll the remote directory. rather I will pass the exact path and name of the file to be fetched during runtime as an input to the bpel process.
    How to configure the FTP Adapter to receive the file path runtiime and gets it to local machine.
    Is it doable using ftp adapter..?
    Thanks
    Saikrishna

    Hello Anne,
    Thank you for the help.
    I am not able to call a adapter partner link using invoke activity..I am facing variable type conflicts.
    modified the
    OutboundFtpHeaderType wsdl to take file name and directory as:
    <complexType>
    <sequence>
    <element name="*fileName*" type="string"/>
    <element name="*directory*" type="string"/>
    </sequence>
    </complexType>
    Using Adapters tab of Invoke activity created a variable:
    <variable name="outputVariable"
    messageType="client:FTPadapterResponseMessage"/>
    <variable name="*filePath*" messageType="ns2:OutboundHeader_msg"/>
    Using Assign Activity, assigned the input varibales to the ftp outboundHeader variable:
    <assign name="Assign_1">
    <copy>
    <from variable="inputVariable" part="payload"
    query="/client:FTPadapterProcessRequest/client:*directory*"/>
    <to variable="*filePath*" part="outboundHeader"
    query="/ns2:OutboundFTPHeaderType/ns2:directory"/>
    </copy>
    <copy>
    <from variable="inputVariable" part="payload"
    query="/client:FTPadapterProcessRequest/client:*filename*"/>
    <to variable="*filePath*" part="outboundHeader"
    query="/ns2:OutboundFTPHeaderType/ns2:fileName"/>
    </copy>
    </assign>
    Used the created variable in the invoke activity as a input paramater to the partner link:
    <invoke name="Invoke_1" partnerLink="ftpAdapterTest"
    portType="ns1:SynchRead_ptt" operation="SynchRead"
    inputVariable="*filePath*" bpelx:inputHeaderVariable="filePath"/>
    <reply name="replyOutput" partnerLink="client" portType="client:FTPadapter"
    operation="process" variable="outputVariable"/>
    I am getting an error in invoke activity:
    Variable type does not match the input type.
    Thanks
    Saikrishna

  • Function module for logical file path and name

    Hello all,
    I am wondering is there any function module available to translate a logical file path to a physical file path and a logical file name to a physical file name? Thanks a lot!
    Regards,
    Anyi

    Please check the FM FILE_NAME_GET.
          CALL FUNCTION <b>'FILE_GET_NAME'</b>
             EXPORTING
               logical_filename = 'ZDELCHKREP'
               parameter_1 = it_cntry-cntry
             IMPORTING
               file_name        = l_file
             EXCEPTIONS
               file_not_found   = 08.
        CALL FUNCTION <b>'FILE_GET_NAME_USING_PATH'</b>       EXPORTING
             logical_path = 'ZDELCHKREP'
             file_name = l_file
           IMPORTING
             file_name_with_path = l_file.
    Message was edited by: Anurag Bankley
    Message was edited by: Anurag Bankley

  • What's the correct way to format lists?

    Is it like this?
    Here is my list:
    * Item 1
    * Item 2
    * Item 3
    Or like this?
    Here is my list:
       * Item 1
       * Item 2
       * Item 3
    That is, with or without the initial bullet indent?
    Much obliged!

    There is no correct way. The only thing that (to me) is incorrect is with numbered lists, where you want to have the numbers right aligned, so that 9 and 10 line up with the 9 directly over the 0 of 10. I prefer to have hanging bullets (or numbers), and in the case of bullets, an indent of an en or so. In numbers, I prefer to see the numbers indent an en for single digit numbers, and no indent for the two digit ones. If the list is long with 1 digit going up to three digits, I will switch on a later page, so that the two digit numbers will have an en space before, allowing space for the third digit later on that page.
    But there are no rules. It is entirely design esthetics.

  • How to create result file path and name in teststand

    Hi, 
    I would like to create specific path(folder) and file name to result files. For example ..\date\ArticleNr\DateTimeSerialNr.xml.  Thank you very much in adance.
    Kri. 

    Kri,
    You can use Configure >> Report Options, and then select the Report File Pathname tab to configure where your reports will end up, and what the file name will be. If you want to have these be different for each sequence, then add the ReportOptions Callback to each sequence and then modify the settings in the Parameters.ReportOptions container to what you want.
    This link may also be helpful as it talks about what you're are trying to do: Report File Name
    -Jack

  • The file path and directory about the .exe file created in LabView, who knows?

    I have a project, in the project, VIs and documents(.doc,.txt,.tdms,etc.) in different directories, and when the project run in the labView, it can find the directories and files, but when I created .exe file, I found the directories had changed and I didn't know the directory structure in the file, anyone know it?
    Thanks for any reply!
    YangAfreet

    Have a look at the link in my earlier post:
    http://forums.ni.com/ni/board/message?board.id=170&message.id=267439#M267439
    LabVIEW Champion . Do more with less code and in less time .

  • How to auto save instrument output data to Excel with preset file path and names

    Hi,
    I'm having this auto saving problem. The type of my instrument output is ''1-D array of cluster of two elements''. I tried to use ''Report Generation Toolkit", but it seems the data type doesn't match. Anybody got ideas about the data type conversion?  Other possible approaches are also welcome!
    Thanks!!

    What's in the cluster?  Can you show us some code?
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • What is the best way to back up iPhoto and create disc space

    what is the best way to back up iPhoto and then remove the iphoto folder from the mac book and onto the external apple time capsule

    Two different questions
    the best qway to backup is to use TimeMachine or other automatic backjup program
    However this does not allow you to reduce space since a backup need to be a copy of your existing library and as soond as you changge the library you no longer have a backup and sooner or later the photos will be gone form the bakcujp too
    You need to run the iPhoto library on an external drive or had a complete library on and external drive and a smaller library on yoru internal drive using iPhoto Library Manager - http://www.fatcatsoftware.com/iplm/ -  to move photos between the two libraries
    Moving the iPhoto library is safe and simple - quit iPhoto and drag the iPhoto library intact as a single entity to the external drive - depress the option key and launch iPhoto using the "select library" option to point to the new location on the external drive - fully test it and then trash the old library on the internal drive (test one more time prior to emptying the trash)
    And be sure that the External drive is formatted Mac OS extended (journaled) (iPhoto does not work with drives with other formats) and that it is always available prior to launching iPhoto
    And backup soon and often - having your iPhoto library on an external drive is not a backup and if you are using Time Machine you need to check and be sure that TM is backing up your external drive
    LN

  • From 1.5 to 2.1 - file path resets when exporting multiple ddl files

    Situation:
    I regularly export data using the following steps - right click table name->export data->insert
    I am then prompted for the file path and file name. I type the path and script name, save and then move on to the next table.
    In 1.5, when I was prompted for the file path and name, the last path entered automatically populated along with the file name (equal to the current table name).
    However, after migrating to 2.1 and importing the settings from 1.5, the behaviour changes. Instead of filling in the prior path, the prompt always resets and provides the default windows session directory. Since I export multiple tables to the same directory on a regular basis, this becomes problematic. I have a work-around that involves cutting / pasting the path each time but I'm looking to streamline where I can.
    I suspect I merely need to set the correct preference value somewhere. Does anyone know what that preference setting would be? Again, the goal is for the file path prompt to fill in the value of the last path entered when I exported the previous table during a mullti table data export.
    Thanks in advance....
    Edited by: user12514925 on Jan 26, 2010 5:27 PM

    I'd rather say that's a lost feature (no preference, sorry). Probably an accident, but might be by design. Anyway, makes sense to put it back.
    Regards,
    K.

  • I have a macbook air late 2010 and keep getting a warning that my hard drive is full and to delete things so I purchased a external hard drive (1TB) but I'm just not sure what the correct way to transfer and store files to the external drive is. First MAC

    I purchased a macbook air about 5 months ago and lately i keep recieving a warning that the hard drive or disk is full and that I will need to move items to trash in order to free up space on it. I purchased a external hard drive 1 TB but I'm very new to mac and ios and unsure as to how I'm suppose to transfer my files (video, pics, music etc.) from my mac over to the external hard drive in the correct way so I won't end up deleting them permenately or screwing anything up with my mac as far as the applications and programs being able to run. Am I supposed to just copy to the external hard drive and then move to and empty the trash? That's pretty much all I could come up with, but then what if i need or want to access that file again at a later time. Also, I have an i Phone and i pad so with i cloud it automatically syncs all my purcheses and if i delete something from itunes on my mac it deletes from my ipad.
    I'd appreciate any kind of input i think im just a little lost here. I have to say i love my Mac and wouldn't trade it for anything (except maybe a macbook pro w/more memory)... Is there something I'm missing???

    To free up hard drive space the best bet is to move data files that you don't need access to all the time. Likely candidates are music, video, and photos. Things like word processing and spreadsheet files can also be moved but they tend not to be very large and so don't free up much space. The problem with moving the above mentioned files is that iTunes and iPhoto need to know where the files are stored.
    Here's an article explaining how to move the iTunes folder. You can move the iPhoto library using the Finder but there is a slight complication. Start iPhoto, open the Preferences and click on the Advanced tab. The first option is "Copy items to the iPhoto Library". If this option is checked, copy the iPhoto library to your external folder (drag it from the Pictures folder to your external drive) and then delete it from your Picture folder. If this option is not checked, it is a bit more complicated and we'll need to talk a bit.

Maybe you are looking for

  • Since updating to iOS 8 guided access does not work

    I Was given a iPad mini at school to use for test taking on SofTest. Since updating to ios8, my guided access no longer turns on when I triple click.  But it worked fine before the update. I am not the only student having this issue. I tried resettin

  • How do I transfer photos from iPad to iPhone? My iCloud is on, but my phone is not getting the pics.

    I want my photos from my ipad to be on my new iPhone 4s. I have iCloud on on all devices, but pics are not in my iPhone yet. Why is that?

  • Internal Reconciliation Upgrade question

    Hi, for a customer, I'm facing the "Canceled Reconciliation" inconsistency in the Internal Reconciliation Upgrade Report for some invoices and credits.  I'm very confused about that.  I read the PDF document on "how to conduct Internal Reconciliation

  • No attach library

    Why display this error? FRM-40039: cannot attach library webutil while opening form test. Alexandre

  • Image Capture can't save to Network Server

    I have a Canon MX860 connected via wireless to my network. I'm running 10.6.6 on the mac. When I scan an image, Image Capture only allows to save to the local hard drive. It shows my Network Server (in the Scan To | Other ... dialog box), but it's gr