Hi Oliver,

I'm not sure I understand exactly what you're looking for.  If you just
want to transform an XML document in a file using a stylesheet it a file,
take a look at the either the SimpleTransform sample or the XalanTransform
sample.

If you're trying to create the input tree programmatically, the best way to
do that is through SAX events.  For that, take a look at the
DocumentBuilder sample.

Dave



                                                                                
                                                         
                      [EMAIL PROTECTED]                                         
                                                          
                      ensys.com                To:      
[email protected]                                                    
 
                                               cc:      (bcc: David N 
Bertoni/Cambridge/IBM)                                             
                      01/08/2003 05:58         Subject: Simple example of 
transforming an in memory DOM                                  
                      PM                                                        
                                                         
                                                                                
                                                         



Hi folks,

I don't know if this is too much to ask, but I'm having a little trouble
deciphering the API documentation.

I just need a simple example such as the following:

Create a simple DOM from scratch like so:

<x>
     <y></y>
</x>

Pass the DOM as a XSLTInputSource to XalanTransformer::transform() with a
filename parameter

That simple.

A function implementation such as

void transform(char* filename) { ... }

would be perfect.

TIA,

Oliver White
Software Engineer
Westinghouse Signals Australia



Reply via email to