 |
| XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|

May 10th, 2010, 11:00 AM
|
|
Registered User
|
|
Join Date: May 2010
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
can't parse the child node
. I would like to get the value of this custom field in my report. Tried to tweak the xlst but could not achieve the goal.
Highlights from XSLT:
<w:tc><w:p><w:r><w:t>
<xsl:value-of select="ScopeLevelName"/>
</w:t></w:r></w:p></w:tc>
<w:tc><w:p><w:r><w:t>
<xsl:value-of select="ReleaseVersionNumber"/>
</w:t></w:r></w:p></w:tc>
<w:tc><w:p><w:r>
<w:t><xsl:for-each select="TestCases/TestCase">
<xsl:if test="position() > 1">, </xsl:if>TC<xsl:value-of select="TestCaseId"/>
</xsl:for-each></w:t>
</w:r></w:p></w:tc>
<w:tc><w:p><w:r>
<w:t><xsl:for-each select="Requirements/ArtifactLink">
<xsl:if test="position() > 1">, </xsl:if>RQ<xsl:value-of select="ArtifactId"/>
</xsl:for-each></w:t>
</w:r></w:p></w:tc>
<w:tc><w:p><w:r>
<w:t>
<xsl:for-each select="CustomProperties/CustomProperty">
<xsl:if test="position() > 1">, </xsl:if>TC<xsl:value-of select="Value"/>
</xsl:for-each>
</w:t>
</w:r></w:p></w:tc>
</w:tr>
Highlights from XML:
<TestCase>
<TestCaseId>47</TestCaseId>
<ProjectId>8</ProjectId>
<ExecutionStatusId>3</ExecutionStatusId>
<AuthorId>5</AuthorId>
<OwnerId>5</OwnerId>
<Name>TC_602_Select Saved Report</Name>
<IndentLevel>AAAAAD</IndentLevel>
<CreationDate>2010-05-05T14:14:53.023-04:00</CreationDate>
<LastUpdateDate>2010-05-05T15:59:58.047-04:00</LastUpdateDate>
<VisibleYn>Y</VisibleYn>
<FolderYn>N</FolderYn>
<ExpandedYn>N</ExpandedYn>
<ActiveYn>Y</ActiveYn>
<AttachmentsYn>N</AttachmentsYn>
<TestStepsYn>Y</TestStepsYn>
<ExecutionStatusName>Not Run</ExecutionStatusName>
<AuthorName>Obaidur Rahman</AuthorName>
<OwnerName>Obaidur Rahman</OwnerName>
<List01>27</List01>
-
<CustomProperties>
-
<CustomProperty>
<Alias>Module</Alias>
<Name>Text01</Name>
</CustomProperty>
-
<CustomProperty>
<Alias>Level indicator</Alias>
<Name>List01</Name>
<Value>Level 1</Value>
</CustomProperty>
</CustomProperties>
|
|

May 10th, 2010, 11:54 AM
|
 |
Wrox Author
|
|
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
|
|
You need to explain your problem more clearly. I don't know what you mean by "this custom field". Most of the element names used in your XSLT don't relate to anything in your XML. And saying the XSLT doesn't achieve your goal isn't useful unless you say what your goal is.
__________________
Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer\'s Reference
|
|

May 10th, 2010, 01:32 PM
|
|
Registered User
|
|
Join Date: May 2010
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
the xml and xslt file....
need to find the value level 1 or level 2 from this following xml...
--xslt
*************************************
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl" xmlns:w="http://schemas.microsoft.com/office/word/2003/wordml">
<xsl:template match="/RequirementData">
<w:tbl>
<w:tblPr>
<w:tblStyle w:val="DataGrid"/>
<w:tblLook w:val="000001E0"/>
</w:tblPr>
<w:tr>
<w:tc>
<w:p>
<w:r>
<w:t>Req #</w:t>
</w:r>
</w:p>
</w:tc>
<w:tc>
<w:p>
<w:r>
<w:t>Name</w:t>
</w:r>
</w:p>
</w:tc>
<w:tc>
<w:p>
<w:r>
<w:t>Importance</w:t>
</w:r>
</w:p>
</w:tc>
<w:tc>
<w:p>
<w:r>
<w:t>Status</w:t>
</w:r>
</w:p>
</w:tc>
<w:tc>
<w:p>
<w:r>
<w:t>Release #</w:t>
</w:r>
</w:p>
</w:tc>
<w:tc>
<w:p>
<w:r>
<w:t>Test Traceability</w:t>
</w:r>
</w:p>
</w:tc>
<w:tc>
<w:p>
<w:r>
<w:t>Requirements Traceability</w:t>
</w:r>
</w:p>
</w:tc>
<w:tc>
<w:p>
<w:r>
<w:t>Level</w:t>
</w:r>
</w:p>
</w:tc>
</w:tr>
<xsl:for-each select="Requirement">
<w:tr>
<w:tc>
<w:p>
<w:r>
<w:t>RQ<xsl:value-of select="RequirementId"/>
</w:t>
</w:r>
</w:p>
</w:tc>
<w:tc>
<w:p>
<w:pPr>
<w:ind>
<xsl:attribute name="left" namespace="http://schemas.microsoft.com/office/word/2003/wordml"><xsl:value-of select="string-length(IndentLevel)*50"/></xsl:attribute>
</w:ind>
</w:pPr>
<w:r>
<w:rPr>
<xsl:if test="SummaryYn='Y'">
<w:b/>
</xsl:if>
</w:rPr>
<w:t>
<xsl:value-of select="Name"/>
</w:t>
</w:r>
</w:p>
</w:tc>
<w:tc>
<w:p>
<w:r>
<w:t>
<xsl:value-of select="ImportanceName"/>
</w:t>
</w:r>
</w:p>
</w:tc>
<w:tc>
<w:p>
<w:r>
<w:t>
<xsl:value-of select="ScopeLevelName"/>
</w:t>
</w:r>
</w:p>
</w:tc>
<w:tc>
<w:p>
<w:r>
<w:t>
<xsl:value-of select="ReleaseVersionNumber"/>
</w:t>
</w:r>
</w:p>
</w:tc>
<w:tc>
<w:p>
<w:r>
<w:t>
<xsl:for-each select="TestCases/TestCase">
<xsl:if test="position() > 1">, </xsl:if>TC<xsl:value-of select="TestCaseId"/>
</xsl:for-each>
</w:t>
</w:r>
</w:p>
</w:tc>
<w:tc>
<w:p>
<w:r>
<w:t>
<xsl:for-each select="Requirements/ArtifactLink">
<xsl:if test="position() > 1">, </xsl:if>RQ<xsl:value-of select="ArtifactId"/>
</xsl:for-each>
</w:t>
</w:r>
</w:p>
</w:tc>
<w:tc>
<w:p>
<w:r>
<w:t>
<xsl:for-each select="CustomProperties/CustomProperty">
<xsl:if test="position() > 1">, </xsl:if>TC<xsl:value-of select="Value"/>
</xsl:for-each>
</w:t>
</w:r>
</w:p>
</w:tc>
</w:tr>
</xsl:for-each>
</w:tbl>
</xsl:template>
</xsl:stylesheet>
--XML
************************************************** *****
<Report>
<ProjectOverview>
<ProjectData>
<Project>
<ProjectId>8</ProjectId>
<ProjectGroupId>1</ProjectGroupId>
<Name>Applications FO and FO Admin</Name>
<Description>
This project will replace the current MOB and ADM projects consolidating them into one project. With components for both.
</Description>
<Website>http://www.wrx-us.net/</Website>
<CreationDate>2010-05-05T08:31:47.023-04:00</CreationDate>
<ActiveYn>Y</ActiveYn>
<WorkingHours>8</WorkingHours>
<WorkingDays>5</WorkingDays>
<NonWorkingHours>0</NonWorkingHours>
<TimeTrackIncidentsYn>Y</TimeTrackIncidentsYn>
<TimeTrackTasksYn>Y</TimeTrackTasksYn>
<EffortIncidentsYn>Y</EffortIncidentsYn>
<EffortTasksYn>Y</EffortTasksYn>
<ProjectGroupName>Default Group</ProjectGroupName>
</Project>
</ProjectData>
</ProjectOverview>
<RequirementTrace>
<RequirementData>
<Requirement>
<RequirementId>49</RequirementId>
<ProjectId>8</ProjectId>
<ScopeLevelId>4</ScopeLevelId>
<AuthorId>5</AuthorId>
<ImportanceId>2</ImportanceId>
<ReleaseId>26</ReleaseId>
<Name>601 Save Report</Name>
<CreationDate>2010-05-05T11:17:24.813-04:00</CreationDate>
<LastUpdateDate>2010-05-05T16:13:58.32-04:00</LastUpdateDate>
<IndentLevel>AAA</IndentLevel>
<ExpandedYn>N</ExpandedYn>
<VisibleYn>Y</VisibleYn>
<SummaryYn>N</SummaryYn>
<AttachmentsYn>Y</AttachmentsYn>
<CoverageCountTotal>3</CoverageCountTotal>
<CoverageCountPassed>0</CoverageCountPassed>
<CoverageCountFailed>0</CoverageCountFailed>
<CoverageCountCaution>0</CoverageCountCaution>
<CoverageCountBlocked>0</CoverageCountBlocked>
<TaskCount>0</TaskCount>
<TaskPercentOnTime>0</TaskPercentOnTime>
<TaskPercentLateFinish>0</TaskPercentLateFinish>
<TaskPercentNotStart>0</TaskPercentNotStart>
<TaskPercentLateStart>0</TaskPercentLateStart>
<ScopeLevelName>Completed</ScopeLevelName>
<AuthorName>Obaidur Rahman</AuthorName>
<ImportanceName>2 - High</ImportanceName>
<ReleaseVersionNumber>5.8.13.i1</ReleaseVersionNumber>
<CustomProperties>
<CustomProperty>
<Alias>Level Indicator</Alias>
<Name>List01</Name>
</CustomProperty>
</CustomProperties>
<TestCases>
<TestCase>
<TestCaseId>44</TestCaseId>
<ProjectId>8</ProjectId>
<ExecutionStatusId>3</ExecutionStatusId>
<AuthorId>5</AuthorId>
<OwnerId>5</OwnerId>
<TestCasePriorityId>2</TestCasePriorityId>
<Name>TC_601_Save Report normal flow</Name>
<Description>
<P><SPAN style="FONT-FAMILY: 'Arial', 'sans-serif'; FONT-SIZE: 10pt">Description:<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /></SPAN></P>
<P><SPAN style="FONT-FAMILY: 'Arial', 'sans-serif'; FONT-SIZE: 10pt">The purpose of this test case is to validate the normal flow of the FO report function.</SPAN></P>
<P><SPAN style="FONT-FAMILY: 'Arial', 'sans-serif'; FONT-SIZE: 10pt">Pre-Condition:</SPAN></P><SPAN style="FONT-FAMILY: 'Arial', 'sans-serif'; FONT-SIZE: 10pt">
<P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.25in; mso-add-space: auto; mso-list: l0 level1 lfo1" class=MsoListParagraphCxSpFirst><SPAN style="mso-fareast-font-family: Arial; mso-bidi-font-family: Arial"><SPAN style="mso-list: Ignore">1.<SPAN style="FONT: 7pt 'Times New Roman'"> </SPAN></SPAN></SPAN>The user has logged on</P>
<P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.25in; mso-add-space: auto; mso-list: l0 level1 lfo1" class=MsoListParagraphCxSpMiddle><SPAN style="mso-fareast-font-family: Arial; mso-bidi-font-family: Arial"><SPAN style="mso-list: Ignore">2.<SPAN style="FONT: 7pt 'Times New Roman'"> </SPAN></SPAN></SPAN>The user has clicked on the âreportsâ tab</P>
<P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.25in; mso-add-space: auto; mso-list: l0 level1 lfo1" class=MsoListParagraphCxSpLast><SPAN style="mso-fareast-font-family: Arial; mso-bidi-font-family: Arial"><SPAN style="mso-list: Ignore">3.<SPAN style="FONT: 7pt 'Times New Roman'"> </SPAN></SPAN></SPAN>The user has clicked on the âNew Reportsâ button</P>
<P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.25in; mso-add-space: auto; mso-list: l0 level1 lfo1" class=MsoListParagraphCxSpLast>4. <SPAN style="FONT-FAMILY: 'Arial', 'sans-serif'; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA">Report parameters have been chosen.</SPAN></SPAN></P>
<P><SPAN style="FONT-FAMILY: 'Arial', 'sans-serif'; FONT-SIZE: 10pt">Post-Condition:</SPAN></P>
<P><SPAN style="FONT-FAMILY: 'Arial', 'sans-serif'; FONT-SIZE: 10pt"><SPAN style="FONT-FAMILY: 'Arial', 'sans-serif'; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA">1. The report is saved under the given name</SPAN></SPAN></P>
</Description>
<IndentLevel>AAAAAA</IndentLevel>
<CreationDate>2010-05-05T14:13:47.707-04:00</CreationDate>
<LastUpdateDate>2010-05-05T14:14:31.01-04:00</LastUpdateDate>
<EstimatedDuration>60</EstimatedDuration>
<VisibleYn>Y</VisibleYn>
<FolderYn>N</FolderYn>
<ExpandedYn>N</ExpandedYn>
<ActiveYn>Y</ActiveYn>
<AttachmentsYn>N</AttachmentsYn>
<TestStepsYn>Y</TestStepsYn>
<ExecutionStatusName>Not Run</ExecutionStatusName>
<AuthorName>Obaidur Rahman</AuthorName>
<OwnerName>Obaidur Rahman</OwnerName>
<TestCasePriorityName>2 - High</TestCasePriorityName>
</TestCase>
<TestCase>
<TestCaseId>45</TestCaseId>
<ProjectId>8</ProjectId>
<ExecutionStatusId>3</ExecutionStatusId>
<AuthorId>5</AuthorId>
<OwnerId>5</OwnerId>
<TestCasePriorityId>3</TestCasePriorityId>
<Name>TC_601_Save Report alternate flow "Cancel" button</Name>
<Description>
<P><SPAN style="FONT-FAMILY: 'Arial', 'sans-serif'; FONT-SIZE: 10pt">Description:</SPAN></P>
<P><SPAN style="FONT-FAMILY: 'Arial', 'sans-serif'; FONT-SIZE: 10pt">The purpose of this test case is to validate the alternate flow of the FO report function. The user clicks the "Cancel" button instead of entering a report name and clicking "Save".</SPAN></P>
<P><SPAN style="FONT-FAMILY: 'Arial', 'sans-serif'; FONT-SIZE: 10pt">Pre-Condition:</SPAN></P><SPAN style="FONT-FAMILY: 'Arial', 'sans-serif'; FONT-SIZE: 10pt">
<P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.25in; mso-add-space: auto; mso-list: l0 level1 lfo1" class=MsoListParagraphCxSpFirst><SPAN style="mso-fareast-font-family: Arial; mso-bidi-font-family: Arial"><SPAN style="mso-list: Ignore">1.<SPAN style="FONT: 7pt 'Times New Roman'"> </SPAN></SPAN></SPAN>The user has logged on</P>
<P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.25in; mso-add-space: auto; mso-list: l0 level1 lfo1" class=MsoListParagraphCxSpMiddle><SPAN style="mso-fareast-font-family: Arial; mso-bidi-font-family: Arial"><SPAN style="mso-list: Ignore">2.<SPAN style="FONT: 7pt 'Times New Roman'"> </SPAN></SPAN></SPAN>The user has clicked on the âreportsâ tab</P>
<P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.25in; mso-add-space: auto; mso-list: l0 level1 lfo1" class=MsoListParagraphCxSpLast><SPAN style="mso-fareast-font-family: Arial; mso-bidi-font-family: Arial"><SPAN style="mso-list: Ignore">3.<SPAN style="FONT: 7pt 'Times New Roman'"> </SPAN></SPAN></SPAN>The user has clicked on the âNew Reportsâ button</P>
<P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.25in; mso-add-space: auto; mso-list: l0 level1 lfo1" class=MsoListParagraphCxSpLast>4. <SPAN style="FONT-FAMILY: 'Arial', 'sans-serif'; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA">Report parameters have been chosen</SPAN></SPAN></P>
<P><SPAN style="FONT-FAMILY: 'Arial', 'sans-serif'; FONT-SIZE: 10pt">Post-Condition:</SPAN></P>
<P><SPAN style="FONT-FAMILY: 'Arial', 'sans-serif'; FONT-SIZE: 10pt"><SPAN style="FONT-FAMILY: 'Arial', 'sans-serif'; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA">1. The report is saved under the given name</SPAN></SPAN></P>
</Description>
<IndentLevel>AAAAAB</IndentLevel>
<CreationDate>2010-05-05T14:13:47.827-04:00</CreationDate>
<LastUpdateDate>2010-05-05T16:00:12.52-04:00</LastUpdateDate>
<EstimatedDuration>30</EstimatedDuration>
<VisibleYn>Y</VisibleYn>
<FolderYn>N</FolderYn>
<ExpandedYn>N</ExpandedYn>
<ActiveYn>Y</ActiveYn>
<AttachmentsYn>N</AttachmentsYn>
<TestStepsYn>Y</TestStepsYn>
<ExecutionStatusName>Not Run</ExecutionStatusName>
<AuthorName>Obaidur Rahman</AuthorName>
<OwnerName>Obaidur Rahman</OwnerName>
<TestCasePriorityName>3 - Medium</TestCasePriorityName>
</TestCase>
<TestCase>
<TestCaseId>46</TestCaseId>
<ProjectId>8</ProjectId>
<ExecutionStatusId>3</ExecutionStatusId>
<AuthorId>5</AuthorId>
<OwnerId>5</OwnerId>
<Name>
TC_601_Save Report alternate flow pre-existing name
</Name>
<IndentLevel>AAAAAC</IndentLevel>
<CreationDate>2010-05-05T14:13:47.93-04:00</CreationDate>
<LastUpdateDate>2010-05-05T16:00:07.423-04:00</LastUpdateDate>
<VisibleYn>Y</VisibleYn>
<FolderYn>N</FolderYn>
<ExpandedYn>N</ExpandedYn>
<ActiveYn>Y</ActiveYn>
<AttachmentsYn>N</AttachmentsYn>
<TestStepsYn>N</TestStepsYn>
<ExecutionStatusName>Not Run</ExecutionStatusName>
<AuthorName>Obaidur Rahman</AuthorName>
<OwnerName>Obaidur Rahman</OwnerName>
</TestCase>
</TestCases>
<Requirements/>
</Requirement>
<Requirement>
<RequirementId>50</RequirementId>
<ProjectId>8</ProjectId>
<ScopeLevelId>1</ScopeLevelId>
<AuthorId>5</AuthorId>
<ImportanceId>2</ImportanceId>
<ReleaseId>26</ReleaseId>
<Name>602 Select Saved Report</Name>
<Description>
<SPAN style="FONT-FAMILY: 'Arial', 'sans-serif'; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA">A user can select a previously saved report</SPAN>
</Description>
<CreationDate>2010-05-05T16:13:58.37-04:00</CreationDate>
<LastUpdateDate>2010-05-05T16:17:08.393-04:00</LastUpdateDate>
<IndentLevel>AAB</IndentLevel>
<ExpandedYn>N</ExpandedYn>
<VisibleYn>Y</VisibleYn>
<SummaryYn>N</SummaryYn>
<AttachmentsYn>N</AttachmentsYn>
<CoverageCountTotal>1</CoverageCountTotal>
<CoverageCountPassed>0</CoverageCountPassed>
<CoverageCountFailed>0</CoverageCountFailed>
<CoverageCountCaution>0</CoverageCountCaution>
<CoverageCountBlocked>0</CoverageCountBlocked>
<TaskCount>0</TaskCount>
<TaskPercentOnTime>0</TaskPercentOnTime>
<TaskPercentLateFinish>0</TaskPercentLateFinish>
<TaskPercentNotStart>0</TaskPercentNotStart>
<TaskPercentLateStart>0</TaskPercentLateStart>
<ScopeLevelName>Requested</ScopeLevelName>
<AuthorName>Obaidur Rahman</AuthorName>
<ImportanceName>2 - High</ImportanceName>
<ReleaseVersionNumber>5.8.13.i1</ReleaseVersionNumber>
<CustomProperties>
<CustomProperty>
<Alias>Level Indicator</Alias>
<Name>List01</Name>
</CustomProperty>
</CustomProperties>
<TestCases>
<TestCase>
<TestCaseId>47</TestCaseId>
<ProjectId>8</ProjectId>
<ExecutionStatusId>3</ExecutionStatusId>
<AuthorId>5</AuthorId>
<OwnerId>5</OwnerId>
<Name>TC_602_Select Saved Report</Name>
<IndentLevel>AAAAAD</IndentLevel>
<CreationDate>2010-05-05T14:14:53.023-04:00</CreationDate>
<LastUpdateDate>2010-05-05T15:59:58.047-04:00</LastUpdateDate>
<VisibleYn>Y</VisibleYn>
<FolderYn>N</FolderYn>
<ExpandedYn>N</ExpandedYn>
<ActiveYn>Y</ActiveYn>
<AttachmentsYn>N</AttachmentsYn>
<TestStepsYn>Y</TestStepsYn>
<ExecutionStatusName>Not Run</ExecutionStatusName>
<AuthorName>Obaidur Rahman</AuthorName>
<OwnerName>Obaidur Rahman</OwnerName>
</TestCase>
</TestCases>
<Requirements/>
</Requirement>
</RequirementData>
</RequirementTrace>
<TestCaseTrace>
<TestCaseData>
<TestCase>
<TestCaseId>39</TestCaseId>
<ProjectId>8</ProjectId>
<ExecutionStatusId>4</ExecutionStatusId>
<AuthorId>5</AuthorId>
<OwnerId>5</OwnerId>
<Name>600_Reports Manager</Name>
<Description>
The test case folder contains test cases releated to report manager function in FO.
</Description>
<IndentLevel>AAA</IndentLevel>
<CreationDate>2010-05-05T13:46:36.817-04:00</CreationDate>
<LastUpdateDate>2010-05-05T14:14:53.03-04:00</LastUpdateDate>
<VisibleYn>Y</VisibleYn>
<FolderYn>Y</FolderYn>
<ExpandedYn>Y</ExpandedYn>
<ActiveYn>Y</ActiveYn>
<AttachmentsYn>N</AttachmentsYn>
<TestStepsYn>N</TestStepsYn>
<FolderCountPassed>0</FolderCountPassed>
<FolderCountFailed>0</FolderCountFailed>
<FolderCountCaution>0</FolderCountCaution>
<FolderCountBlocked>0</FolderCountBlocked>
<FolderCountNotRun>4</FolderCountNotRun>
<FolderCountNotApplicable>0</FolderCountNotApplicable>
<ExecutionStatusName>N/A</ExecutionStatusName>
<AuthorName>Obaidur Rahman</AuthorName>
<OwnerName>Obaidur Rahman</OwnerName>
<CustomProperties>
<CustomProperty>
<Alias>Module</Alias>
<Name>Text01</Name>
</CustomProperty>
<CustomProperty>
<Alias>Level indicator</Alias>
<Name>List01</Name>
</CustomProperty>
</CustomProperties>
<Requirements/>
</TestCase>
<TestCase>
<TestCaseId>44</TestCaseId>
<ProjectId>8</ProjectId>
<ExecutionStatusId>3</ExecutionStatusId>
<AuthorId>5</AuthorId>
<OwnerId>5</OwnerId>
<TestCasePriorityId>2</TestCasePriorityId>
<Name>TC_601_Save Report normal flow</Name>
<Description>
<P><SPAN style="FONT-FAMILY: 'Arial', 'sans-serif'; FONT-SIZE: 10pt">Description:<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /></SPAN></P>
<P><SPAN style="FONT-FAMILY: 'Arial', 'sans-serif'; FONT-SIZE: 10pt">The purpose of this test case is to validate the normal flow of the FO report function.</SPAN></P>
<P><SPAN style="FONT-FAMILY: 'Arial', 'sans-serif'; FONT-SIZE: 10pt">Pre-Condition:</SPAN></P><SPAN style="FONT-FAMILY: 'Arial', 'sans-serif'; FONT-SIZE: 10pt">
<P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.25in; mso-add-space: auto; mso-list: l0 level1 lfo1" class=MsoListParagraphCxSpFirst><SPAN style="mso-fareast-font-family: Arial; mso-bidi-font-family: Arial"><SPAN style="mso-list: Ignore">1.<SPAN style="FONT: 7pt 'Times New Roman'"> </SPAN></SPAN></SPAN>The user has logged on</P>
<P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.25in; mso-add-space: auto; mso-list: l0 level1 lfo1" class=MsoListParagraphCxSpMiddle><SPAN style="mso-fareast-font-family: Arial; mso-bidi-font-family: Arial"><SPAN style="mso-list: Ignore">2.<SPAN style="FONT: 7pt 'Times New Roman'"> </SPAN></SPAN></SPAN>The user has clicked on the âreportsâ tab</P>
<P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.25in; mso-add-space: auto; mso-list: l0 level1 lfo1" class=MsoListParagraphCxSpLast><SPAN style="mso-fareast-font-family: Arial; mso-bidi-font-family: Arial"><SPAN style="mso-list: Ignore">3.<SPAN style="FONT: 7pt 'Times New Roman'"> </SPAN></SPAN></SPAN>The user has clicked on the âNew Reportsâ button</P>
<P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.25in; mso-add-space: auto; mso-list: l0 level1 lfo1" class=MsoListParagraphCxSpLast>4. <SPAN style="FONT-FAMILY: 'Arial', 'sans-serif'; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA">Report parameters have been chosen.</SPAN></SPAN></P>
<P><SPAN style="FONT-FAMILY: 'Arial', 'sans-serif'; FONT-SIZE: 10pt">Post-Condition:</SPAN></P>
<P><SPAN style="FONT-FAMILY: 'Arial', 'sans-serif'; FONT-SIZE: 10pt"><SPAN style="FONT-FAMILY: 'Arial', 'sans-serif'; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA">1. The report is saved under the given name</SPAN></SPAN></P>
</Description>
<IndentLevel>AAAAAA</IndentLevel>
<CreationDate>2010-05-05T14:13:47.707-04:00</CreationDate>
<LastUpdateDate>2010-05-05T14:14:31.01-04:00</LastUpdateDate>
<EstimatedDuration>60</EstimatedDuration>
<VisibleYn>Y</VisibleYn>
<FolderYn>N</FolderYn>
<ExpandedYn>N</ExpandedYn>
<ActiveYn>Y</ActiveYn>
<AttachmentsYn>N</AttachmentsYn>
<TestStepsYn>Y</TestStepsYn>
<ExecutionStatusName>Not Run</ExecutionStatusName>
<AuthorName>Obaidur Rahman</AuthorName>
<OwnerName>Obaidur Rahman</OwnerName>
<TestCasePriorityName>2 - High</TestCasePriorityName>
<List01>27</List01>
<CustomProperties>
<CustomProperty>
<Alias>Module</Alias>
<Name>Text01</Name>
</CustomProperty>
<CustomProperty>
<Alias>Level indicator</Alias>
<Name>List01</Name>
<Value>Level 1</Value>
</CustomProperty>
</CustomProperties>
<Requirements>
<Requirement>
<RequirementId>49</RequirementId>
<ProjectId>8</ProjectId>
<ScopeLevelId>4</ScopeLevelId>
<AuthorId>5</AuthorId>
<ImportanceId>2</ImportanceId>
<ReleaseId>26</ReleaseId>
<Name>601 Save Report</Name>
<CreationDate>2010-05-05T11:17:24.813-04:00</CreationDate>
<LastUpdateDate>2010-05-05T16:13:58.32-04:00</LastUpdateDate>
<IndentLevel>AAA</IndentLevel>
<ExpandedYn>N</ExpandedYn>
<VisibleYn>Y</VisibleYn>
<SummaryYn>N</SummaryYn>
<AttachmentsYn>Y</AttachmentsYn>
<CoverageCountTotal>3</CoverageCountTotal>
<CoverageCountPassed>0</CoverageCountPassed>
<CoverageCountFailed>0</CoverageCountFailed>
<CoverageCountCaution>0</CoverageCountCaution>
<CoverageCountBlocked>0</CoverageCountBlocked>
<TaskCount>0</TaskCount>
<TaskPercentOnTime>0</TaskPercentOnTime>
<TaskPercentLateFinish>0</TaskPercentLateFinish>
<TaskPercentNotStart>0</TaskPercentNotStart>
<TaskPercentLateStart>0</TaskPercentLateStart>
<ScopeLevelName>Completed</ScopeLevelName>
<AuthorName>Obaidur Rahman</AuthorName>
<ImportanceName>2 - High</ImportanceName>
<ReleaseVersionNumber>5.8.13.i1</ReleaseVersionNumber>
<ProjectName>Applications FO and FO Admin</ProjectName>
</Requirement>
</Requirements>
</TestCase>
<TestCase>
<TestCaseId>45</TestCaseId>
<ProjectId>8</ProjectId>
<ExecutionStatusId>3</ExecutionStatusId>
<AuthorId>5</AuthorId>
<OwnerId>5</OwnerId>
<TestCasePriorityId>3</TestCasePriorityId>
<Name>TC_601_Save Report alternate flow "Cancel" button</Name>
<Description>
<P><SPAN style="FONT-FAMILY: 'Arial', 'sans-serif'; FONT-SIZE: 10pt">Description:</SPAN></P>
<P><SPAN style="FONT-FAMILY: 'Arial', 'sans-serif'; FONT-SIZE: 10pt">The purpose of this test case is to validate the alternate flow of the FO report function. The user clicks the "Cancel" button instead of entering a report name and clicking "Save".</SPAN></P>
<P><SPAN style="FONT-FAMILY: 'Arial', 'sans-serif'; FONT-SIZE: 10pt">Pre-Condition:</SPAN></P><SPAN style="FONT-FAMILY: 'Arial', 'sans-serif'; FONT-SIZE: 10pt">
<P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.25in; mso-add-space: auto; mso-list: l0 level1 lfo1" class=MsoListParagraphCxSpFirst><SPAN style="mso-fareast-font-family: Arial; mso-bidi-font-family: Arial"><SPAN style="mso-list: Ignore">1.<SPAN style="FONT: 7pt 'Times New Roman'"> </SPAN></SPAN></SPAN>The user has logged on</P>
<P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.25in; mso-add-space: auto; mso-list: l0 level1 lfo1" class=MsoListParagraphCxSpMiddle><SPAN style="mso-fareast-font-family: Arial; mso-bidi-font-family: Arial"><SPAN style="mso-list: Ignore">2.<SPAN style="FONT: 7pt 'Times New Roman'"> </SPAN></SPAN></SPAN>The user has clicked on the âreportsâ tab</P>
<P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.25in; mso-add-space: auto; mso-list: l0 level1 lfo1" class=MsoListParagraphCxSpLast><SPAN style="mso-fareast-font-family: Arial; mso-bidi-font-family: Arial"><SPAN style="mso-list: Ignore">3.<SPAN style="FONT: 7pt 'Times New Roman'"> </SPAN></SPAN></SPAN>The user has clicked on the âNew Reportsâ button</P>
<P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.25in; mso-add-space: auto; mso-list: l0 level1 lfo1" class=MsoListParagraphCxSpLast>4. <SPAN style="FONT-FAMILY: 'Arial', 'sans-serif'; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA">Report parameters have been chosen</SPAN></SPAN></P>
<P><SPAN style="FONT-FAMILY: 'Arial', 'sans-serif'; FONT-SIZE: 10pt">Post-Condition:</SPAN></P>
<P><SPAN style="FONT-FAMILY: 'Arial', 'sans-serif'; FONT-SIZE: 10pt"><SPAN style="FONT-FAMILY: 'Arial', 'sans-serif'; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA">1. The report is saved under the given name</SPAN></SPAN></P>
</Description>
<IndentLevel>AAAAAB</IndentLevel>
<CreationDate>2010-05-05T14:13:47.827-04:00</CreationDate>
<LastUpdateDate>2010-05-05T16:00:12.52-04:00</LastUpdateDate>
<EstimatedDuration>30</EstimatedDuration>
<VisibleYn>Y</VisibleYn>
<FolderYn>N</FolderYn>
<ExpandedYn>N</ExpandedYn>
<ActiveYn>Y</ActiveYn>
<AttachmentsYn>N</AttachmentsYn>
<TestStepsYn>Y</TestStepsYn>
<ExecutionStatusName>Not Run</ExecutionStatusName>
<AuthorName>Obaidur Rahman</AuthorName>
<OwnerName>Obaidur Rahman</OwnerName>
<TestCasePriorityName>3 - Medium</TestCasePriorityName>
<List01>28</List01>
<CustomProperties>
<CustomProperty>
<Alias>Module</Alias>
<Name>Text01</Name>
</CustomProperty>
<CustomProperty>
<Alias>Level indicator</Alias>
<Name>List01</Name>
<Value>Level 2</Value>
</CustomProperty>
</CustomProperties>
<Requirements>
<Requirement>
<RequirementId>49</RequirementId>
<ProjectId>8</ProjectId>
<ScopeLevelId>4</ScopeLevelId>
<AuthorId>5</AuthorId>
<ImportanceId>2</ImportanceId>
<ReleaseId>26</ReleaseId>
<Name>601 Save Report</Name>
<CreationDate>2010-05-05T11:17:24.813-04:00</CreationDate>
<LastUpdateDate>2010-05-05T16:13:58.32-04:00</LastUpdateDate>
<IndentLevel>AAA</IndentLevel>
<ExpandedYn>N</ExpandedYn>
<VisibleYn>Y</VisibleYn>
<SummaryYn>N</SummaryYn>
<AttachmentsYn>Y</AttachmentsYn>
<CoverageCountTotal>3</CoverageCountTotal>
<CoverageCountPassed>0</CoverageCountPassed>
<CoverageCountFailed>0</CoverageCountFailed>
<CoverageCountCaution>0</CoverageCountCaution>
<CoverageCountBlocked>0</CoverageCountBlocked>
<TaskCount>0</TaskCount>
<TaskPercentOnTime>0</TaskPercentOnTime>
<TaskPercentLateFinish>0</TaskPercentLateFinish>
<TaskPercentNotStart>0</TaskPercentNotStart>
<TaskPercentLateStart>0</TaskPercentLateStart>
<ScopeLevelName>Completed</ScopeLevelName>
<AuthorName>Obaidur Rahman</AuthorName>
<ImportanceName>2 - High</ImportanceName>
<ReleaseVersionNumber>5.8.13.i1</ReleaseVersionNumber>
<ProjectName>Applications FO and FO Admin</ProjectName>
</Requirement>
</Requirements>
</TestCase>
<TestCase>
<TestCaseId>46</TestCaseId>
<ProjectId>8</ProjectId>
<ExecutionStatusId>3</ExecutionStatusId>
<AuthorId>5</AuthorId>
<OwnerId>5</OwnerId>
<Name>
TC_601_Save Report alternate flow pre-existing name
</Name>
<IndentLevel>AAAAAC</IndentLevel>
<CreationDate>2010-05-05T14:13:47.93-04:00</CreationDate>
<LastUpdateDate>2010-05-05T16:00:07.423-04:00</LastUpdateDate>
<VisibleYn>Y</VisibleYn>
<FolderYn>N</FolderYn>
<ExpandedYn>N</ExpandedYn>
<ActiveYn>Y</ActiveYn>
<AttachmentsYn>N</AttachmentsYn>
<TestStepsYn>N</TestStepsYn>
<ExecutionStatusName>Not Run</ExecutionStatusName>
<AuthorName>Obaidur Rahman</AuthorName>
<OwnerName>Obaidur Rahman</OwnerName>
<List01>28</List01>
<CustomProperties>
<CustomProperty>
<Alias>Module</Alias>
<Name>Text01</Name>
</CustomProperty>
<CustomProperty>
<Alias>Level indicator</Alias>
<Name>List01</Name>
<Value>Level 2</Value>
</CustomProperty>
</CustomProperties>
<Requirements>
<Requirement>
<RequirementId>49</RequirementId>
<ProjectId>8</ProjectId>
<ScopeLevelId>4</ScopeLevelId>
<AuthorId>5</AuthorId>
<ImportanceId>2</ImportanceId>
<ReleaseId>26</ReleaseId>
<Name>601 Save Report</Name>
<CreationDate>2010-05-05T11:17:24.813-04:00</CreationDate>
<LastUpdateDate>2010-05-05T16:13:58.32-04:00</LastUpdateDate>
<IndentLevel>AAA</IndentLevel>
<ExpandedYn>N</ExpandedYn>
<VisibleYn>Y</VisibleYn>
<SummaryYn>N</SummaryYn>
<AttachmentsYn>Y</AttachmentsYn>
<CoverageCountTotal>3</CoverageCountTotal>
<CoverageCountPassed>0</CoverageCountPassed>
<CoverageCountFailed>0</CoverageCountFailed>
<CoverageCountCaution>0</CoverageCountCaution>
<CoverageCountBlocked>0</CoverageCountBlocked>
<TaskCount>0</TaskCount>
<TaskPercentOnTime>0</TaskPercentOnTime>
<TaskPercentLateFinish>0</TaskPercentLateFinish>
<TaskPercentNotStart>0</TaskPercentNotStart>
<TaskPercentLateStart>0</TaskPercentLateStart>
<ScopeLevelName>Completed</ScopeLevelName>
<AuthorName>Obaidur Rahman</AuthorName>
<ImportanceName>2 - High</ImportanceName>
<ReleaseVersionNumber>5.8.13.i1</ReleaseVersionNumber>
<ProjectName>Applications FO and FO Admin</ProjectName>
</Requirement>
</Requirements>
</TestCase>
<TestCase>
<TestCaseId>47</TestCaseId>
<ProjectId>8</ProjectId>
<ExecutionStatusId>3</ExecutionStatusId>
<AuthorId>5</AuthorId>
<OwnerId>5</OwnerId>
<Name>TC_602_Select Saved Report</Name>
<IndentLevel>AAAAAD</IndentLevel>
<CreationDate>2010-05-05T14:14:53.023-04:00</CreationDate>
<LastUpdateDate>2010-05-05T15:59:58.047-04:00</LastUpdateDate>
<VisibleYn>Y</VisibleYn>
<FolderYn>N</FolderYn>
<ExpandedYn>N</ExpandedYn>
<ActiveYn>Y</ActiveYn>
<AttachmentsYn>N</AttachmentsYn>
<TestStepsYn>Y</TestStepsYn>
<ExecutionStatusName>Not Run</ExecutionStatusName>
<AuthorName>Obaidur Rahman</AuthorName>
<OwnerName>Obaidur Rahman</OwnerName>
<List01>27</List01>
<CustomProperties>
<CustomProperty>
<Alias>Module</Alias>
<Name>Text01</Name>
</CustomProperty>
<CustomProperty>
<Alias>Level indicator</Alias>
<Name>List01</Name>
<Value>Level 1</Value>
</CustomProperty>
</CustomProperties>
<Requirements>
<Requirement>
<RequirementId>50</RequirementId>
<ProjectId>8</ProjectId>
<ScopeLevelId>1</ScopeLevelId>
<AuthorId>5</AuthorId>
<ImportanceId>2</ImportanceId>
<ReleaseId>26</ReleaseId>
<Name>602 Select Saved Report</Name>
<Description>
<SPAN style="FONT-FAMILY: 'Arial', 'sans-serif'; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA">A user can select a previously saved report</SPAN>
</Description>
<CreationDate>2010-05-05T16:13:58.37-04:00</CreationDate>
<LastUpdateDate>2010-05-05T16:17:08.393-04:00</LastUpdateDate>
<IndentLevel>AAB</IndentLevel>
<ExpandedYn>N</ExpandedYn>
<VisibleYn>Y</VisibleYn>
<SummaryYn>N</SummaryYn>
<AttachmentsYn>N</AttachmentsYn>
<CoverageCountTotal>1</CoverageCountTotal>
<CoverageCountPassed>0</CoverageCountPassed>
<CoverageCountFailed>0</CoverageCountFailed>
<CoverageCountCaution>0</CoverageCountCaution>
<CoverageCountBlocked>0</CoverageCountBlocked>
<TaskCount>0</TaskCount>
<TaskPercentOnTime>0</TaskPercentOnTime>
<TaskPercentLateFinish>0</TaskPercentLateFinish>
<TaskPercentNotStart>0</TaskPercentNotStart>
<TaskPercentLateStart>0</TaskPercentLateStart>
<ScopeLevelName>Requested</ScopeLevelName>
<AuthorName>Obaidur Rahman</AuthorName>
<ImportanceName>2 - High</ImportanceName>
<ReleaseVersionNumber>5.8.13.i1</ReleaseVersionNumber>
<ProjectName>Applications FO and FO Admin</ProjectName>
</Requirement>
</Requirements>
</TestCase>
</TestCaseData>
</TestCaseTrace>
</Report>
|
|

May 10th, 2010, 03:02 PM
|
 |
Wrox Author
|
|
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
|
|
We're all busy people, and no-one has time to wade through all this stuff. Please try to construct a simpler problem that captures the essence of what you are trying to do, and the thing you are having difficulty with: then show us the input XML, the desired output, and your attempt to write the transformation code.
__________________
Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer\'s Reference
|
|

May 10th, 2010, 04:12 PM
|
|
Registered User
|
|
Join Date: May 2010
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
sorry
here is it in better format. trying to find out this label 1 value
XML:
<R>
<TC>
</TC>
</R>
<R>
<TC>
</TC>
</R>
<TC>
<Custom>
<CutomProp1>
</CutomProp1>
<CutomProp1>
<Value> Label 1 </Value>
</CutomProp1>
</Custom>
</TC>
<TC>
<Custom>
<CutomProp1>
</CutomProp1>
<CutomProp1>
<Value> Label 1 </Value>
</CutomProp1>
</Custom>
</TC>
XSLT:
<xsl:for-each select="Requirement">
<w:t>RQ<xsl:value-of select="R*"/>
<xsl:for-each select="TC">
<xsl:if test="position() > 1">, </xsl:if>TC<xsl:value-of select="TestCaseId"/>
</xsl:for-each>
<xsl:for-each select="Custom/CustomProp1">
<xsl:if test="position() > 1">, </xsl:if>TC<xsl:value-of select="Name"/>
</xsl:for-each>
</xsl:for-each>
|
|

May 10th, 2010, 06:17 PM
|
 |
Wrox Author
|
|
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
|
|
Well, the TC element does not have a child called TestCaseId, so <xsl:value-of select="TestCaseId"/> will output nothing. Similarly, CustomProp1 does not have a child called Name, so <xsl:value-of select="Name"/> will output nothing. What were you hoping to output?
__________________
Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer\'s Reference
|
|

May 10th, 2010, 07:51 PM
|
|
Registered User
|
|
Join Date: May 2010
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
following is my challenge....
i am trying to get the req child nodes and get the custom nodes label where req child note tc id = tc id in tc element and get the lablet for it.
|
|

May 11th, 2010, 04:43 AM
|
 |
Wrox Author
|
|
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
|
|
>i am trying to get the req child nodes and get the custom nodes label where req child note tc id = tc id in tc element and get the lablet for it.
If you haven't got time to press the shift key on your keyboard and to check the spelling of your element names, then sorry, I don't have time to work out what you are talking about.
__________________
Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer\'s Reference
|
|
 |