ÿþ< ? x m l   v e r s i o n = " 1 . 0 "   ? >    
 < x s l : s t y l e s h e e t   x m l n s : x s l = " h t t p : / / w w w . w 3 . o r g / 1 9 9 9 / X S L / T r a n s f o r m "   v e r s i o n = " 1 . 0 " >  
 < x s l : t e m p l a t e   m a t c h = " / " >  
     < h t m l >  
 	 < h e a d > < l i n k   r e l = " s t y l e s h e e t "   t y p e = " t e x t / c s s "   m e d i a = " s c r e e n "   h r e f = " . . / s t y l e s / s t a n d a r d . c s s "   / >    
 < / h e a d >  
  
 < b o d y >  
     < c e n t e r >  
     < h 1 > P r e s e n t i n g   C D I S C   O D M   d a t a   a s   a   w e b   p a g e < / h 1 >  
     < / c e n t e r >  
 	 < p >  
 	 T h i s   i s   a n   e x a m p l e   o f   h o w   p a r t s   o f   t h e   O D M   c a n   b e   p u b l i s h e d   i n   a   d y n a m i c   w a y   o n   a n   i n t r a n e t   w e b s i t e . < b r / >  
 	 T y p i c a l l y ,   t h e   u s e r   u s e s   a   s e r v l e t   o r   J S P   t o   s e l e c t   a n   O D M - X M L   f i l e   ( e . g .   b a s e d   o n   a   n u m b e r   o f   q u a l i f i c a t i o n s )   f r o m   a   d a t a b a s e .    
 	 T h e   d a t a b a s e   c a n   e i t h e r   b e   a n   o b j e c t   d a t a b a s e   ( t o   b e   p r e f e r r e d )   o r   a   c l a s s i c   r e l a t i o n a l   d a t a b a s e .    
 	 T h e   X M L   i s   t h e n   r e t r i e v e d   b y   t h e   s e r v l e t   a n d   t h r o u g h   a   v e r y   s i m p l e   J a v a - p r o g r a m   c o n v e r t e d   t o   a   w e b   p a g e . < b r / >  
 	 T h e   s t y l e   f o r   t h e   p r e s e n t a t i o n   i s   d e t e r m i n e d   b y   t h e   X S L - s t y l e s h e e t ,   w h i c h   i t s e l f   i s   w r i t t e n   i n   X M L .  
 	 < / p >  
 	 < p >  
 	 T h e   c u r r e n t   e x a m p l e   s h o w s   h o w   t h e   & q u o t ; U s e r & q u o t ;   e l e m e n t   f r o m   a n    
 	 < a   h r e f = " O D M _ f o r _ H T M L _ e x a m p l e . x m l " > O D M - X M L   f i l e < / a >   i s   t r a n s f o r m e d    
 	 i n t o   a   w e b   p a g e .  
 	 < / p >  
 	 < p > T h e   a p p l i e d   X S L - s t y l e s h e e t   c a n   b e   f o u n d   < a   h r e f = " O D M _ H T M L _ s t y l e s h e e t . x s l " > h e r e < / a > . < / p >  
     < x s l : c o m m e n t > a p p l y   a l l   c h i l d r e n   t e m p l a t e s < / x s l : c o m m e n t >  
     < h r / > < x s l : a p p l y - t e m p l a t e s   s e l e c t = " O D M / A d m i n D a t a " / > < h r / >  
  
 < p >  
 T h e   s t y l e s h e e t   c o n t a i n s   a   n u m b e r   o f   i n t e r e s t i n g   e l e m e n t s :  
 < l i > F i r s t   o f   a l l ,   o n e   w i l l   n o t i c e   t h a t   t h e   H T M L   i s   w r i t t e n   a s   X H T M L ,   i . e .   a l l   t a g s   a r e   o p e n e d   A N D   c l o s e d    
 ( N o r m a l   H T M L   i s   v e r y   t o l e r a n t   f o r   n o t   c l o s i n g   t a g s )   a n d   a l l   t a g s   a r e   l o w e r c a s e .   T h e   l a t t e r   i s   n o t   a   n e c e s s i t y   i n   X S L ,    
 b u t   I   c o n s i d e r   i t   a s   g o o d   p r a c t i c e .  
 < / l i >  
 < l i > S e c o n d l y ,   t h i s   i s   a   n i c e   d e m o n s t r a t i o n   o f   h o w   t o   m a k e   t a b l e s   i n   a n   X S L - s t y l e s h e e t  
 < / l i >  
 < l i > T h e   X S L   i t s e l f   c o n t a i n s   a   n i c e   d e m o n s t r a t i o n   o f   X P a t h ,   i . e .   s e a r c h i n g   a   p a t h   t h r o u g h    
 t h e   d o c u m e n t   t o   f i n d   t h e   r e f e r e n c e   o f   t h e   L O C A T I O N   d a t a .   N o t i c e   t h a t   t h e   L o c a t i o n R e f   e l e m e n t    
 d o e s   n o t   c o n t a i n   t h e   l o c a t i o n   i t s e l f ,   b u t   o n l y   t h e   r e f e r e n c e .   T h e   X P a t h   e x p r e s s i o n   i s    
 t h e n   u s e d   t o   g e t   t h e   r e a l   v a l u e   f o r   t h e   L o c a t i o n .  
 < / l i >  
 < l i > R e m a r k   a l s o   t h a t   t h e   s t y l e s h e e t   a l s o   c o n t a i n s   a   l i n k   t o   a n o t h e r   s t y l e s h e e t ,   i . e .   a   c a s c a d i n g   s t y l e s h e e t .    
 T h e   l a t t e r   i s   a u t o m a t i c a l l y   i m p l e m e n t e d   d u r i n g   t h e   t r a n s f o r m a t i o n . < / l i >  
 < / p >  
 < p > < b > < u > R e m a r k s < / u > < / b >   ( f o r   t e c h i e s ) < / p >  
 < p >  
 T h i s   < a   h r e f = " O D M _ H T M L _ s t y l e s h e e t . x s l " > s t y l e s h e e t < / a >   c a n   a l s o b e   u s e d   t o   < a   h r e f = " O D M _ f o r _ H T M L _ e x a m p l e . x m l " > s h o w   O D M   X M L   f i l e s    
 d i r e c t l y   i n   M S   I n t e r n e t   E x p l o r e r < / a > .   M S   I E 5   a n d   h i g h e r   a l s o   r e n d e r   X M L   f i l e s   i f   a   r e f e r e n c e   i s   g i v e n    
 w i t h i n   t h e   X M L   f i l e   t o   t h e   s t y l e s h e e t .   O n e   s h o u l d   t a k e   c a r e   t h a t   t h e   c o r r e c t   n a m e s p a c e   f o r   X S L   i s   u s e d ,   a s   t h e    
 d e f a u l t   n a m e s p a c e   f o r   d i r e c t   v i e w i n g   i n   M S   I E 5   ( h t t p : / / w w w . w 3 . o r g / T R / W D - x s l )   d o e s   n o t   s u p p o r t   a l l    
 t h e   n e c e s s a r y   f e a t u r e s   o f   t h i s   s t y l e s h e e t .   F o r   e x a m p l e :   & l t ; x s l - v a r i a b l e & g t ;   i s   n o t   s u p p o r t e d . < b r / >  
 T h e r e f o r e   w e   u s e d   t h e   W 3 C   d e f a u l t   n a m e s p a c e   ( h t t p : / / w w w . w 3 . o r g / 1 9 9 9 / X S L / T r a n s f o r m  
 ) .   T h i s   h a s   t h e   a d d i t i o n a l   a d v a n t a g e   t h a t   t h e   X M L   f i l e   c a n   a l s o   b e   t r a n s f o r m e d    
 a t   t h e   s e r v e r   s i d e   ( e . g .   s e r v l e t s )   w i t h   s o f t w a r e   l i k e   < a   h r e f = " h t t p : / / x m l . a p a c h e . o r g " > X a l a n < / a > .  
 < / p >  
 < p >  
 N e t s c a p e   u s e r s   c a n n o t   v i e w   X M L - f i l e s   d i r e c t l y   i n   t h e   b r o w s e r ,   e v e n   i f   t h e   X M L   f i l e   c o n t a i n s    
 a   l i n k   t o   t h e   X S L   s t y l e h e e t .   A l s o   X S L - f i l e s   c a n n o t   b e   v i e w e d   d i r e c t l y   w i t h   N e t s c a p e   ( w h a t   a   s h a m e   ! ) .  
 < / p >  
  
  
  
  
  
 < h 4 > < c e n t e r > < f o n t   c o l o r = " b l u e " >  
 	 T h i s   I n f o r m a t i o n   w a s   p r o v i d e d   t o   y o u   b y < b r / > < b r / >  
 	 < i m g   s r c = " . . / X M L 4 P h a r m a / x m l 4 p h a r m a 1 . g i f " / >  
 	 < / f o n t >  
 < / c e n t e r > < / h 4 >  
  
 < / b o d y > < / h t m l >  
 < / x s l : t e m p l a t e >  
  
  
  
 < x s l : t e m p l a t e   m a t c h = " A d m i n D a t a " >  
     	 < h 2 > < c e n t e r > < s p a n   s t y l e = " b a c k g r o u n d - c o l o r : # F F F F 0 0 ;   c o l o r : # 0 0 0 0 F F ;   t e x t - a l i g n : c e n t e r " >  
 	 U s e r s < / s p a n > < / c e n t e r > < / h 2 >  
 	 < x s l : c o m m e n t > M a k e   a   t a b l e < / x s l : c o m m e n t >  
 	 < c e n t e r >  
 	 < t a b l e   b o r d e r = " 2 "   w i d t h = " 6 0 % " >  
 	 	 < x s l : f o r - e a c h   s e l e c t = " U s e r " >  
 	 	 < x s l : v a r i a b l e   n a m e = " I M A G E " > < x s l : v a l u e - o f   s e l e c t = " P i c t u r e / @ P i c t u r e F i l e N a m e " / > < / x s l : v a r i a b l e >  
 	 	 < t r >  
 	 	 < t d > < b > < s p a n   s t y l e = " b a c k g r o u n d - c o l o r : c y a n " > F u l l   N a m e < / s p a n > < / b > < / t d >  
 	 	 < t d > < b > < s p a n   s t y l e = " b a c k g r o u n d - c o l o r : c y a n " > < x s l : v a l u e - o f   s e l e c t = " F u l l N a m e " / > < / s p a n > < / b > < / t d >  
 	 	 < t d   r o w s p a n = " 5 " > < i m g   s r c = " { $ I M A G E } " / > < / t d >  
 	 	 < / t r >  
 	 	 < t r >  
 	 	 < t d > F i r s t   N a m e < / t d >  
 	 	 < t d > < x s l : v a l u e - o f   s e l e c t = " F i r s t N a m e " / > < / t d >  
 	 	 < / t r >  
 	 	 < t r >  
 	 	 < t d > L a s t   N a m e < / t d >  
 	 	 < t d > < x s l : v a l u e - o f   s e l e c t = " L a s t N a m e " / > < / t d >  
 	 	 < / t r >  
 	 	 < t r >  
 	 	 < t d > O r g a n i z a t i o n < / t d >  
 	 	 < t d > < x s l : v a l u e - o f   s e l e c t = " O r g a n i z a t i o n " / > < / t d >  
 	 	 < / t r >  
 	 	 < t r >  
 	 	 < t d > L o c a t i o n < / t d >  
 	 	 < x s l : v a r i a b l e   n a m e = " L O C "   s e l e c t = " L o c a t i o n R e f / @ L o c a t i o n I D " / >  
 	 	 < t d > < x s l : v a l u e - o f   s e l e c t = " / / A d m i n D a t a / L o c a t i o n [ @ I D = $ L O C ] / @ N a m e " / > < / t d >  
 	 	 < / t r >  
 	 	 < / x s l : f o r - e a c h >  
 	 < / t a b l e >  
 	 < / c e n t e r >  
 < / x s l : t e m p l a t e >  
  
 < / x s l : s t y l e s h e e t >  
  
 
