trying to use xbl to display the attributes of an node in an instance

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

trying to use xbl to display the attributes of an node in an instance

Jeremiah Jahn-4
I'm not sure what I need to do to get a copy of the node in the
nodeset to the xsl in the xbl, so i can work with it.
I'm sure there is an easier way, but having no luck at the moment.

usage:

<xforms:repeat nodeset="instance('data')/hardwareitem[@nodeID]" >
                        <xhtml:div>
                            <xforms:output ref="@assestID"/>
                            <delcyon:atritr ref="."/>
                        </xhtml:div>
                    </xforms:repeat>


xbl:

<xbl:xbl script-type="application/xhtml+xml">
                    <xbl:binding id="delcyon-attr" element="delcyon|atritr">    
                       <xbl:template xxbl:transform="oxf:xslt">
                                        <xsl:transform version="2.0">
                                                    <xsl:template match="@*|node()">
                                                    <xforms:group xbl:attr="ref=ref">
                                  <xsl:for-each select="@*">
                                  name:'<xsl:value-of select="name()"/>' value:'<xsl:value-of
select="."/>'<br/>
                                  </xsl:for-each>
                                  </xforms:group>
                                                    </xsl:template>
                                            </xsl:transform>
                       
                            </xbl:template>
                    </xbl:binding>
           </xbl:xbl>


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: trying to use xbl to display the attributes of an node in an instance

Alessandro Vernet
Administrator
Jeremiah,

Jeremiah Jahn-4 wrote
I'm not sure what I need to do to get a copy of the node in the
nodeset to the xsl in the xbl, so i can work with it.
I'm sure there is an easier way, but having no luck at the moment.
[...]
Could you put all of this together in a minimal example that shows the issue and that runs the XForms sandbox?

Alex