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

Strange syntax error in FM11 r/w rules

Contributor ,
May 16, 2013 May 16, 2013

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
732
Translate
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

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

Translate
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

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

Translate
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

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

Translate
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
LATEST

In that case use this:


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

Translate
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

Hi, could you try this:

element "xref" {

is fm cross-reference element "Xref";

attribute "idref" is fm attribute "Idref";

} Markus

Translate
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