Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7592549
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T20:56:04+00:00 2026-05-30T20:56:04+00:00

Thanks to SO for letting me know about AVT in my previous question .

  • 0

Thanks to SO for letting me know about AVT in my previous question.

I thought AVT can be applied to all attributes, but i found that it is not working for attribute id. I read W3C recommendations and come to know that AVT cannot be applied to all attributes.

Please can some one let me know if this works with Orbeon Xforms.

Sample Code(Play it in Sandbox!):

<xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml"
    xmlns:odt="http://orbeon.org/oxf/xml/datatypes"
    xmlns:xi="http://www.w3.org/2001/XInclude"
    xmlns:sql="http://orbeon.org/oxf/xml/sql"
    xmlns:xxi="http://orbeon.org/oxf/xml/xinclude"
    xmlns:p="http://www.orbeon.com/oxf/pipeline"
    xmlns:saxon="http://saxon.sf.net/"
    xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:oxf="http://www.orbeon.com/oxf/processors"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
    xmlns:exforms="http://www.exforms.org/exf/1-0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:fr="http://orbeon.org/oxf/xml/form-runner"
    xmlns:ev="http://www.w3.org/2001/xml-events"
    xmlns:pipeline="java:org.orbeon.oxf.processor.pipeline.PipelineFunctionLibrary"
    xmlns:f="http://orbeon.org/oxf/xml/formatting"
    xmlns:xforms="http://www.w3.org/2002/xforms"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:exf="http://www.exforms.org/exf/1-0"
    xmlns:xbl="http://www.w3.org/ns/xbl"
    xmlns:date="http://exslt.org/dates-and-times">

<xhtml:head>
  <xhtml:title>Address Details</xhtml:title>

  <xforms:model>
     <xforms:instance id="address-details" xmlns="">
        <form>
            <address>
                <address-1></address-1>
            </address>
        </form>
     </xforms:instance>

    <xforms:bind id="address-1" nodeset="instance('address-details')/address/address-1" 
                readonly="false()"
                constraint="string-length(.) &lt;= 15"/>
    <xxforms:variable name="id-name" select="CONTROL-ID" />

  </xforms:model>
</xhtml:head>

<xhtml:body>

    <table>
        <tr>
            <td>
                Address 1:
            </td>
            <td>
                <xforms:input bind="address-1" incremental="true" id="{$id-name}">
                    <xforms:alert>Maximum allowed characters are 15</xforms:alert>
                </xforms:input>
            </td>
        </tr>
    </table>

</xhtml:body>

</xhtml:html>

We can see the HTML source which shows that the AVT is not interpreted.

AVT not interpreted for id attribute

I know that the form runner appends a dynamic name to the id value, but thats fine for me.

Please can some one let me know if this works with Orbeon Xforms or not.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T20:56:05+00:00Added an answer on May 30, 2026 at 8:56 pm

    Simple answer: AVTs don’t work on the id attribute of XForms elements. You have to pick an id statically.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I have a problem that my experience says I can't much about but
Suddenly I am getting the red stylings of IDEA letting me know that it
I had a question about letting clicked buttons/lists/anchors stay in a different colour... This
Can anybody help me letting me know what is wrong with the following code?
1) 1 - Only handle exceptions that you can actually do something about, and
Thanks in advance to anyone who can think of a more efficient or a
So far in my web developing experiences, I've noticed that almost all web developers/designers
On a bit of a learning curve. Know one of you gurus can help
I know this question has been asked many times and I've researched it myself
I'm using twitter bootstrap and can't find any date pickers that work with my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.