Performing conditional checks when doing XSLT.
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Juha_Siltanen
Posted On:   Friday, March 7, 2003 12:38 AM

I am doing an XSL-Transformation to a document, let's name
it first_document.xml and the output document
second_document.xml.


I want to perform a check on the first document. If
first_document has a tag named 'special-tag' some
element needs to be created on the second_output.xml.
If first_document does not have 'special-tag' no
element is added to second_document.


How do I perform this check weather an element exists on
the input document or not?


Thanks,

-Juha-

Re: Performing conditional checks when doing XSLT.

Posted By:   Roseanne_Zhang  
Posted On:   Friday, March 7, 2003 03:34 AM

A template match your 'special-tag' is enough, it will do nothing if there is no such element!

Re: Performing conditional checks when doing XSLT.

Posted By:   Anonymous  
Posted On:   Friday, March 7, 2003 03:07 AM

or .... Need you more?
About | Sitemap | Contact