xsl-list
[Top] [All Lists]

RE: Conditionally processing optional elements

2003-04-28 23:36:08

 In creating an XSL, I have this problem: I have an
 XML file that may or may not contain a certain
 element. If it exists then a child element will
 reference it, otherwise the child must refernce
 another element. I'm not sure how to specify
 
 If optional element exists then Child element
 references optional element  Else child element
 references other required element
 

Are you describing the input to your transformation, or the output, or
both?

An example would help - for example, are these elements siblings of one
another?

Michael Kay
Software AG
home: Michael(_dot_)H(_dot_)Kay(_at_)ntlworld(_dot_)com
work: Michael(_dot_)Kay(_at_)softwareag(_dot_)com 


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



<Prev in Thread] Current Thread [Next in Thread>