Subject: Re: [xsl] Total Missing documents for each Event From: David Carlisle <davidc@xxxxxxxxx> Date: Fri, 09 Apr 2010 01:33:49 +0100 |
Hello All,
I am trying to create the list of missing documents and their count for each event.
<data> <event_template sp_mand_doctypes="PSC Minutes, Internal Approval, Rationale, Trade Instructions, IPS, Final Client Models"> <event> <document_type sp_document_type="Final Client Models"/> </event> <event> <document_type sp_document_type="Final Client Models"/> <document_type sp_document_type="Rationale"/> </event> <event> <document_type sp_document_type="Analyst"/> </event> <event_template> </data>
So my table should look like
For 1st Event list of missing documents will be [PSC Minutes, Internal Approval, Rationale, Trade Instructions, IPS] and count is 5 For 2nd Event list of missing documents will be [PSC Minutes, Internal Approval, Trade Instructions, IPS] and count is 4 For 3rd Event list of missing documents will be [PSC Minutes, Internal Approval, Rationale, Trade Instructions, IPS, Final Client Models] and count is 6. "Analyst" is not the mandatory document as it is not present in the sp_mand_doctype list.
I am using this following code.
<xsl:for-each select="event"> <xsl:call-template name =" DocsMissing "/> </xsl:for-each>
<xsl:template name="DocsMissing"> <xsl:choose> <xsl:variable name="mandatoryDocs" select="parent::node()/@sp_mand_doctypes"/>
.... </xsl:if> > </xsl:template> > > With this I am able to right number of Missing Docs f
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Total Missing documents for e, Shashank Jain | Thread | RE: [xsl] Total Missing documents f, Shashank Jain |
[xsl] Nodes get new IDs in function, Martynas Jusevicius | Date | Re: [xsl] Nodes get new IDs in func, David Carlisle |
Month |