Skip to main content
Inspiring
May 16, 2013
Question

Strange syntax error in FM11 r/w rules

  • May 16, 2013
  • 2 replies
  • 800 views

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

This topic has been closed for replies.

2 replies

Inspiring
May 16, 2013

Hi, could you try this:

element "xref" {

is fm cross-reference element "Xref";

attribute "idref" is fm attribute "Idref";

} Markus

Inspiring
May 16, 2013

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

MarttiPAuthor
Inspiring
May 16, 2013

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

Inspiring
May 16, 2013

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