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
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
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
Copy link to clipboard
Copied
Hi, you have to define the attribute Idref as IDReference in die EDD and the DTD. Markus
Copy link to clipboard
Copied
In that case use this:
attribute "idref" is fm IDReference attribute "Idref";
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