We have defined a number of requirements in our model. Some of these are functional, some non-functional, etc. We are using DocGen to generate the SRS, using this:
${ELEMENT, “Requirement paragraphs”, Requirement, SortBy=”group,userID”, LoopInProject, “MyRequirementBasic”}
Where MyRequirementBasic
is a template that formats each requirement as we need:
<?xml version="1.0" encoding="UTF-8"?>
<ElementBaseInitiationBlock>
<Property property="userID" style="@heading+"/><Text style="@heading"> </Text><Property property="name" style="@heading"/>
<ParagraphBreak/>
<Property property="description" style="Description"/>
<ParagraphBreak/>
</ElementBaseInitiationBlock>
I’d like to be able to filter on requirement ‘kind’, so we can have one ${ELEMENT, ...}
that only lists functional requirements and in another section of the SRS we have a different ${ELEMENT, ...}
that only lists (for example) non-functional requirements.
I was hoping that I could do this via a parameter to the ${ELEMENT, ...}
command but I can’t see any way of doing this. Does that mean I need to have two XML templates, and if so how can I filter requirements in XML?