[Slightly OT] attribute value length limits
Jakob Fix wrote: > I am doing some testing for export of a Frame (7.1) document to XML and > SGML. I am particularly interested in the maximum length of attribute > values. I found that there's not really a limit when exporting to XML > (I tried 5kb of text). However, when exporting to SGML, it only exports > the first 511 (!) bytes, not even 512. Yebbut... why? I've never seen an attribute value that size. If I had a value that big, I'd be looking for some further breakdown of it. Are you sure that big a chunk is necessary to assist in the description of the element? > I do seem to remember that this value can be fixed/increased in the > SGML declaration, however I can't find any documentation on which > keyword corresponds to attribute value length. I tried LITLEN, > ATTSPLEN, and some others, but even their current values are not set > to 511 (or 512). Or is this limitation to be looked for elsewhere? Some things can be changed in the SGML Declaration but the change won't be reflected in FrameMaker. I would have thought that LITLEN would be the one to change. Marcus
[Slightly OT] attribute value length limits
Hi Marcus, thanks for your reply. On 15/12/05, mcarr at allette.com.au wrote: > Jakob Fix wrote: > > > I am doing some testing for export of a Frame (7.1) document to XML and > > SGML. I am particularly interested in the maximum length of attribute > > values. I found that there's not really a limit when exporting to XML > > (I tried 5kb of text). However, when exporting to SGML, it only exports > > the first 511 (!) bytes, not even 512. > > Yebbut... why? I've never seen an attribute value that size. If I had a > value that big, I'd be looking for some further breakdown of it. Are you > sure that big a chunk is necessary to assist in the description of the > element? OK, let me explain. The thing is we're thinking about ways to add metadata to a number of elements. This will probably be a separate FM or XML document that's linked to our main documents via ID values, all this implemented as an API client. Development will take time. But: our authors are asking to put in this metadata as soon as possible, so we're trying to find some temporary method, such as an attribute which would have the advantage over an element that it is hidden, and doesn't affect the layout of the page. However, it would be nice not being obliged to tell them to count the characters they type in the box ... So why SGML if these restrictions doesn't exist in XML? Obviously, it would be simpler just to switch to XML applications instead of SGML, but I do have some problems porting our existing API client from 5.5.6 to 7.x (I mean it compiles and all, all the SGML_ prefixed function calls are replaced by Structured_ ones etc, but I get a number of weird error messages when saving as XML). Also, the "backend" which will process these files is currently SGML-only and would have to be rewritten (but it's written in an Omnimark-comparable scripting language, called Balise, and the French company which created it doesn't exist any more ... Talk about vendor independence :-)) > > I do seem to remember that this value can be fixed/increased in the > > SGML declaration, however I can't find any documentation on which > > keyword corresponds to attribute value length. I tried LITLEN, > > ATTSPLEN, and some others, but even their current values are not set > > to 511 (or 512). Or is this limitation to be looked for elsewhere? > > Some things can be changed in the SGML Declaration but the change won't be > reflected in FrameMaker. I would have thought that LITLEN would be the one > to change. > > > Marcus -- cheers, Jakob.
Re: [Slightly OT] attribute value length limits
Jakob, I have to agree with Marcus, that attributes of that length are in the least unusual. Still, exceeding a quantity should result in invalid SGML, but not truncate the export. I therefore suspect you are bumping up against an implementation dependency of some sort. The relevant quantities are: ATTSPLEN (normalized length of a start-tag's attribute specification list) LITLEN (which applies to the length of an attribute value after entity and character references within it are interpreted) NORMSEP (used to separate values in a list-valued attribute) TAGLEN (length of a start-tag) The Dev Guide says that ATTSPLEN, LITLEN, and TAGLEN can be increased up to 30 times their values in the reference concrete syntax (respectively, 960, 240, and 960). --Lynne At 03:04 AM 12/15/2005, [EMAIL PROTECTED] wrote: Jakob Fix wrote: > I am doing some testing for export of a Frame (7.1) document to XML and > SGML. I am particularly interested in the maximum length of attribute > values. I found that there's not really a limit when exporting to XML > (I tried 5kb of text). However, when exporting to SGML, it only exports > the first 511 (!) bytes, not even 512. Yebbut... why? I've never seen an attribute value that size. If I had a value that big, I'd be looking for some further breakdown of it. Are you sure that big a chunk is necessary to assist in the description of the element? > I do seem to remember that this value can be fixed/increased in the > SGML declaration, however I can't find any documentation on which > keyword corresponds to attribute value length. I tried LITLEN, > ATTSPLEN, and some others, but even their current values are not set > to 511 (or 512). Or is this limitation to be looked for elsewhere? Some things can be changed in the SGML Declaration but the change won't be reflected in FrameMaker. I would have thought that LITLEN would be the one to change. Lynne A. Price Text Structure Consulting, Inc. Specializing in structured FrameMaker consulting, application development, and training [EMAIL PROTECTED]http://www.txstruct.com voice/fax: (510) 583-1505 cell phone: (510) 421-2284 ___ You are currently subscribed to Framers as [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] or visit http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com Send administrative questions to [EMAIL PROTECTED] Visit http://www.frameusers.com/ for more resources and info.
[Slightly OT] attribute value length limits
Jakob, I have to agree with Marcus, that attributes of that length are in the least unusual. Still, exceeding a quantity should result in invalid SGML, but not truncate the export. I therefore suspect you are bumping up against an implementation dependency of some sort. The relevant quantities are: ATTSPLEN (normalized length of a start-tag's attribute specification list) LITLEN (which applies to the length of an attribute value after entity and character references within it are interpreted) NORMSEP (used to separate values in a list-valued attribute) TAGLEN (length of a start-tag) The Dev Guide says that ATTSPLEN, LITLEN, and TAGLEN can be increased up to 30 times their values in the reference concrete syntax (respectively, 960, 240, and 960). --Lynne At 03:04 AM 12/15/2005, mcarr at allette.com.au wrote: >Jakob Fix wrote: > > > I am doing some testing for export of a Frame (7.1) document to XML and > > SGML. I am particularly interested in the maximum length of attribute > > values. I found that there's not really a limit when exporting to XML > > (I tried 5kb of text). However, when exporting to SGML, it only exports > > the first 511 (!) bytes, not even 512. > >Yebbut... why? I've never seen an attribute value that size. If I had a >value that big, I'd be looking for some further breakdown of it. Are you >sure that big a chunk is necessary to assist in the description of the >element? > > > I do seem to remember that this value can be fixed/increased in the > > SGML declaration, however I can't find any documentation on which > > keyword corresponds to attribute value length. I tried LITLEN, > > ATTSPLEN, and some others, but even their current values are not set > > to 511 (or 512). Or is this limitation to be looked for elsewhere? > >Some things can be changed in the SGML Declaration but the change won't be >reflected in FrameMaker. I would have thought that LITLEN would be the one >to change. Lynne A. Price Text Structure Consulting, Inc. Specializing in structured FrameMaker consulting, application development, and training lprice at txstruct.comhttp://www.txstruct.com voice/fax: (510) 583-1505 cell phone: (510) 421-2284
Re: [Slightly OT] attribute value length limits
Hi Marcus, thanks for your reply. On 15/12/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Jakob Fix wrote: > > > I am doing some testing for export of a Frame (7.1) document to XML and > > SGML. I am particularly interested in the maximum length of attribute > > values. I found that there's not really a limit when exporting to XML > > (I tried 5kb of text). However, when exporting to SGML, it only exports > > the first 511 (!) bytes, not even 512. > > Yebbut... why? I've never seen an attribute value that size. If I had a > value that big, I'd be looking for some further breakdown of it. Are you > sure that big a chunk is necessary to assist in the description of the > element? OK, let me explain. The thing is we're thinking about ways to add metadata to a number of elements. This will probably be a separate FM or XML document that's linked to our main documents via ID values, all this implemented as an API client. Development will take time. But: our authors are asking to put in this metadata as soon as possible, so we're trying to find some temporary method, such as an attribute which would have the advantage over an element that it is hidden, and doesn't affect the layout of the page. However, it would be nice not being obliged to tell them to count the characters they type in the box ... So why SGML if these restrictions doesn't exist in XML? Obviously, it would be simpler just to switch to XML applications instead of SGML, but I do have some problems porting our existing API client from 5.5.6 to 7.x (I mean it compiles and all, all the SGML_ prefixed function calls are replaced by Structured_ ones etc, but I get a number of weird error messages when saving as XML). Also, the "backend" which will process these files is currently SGML-only and would have to be rewritten (but it's written in an Omnimark-comparable scripting language, called Balise, and the French company which created it doesn't exist any more ... Talk about vendor independence :-)) > > I do seem to remember that this value can be fixed/increased in the > > SGML declaration, however I can't find any documentation on which > > keyword corresponds to attribute value length. I tried LITLEN, > > ATTSPLEN, and some others, but even their current values are not set > > to 511 (or 512). Or is this limitation to be looked for elsewhere? > > Some things can be changed in the SGML Declaration but the change won't be > reflected in FrameMaker. I would have thought that LITLEN would be the one > to change. > > > Marcus -- cheers, Jakob. ___ You are currently subscribed to Framers as [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] or visit http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com Send administrative questions to [EMAIL PROTECTED] Visit http://www.frameusers.com/ for more resources and info.
Re: [Slightly OT] attribute value length limits
Jakob Fix wrote: > I am doing some testing for export of a Frame (7.1) document to XML and > SGML. I am particularly interested in the maximum length of attribute > values. I found that there's not really a limit when exporting to XML > (I tried 5kb of text). However, when exporting to SGML, it only exports > the first 511 (!) bytes, not even 512. Yebbut... why? I've never seen an attribute value that size. If I had a value that big, I'd be looking for some further breakdown of it. Are you sure that big a chunk is necessary to assist in the description of the element? > I do seem to remember that this value can be fixed/increased in the > SGML declaration, however I can't find any documentation on which > keyword corresponds to attribute value length. I tried LITLEN, > ATTSPLEN, and some others, but even their current values are not set > to 511 (or 512). Or is this limitation to be looked for elsewhere? Some things can be changed in the SGML Declaration but the change won't be reflected in FrameMaker. I would have thought that LITLEN would be the one to change. Marcus ___ You are currently subscribed to Framers as [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] or visit http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com Send administrative questions to [EMAIL PROTECTED] Visit http://www.frameusers.com/ for more resources and info.
[Slightly OT] attribute value length limits
Hello, I am doing some testing for export of a Frame (7.1) document to XML and SGML. I am particularly interested in the maximum length of attribute values. I found that there's not really a limit when exporting to XML (I tried 5kb of text). However, when exporting to SGML, it only exports the first 511 (!) bytes, not even 512. I do seem to remember that this value can be fixed/increased in the SGML declaration, however I can't find any documentation on which keyword corresponds to attribute value length. I tried LITLEN, ATTSPLEN, and some others, but even their current values are not set to 511 (or 512). Or is this limitation to be looked for elsewhere? On a related, less offtopic note: Can I export such an attribute to an element using the Import/Export Rules? And finally, how difficult is it to convert the Rules file to XSLT? (Just in case we upgrade to 7.2.) I would describe my XSL knowledge as fair. -- cheers, Jakob.
[Slightly OT] attribute value length limits
Hello, I am doing some testing for export of a Frame (7.1) document to XML and SGML. I am particularly interested in the maximum length of attribute values. I found that there's not really a limit when exporting to XML (I tried 5kb of text). However, when exporting to SGML, it only exports the first 511 (!) bytes, not even 512. I do seem to remember that this value can be fixed/increased in the SGML declaration, however I can't find any documentation on which keyword corresponds to attribute value length. I tried LITLEN, ATTSPLEN, and some others, but even their current values are not set to 511 (or 512). Or is this limitation to be looked for elsewhere? On a related, less offtopic note: Can I export such an attribute to an element using the Import/Export Rules? And finally, how difficult is it to convert the Rules file to XSLT? (Just in case we upgrade to 7.2.) I would describe my XSL knowledge as fair. -- cheers, Jakob. ___ You are currently subscribed to Framers as [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] or visit http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com Send administrative questions to [EMAIL PROTECTED] Visit http://www.frameusers.com/ for more resources and info.