cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X

Present a Check box or Selection list for xs:boolean attributes

Present a Check box or Selection list for xs:boolean attributes

At this point, Arbortext Editor presents a Textbox for XSD Attributes of type xs:boolean. An xs:boolean is constrained to the values "true", "false", "1" and "0", which must be written in exactly that manner (a simple case deviation like "True" or "TRUE" is rejected with an error message).

Since the boolean can actually only take 2 possible values (with "1" being synonymous to "true" and "0" being synonymous to "false") it would make sense to present it as such.

Probably the more understandable option would be to use a simple Check box that presents "true" and "1" as being checked, while "false" and "0" are shown unchecked.

The easier option on the other hand might be a Selection list (similar to enumerated values), but that leaves the question of which values to present (true/false vs. 0/1).

Since both options need a way for the Doctype (and/or Stylesheet) author to specify whether true/false or 0/1 should be used, an according DCF Option would probably be needed aswell.

Possibly related: the Styler Graphic attribute "scale to fit" seems to only accept "1" (at least with 6.1 M010) to re-scale an illustration; while "true" seems to be ignored and presented as if it were "0".

3 Comments
dthursfield
1-Newbie

As for the boolean attribute the behaviour is equal in 6.1 M040. Didn´t check the "scale to fit" option in styler.

EmanuelW
4-Participant

I'm talking about the Graphic element options (where attributes are assigned to roles; one of them being "scale to fit", others including the entity or file reference, width/height and similar graphic attributes) when styling an element as Graphic.

olivierlp
Community Manager
Status changed to: Archived

Hello,

We are archiving your idea as part of a general review. This action is based on the age of your idea and the total number of votes received, as per this announcement.

You can always post a new idea with all the details required in the form.

Thank you for your participation.