Re: How to pre-populate the value from xslt to Orbeon form

61 views
Skip to first unread message

rajeeva

unread,
Jun 1, 2015, 11:03:23 AM6/1/15
to orb...@googlegroups.com


I figured out answer my self.


*working example:*

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xsl:output method="xml" indent="yes" />

<xsl:variable name="config" select="document('./configuration.xml')"/>

<xsl:variable name="children-grid">
<xsl:for-each select="/User/Children">
<children-grid>
<children-grid-iteration>
<child-date-of-birth><xsl:value-of
select="DateOfBirth"/></child-date-of-birth>
<child-us-citizen><xsl:value-of select="USCitizen"/></child-us-citizen>
<child-gender/>
<child-ssn/>
<child-first-name/>
<child-mi/>
<child-last-name/>
<child-suffix/>
</children-grid-iteration>
</children-grid>
</xsl:for-each>
</xsl:variable>

<xsl:template match="/">
<section-1>
<xsl:copy-of select="$children-grid">
</xsl:copy-of>
</section-1>
</xsl:template>

</xsl:stylesheet>


--
View this message in context: http://discuss.orbeon.com/How-to-pre-populate-the-value-from-xslt-to-Orbeon-form-tp4660009p4660010.html
Sent from the Orbeon Forms community mailing list mailing list archive at Nabble.com.

rajeeva

unread,
Jun 1, 2015, 11:03:23 AM6/1/15
to orb...@googlegroups.com
Hi, I am using New repeatable grid control in Orbeon form. Need to prepopulate the value from my xstl from. Please share any working example. Example: for orbeon form code please have a look on the attached file child-repetable-feilds.xhtml xslt code: Pre-populated value Configuration Code 969062400000 SECONDARY JACK R POWERS III FEMALE CHILD 123-45-6789 SSN Yes 969062400000 SECONDARY JACK R POWERS III FEMALE CHILD 123-45-6789 SSN Yes Please let me know if you need any more information. Thanks and Regards, Rajeeva Lochana BR

View this message in context: How to pre-populate the value from xslt to Orbeon form
Reply all
Reply to author
Forward
0 new messages