Re: [Xsltforms-support] Chrome:Input bound to 2nd model not rendering
Brought to you by:
alain-couthures
From: Alain C. <ala...@ag...> - 2012-05-22 20:37:45
|
Hello Ihe, The 2nd group is rendered when removing ref="/b2b:Client" or adding model="clientModel" because b2b:Client is not in the default model. BTW, you don't have to always mention the document element in each XPath expression because it is the default evaluation context. Thank you for your feedbacks! -Alain Le 22/05/2012 11:04, ihe onwuka a écrit : > There are 2 groups in this. The first group is rendering ok on Chrome. > > The input control in the 2nd group is not rendering at all although > the 2nd fieldset is. > > I have added a dummy attribute in the namespace just in case. > > <?xml version="1.0"?> > <?xml-stylesheet href="../xsltforms/xsltforms.xsl" type="text/xsl"?> > <html xmlns:html="http://www.w3.org/1999/xhtml" > xmlns="http://www.w3.org/1999/xhtml" > xmlns:xf="http://www.w3.org/2002/xforms" > xmlns:ev="http://www.w3.org/2001/xml-events" > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > xmlns:b2b="http://www.b2b.net/plants"> > <head> > <title>B2B.Net Plants System</title> > <xf:model id="salesModel"> > <xf:instance src="sales.xml"/> > <xf:bind nodeset="/b2b:Sales/b2b:Client" id="salesClient" > type="xsd:string"/> > <xf:bind nodeset="/b2b:Sales/b2b:Date" id="salesDate" type="xsd:date"/> > <xf:bind nodeset="/b2b:Sales/b2b:Botanical" id="salesBotanical" > type="xsd:string"/> > <xf:bind nodeset="/b2b:Sales/b2b:Quantity" id="salesQuantity" > type="xsd:positiveInteger"/> > <xf:bind nodeset="/b2b:Sales/b2b:UnitPrice" id="salesUnitPrice" > type="xsd:decimal"/> > <xf:bind nodeset="/b2b:Sales/b2b:DiscountRate" > id="salesDiscountRate" type="xsd:decimal"/> > <xf:bind nodeset="/b2b:Sales/b2b:Comments" id="salesComments" > type="xsd:string"/> > </xf:model> > <xf:model id="clientModel"> > <xf:instance src="clients.xml"/> > <xf:bind nodeset="/b2b:Client/b2b:Name" id="clientName" > type="xsd:string"/> > <xf:bind nodeset="/b2b:Client/b2b:Address" id="clientAddress" > type="xsd:string"/> > <xf:bind nodeset="/b2b:Client/b2b:EmailAddress" > id="clientEmailAddress" type="xsd:string"/> > <xf:bind nodeset="/b2b:Client/b2b:Phone" id="clientPhone" > type="xsd:string"/> > <xf:bind nodeset="/b2b:Client/b2b:Comments" id="clientComments" > type="xsd:string"/> > </xf:model> > </head> > <body> > <xf:trigger id="Plants" appearance="compact"> > <xf:label>Plants</xf:label> > </xf:trigger> > <xf:trigger id="Stock" appearance="compact"> > <xf:label>Stock</xf:label> > </xf:trigger> > <xf:trigger id="Clients" appearance="compact"> > <xf:label>Clients</xf:label> > </xf:trigger> > <xf:trigger id="Sales" appearance="compact"> > <xf:label>Sales</xf:label> > </xf:trigger> > <br/> > <fieldset> > <legend>Sales Details</legend> > <xf:group ref="/b2b:Sales"> > <xf:input bind="salesClient"> > <xf:label>Client:</xf:label> > </xf:input> > <br/> > <xf:input bind="salesDate"> > <xf:label>Date:</xf:label> > </xf:input> > <br/> > <xf:input bind="salesBotanical"> > <xf:label>Botanical:</xf:label> > </xf:input> > <br/> > <xf:input bind="salesQuantity"> > <xf:label>Quantity:</xf:label> > </xf:input> > <br/> > <xf:input bind="salesDiscountRate"> > <xf:label>Discount Rate:</xf:label> > </xf:input> > <br/> > <xf:input bind="salesUnitPrice"> > <xf:label>Unit Price:</xf:label> > </xf:input> > <br/> > <xf:input bind="salesComments"> > <xf:label>Comments:</xf:label> > </xf:input> > <br/> > </xf:group> > </fieldset> > <fieldset> > <legend>Client Details</legend> > <xf:group ref="/b2b:Client"> > <xf:input bind="clientName"> > <xf:label>Name:</xf:label> > </xf:input> > <br/> > </xf:group> > </fieldset> > </body> > </html> > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Xsltforms-support mailing list > Xsl...@li... > https://lists.sourceforge.net/lists/listinfo/xsltforms-support > |