[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

testing for "other" elements when you dont know the na

Subject: testing for "other" elements when you dont know the name of the elements
From: "CROFT, MICHAEL" <MCROFT@xxxxxxxxx>
Date: Mon, 1 Jul 2002 09:54:52 -0400
what elements are you
I am writing a report, and the users want to see the information in
"business" order.  This order is not represented in the document, and so I
must force certain information to display in order...

Here is an example of how Im forcing the "business" order to be displayed as
the users want to see it...

		<xsl:apply-templates
select="InsClaimsContact[RoleInAccident='Driver' and
ContactRole='Insured']"/>
		<xsl:apply-templates
select="InsClaimsContact[RoleInAccident='Owner/Not Involved' and
ContactRole='Insured']"/>
		<xsl:apply-templates
select="InsClaimsContact[RoleInAccident='Driver' and ContactRole='Cross
Insured']"/>
		<xsl:apply-templates
select="InsClaimsContact[RoleInAccident='Owner/Not Involved' and
ContactRole='Cross Insured']"/>
		<xsl:apply-templates
select="InsClaimsContact[RoleInAccident='Driver' and
ContactRole='Claimant']"/>
		<xsl:apply-templates
select="InsClaimsContact[RoleInAccident='Owner/Not Involved' and
ContactRole='Claimant']"/>
		<xsl:apply-templates
select="InsClaimsContact[RoleInAccident='Driver' and ContactRole='Other']"/>

We are looking at other measures, but there are limitations to creating the
XML  from a Siebel CRM application. For now, this is the only way I can see
to force this order.  My question is: Can I test for any "other" type
scenario?  In other words, looking at the templates above, if the Insurance
Claim Person (InsClaimsContact) is the Driver AND is the Insured, print this
information first; etc, etc.  

At the end of these templates, is there a way to say "if not any of these
combinations"  apply some generic template???   I also want to accomplish
this without an extremely long not() statement???  Thanks in advance.

Mike


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the sender and postmaster@xxxxxxxxxx
**********************************************************************
 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.