Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

FM8 create relative Path

New Here ,
Jul 13, 2009 Jul 13, 2009

Copy link to clipboard

Copied

Here is the read write rule I am using:

element "graphic"
{
is fm graphic element;
attribute "entity" drop;
attribute "boardno" is fm property file;

}

This is the output:

<graphic
    boardno = "file:///H:/My%20Documents/IMS/IMS%20CURRENT%20DEVELOPMENT/Frame%20Docs/graphics/ims_system.jpg"></gr...>

The output I wish is

<graphic boardno = "graphics/ims_system.jpg"></graphic>

Any Suggestions?

TOPICS
Structured

Views

1.5K
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Jul 13, 2009 Jul 13, 2009

Copy link to clipboard

Copied

There is no read/write rule for making pathnames relative to a specified directory. You can use an XSLT post-process to strip the initial part of the pathname.

           --Lynne

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 15, 2009 Jul 15, 2009

Copy link to clipboard

Copied

So it is not possible to have framemaker use a relative path...that doesn't make sense to me...what if you have a document that is part a of deliverable...the path will not be the same on every pc...

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Mentor ,
Jul 15, 2009 Jul 15, 2009

Copy link to clipboard

Copied

Hi,

I'm a little confused here because I see relative path names saved as a default when I roundtrip XML. I don't use any read/write rules for the attribute, though, allowing it to simply default to "file," could that be causing a difference? Or could it be that I save documents individually, not as a book?

Russ

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Jul 15, 2009 Jul 15, 2009

Copy link to clipboard

Copied

I do not round trip to XML, but I have experimented with it. My read/write rule is:

element "Graphic" {
    is fm graphic element;
    attribute "file" is fm property file;
}

The resulting attribute file in the element displays a relative path.

If you do not specify a read/write rule, then Frame creates entities in the XML and refers to them from within the element. Again, the paths listed in the entities are relative.

As with Russ, I have experimented only with single documents, no books.

Van

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Jul 16, 2009 Jul 16, 2009

Copy link to clipboard

Copied

This is neither a read/write rule issue nor a book/document issue.

FM uses a relative path for a graphic when the XML document is being saved to the same drive as the graphic. It uses an absolute path otherwise.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 17, 2009 Jul 17, 2009

Copy link to clipboard

Copied

LATEST

Thanks...that worked out great for me. I just exported the XML in the local directory and copied them manually.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines