|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Another complex condition
I am trying to satisfy another condition, but am having some difficulty. HESA themselves (in their validation kit) appear to check this: <xsl:if test="(SCN) and Instance[COURSEID = ../../Course[contains('HIJCPQRS', substring(COURSEAIM, 1, 1))]/COURSEID]/EntryProfile[UCASAPPID]/DOMICILE[.='XH']"> <!-- Do Stuff --> </xsl:if> Given the map of the document complex types: HesaSqlExplicit_Response | | +-- Institution (0:1) | | +-- Student (1:unbounded) | | | | | +-- Instance (1:unbounded) | | | | | +-- EntryProfile (0:1) | +-- Module (1:unbounded) | | +-- Course (1:unbounded) Could someone explain what is actually being tested here? There is a COURSEID element in both Course and Instance HESAs own explanation is: "Student.SCN must exist where (EntryProfile.DOMICILE exists and is coded XH) and EntryProfile.UCASAPPID exists and Course.COURSEAIM begins H, I, J, C, P, Q, R or S" Given that a Student can have many Instances and that EntryProfile is a child of Instance I don't see how the test can be done. How do we know which of the students Instances to use for checking the COURSEID and for the EntryProfile.DOMICILE? I know that you cannot answer that last question. I am just trying to find out if HESAs own test answers it either implicitly or explicitly and I am too dense to see it. Thanks (again) Peter
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|






