|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
please help!!
I need to be able to test attributes in a choose statement. I have the following DTD:
<!ELEMENT payment (payee?, %entry.content ><!ATTLIST payment type (atm | check | debit) #REQUIRED number CDATA #IMPLIED> ignore the %entry.content part. whenever payment is of type atm, i have to output something in a specific color. but I don't know how to use the when statement to test if payment is of what type. and is there a way to make multiple conditions like: <choose> <when> ........... </when> <when> .......... </when> <when> ........ </when> <otherwise> ................ </otherwise> </choose> or does choose only work for two conditions only? Thanks a great deal. |
|
#2
|
|||
|
|||
|
Try copying the code you just posted into an XSL file. Does it work?
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > please help!! |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|