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

Strange syntax error in FM11 r/w rules

Contributor ,
May 16, 2013 May 16, 2013

Copy link to clipboard

Copied

Hi,

I'm struggling with a rule that converts element/attribute name uppercase/lowercase ruling:

element “xref” {

is fm cross-reference element “Xref”;

idref attribute “idref” is fm IDReference attribute “Idref”;

}

This causes error:

Syntax error near identifier IDReference.

According to Struct Dev Guide (for some reason I couldn't find one for FM 11, this is from FM 9):

element "gi" {. . .

[mdv] attribute "attr"

is fm [read-only] [fmtype] attribute

["fmattr"] [range from low to high];

mdv=idref and fmtype

fmtype A FrameMaker attribute type. Legal values are: String, Strings, Integer,

Integers, Real, Reals, UniqueID, IDReference, IDReferences, and Choice.

Am I blind or..;)

BR, Martti

TOPICS
Structured

Views

723
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
Contributor ,
May 16, 2013 May 16, 2013

Copy link to clipboard

Copied

Hi Martti,

I'd try the following:

attribute "idref" is fm attribute "Idref";

The idref in front of the "attribute" should be the bugger that causes the error.

Cheers,

Alex

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
Contributor ,
May 16, 2013 May 16, 2013

Copy link to clipboard

Copied

Hi Gorly, thanks for rapid response. Tried that, it removes the syntax error, but at the same time FM does not recog it as an idreference type attribute..

BR, Martti

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
Engaged ,
May 16, 2013 May 16, 2013

Copy link to clipboard

Copied

Hi, you have to define the attribute Idref as IDReference in die EDD and the DTD. Markus

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
Contributor ,
May 16, 2013 May 16, 2013

Copy link to clipboard

Copied

LATEST

In that case use this:


attribute "idref" is fm IDReference attribute "Idref";

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
Engaged ,
May 16, 2013 May 16, 2013

Copy link to clipboard

Copied

Hi, could you try this:

element "xref" {

is fm cross-reference element "Xref";

attribute "idref" is fm attribute "Idref";

} Markus

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