[ 
https://issues.apache.org/jira/browse/TAP5-171?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12647414#action_12647414
 ] 

Howard M. Lewis Ship commented on TAP5-171:
-------------------------------------------

Is this necessary given that we only expect templates to be well-formed, not 
valid?

> Consider checking for org.xml.sax.ext.Attributes2
> -------------------------------------------------
>
>                 Key: TAP5-171
>                 URL: https://issues.apache.org/jira/browse/TAP5-171
>             Project: Tapestry 5
>          Issue Type: Improvement
>         Environment: Sun JDK 1.5
>            Reporter: Folke Behrens
>            Priority: Trivial
>
> Consider testing for org.xml.sax.ext.Attributes2 and use 
> Attributes2.isSpecified(int) to check if the attribute is really specified or 
> just a default declaration.
> With this you can e.g. test if <a  shape="rect" > is really set. Test for 
> "http://xml.org/sax/features/use-attributes2"; or just use "instanceof":
> if (attributes instanceof Attributes2) {
>     if (( (Attributes2)attributes ).isSpecified(i)) {
>         // do something
>     }
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to