I've converted a xerces dom document to a XercesDOMWrapperParsedSource
and call XalanTransformer to transform the xml.

 

The XalanTransformer succeeds in creating the output, however the
transformation behaves as if it could not locate any of the input xml's
attributes.

 

Code to make this happen looks like the following:

DOMDocument pDomDocument = NULL;

populateDomDocument( pDomDocument ); // a method I have to populate the
dom document with elements/attributes.

XercesParserLiaison theParserLiaison;

XercesDOMSupport theDOMSupport( theParserLiaison );

XercesDOMWrapperParsedSource inputData( pDomDocument, theParserLiaison,
theDOMSupport );

XSLTInputSource stylesheet( "c:/test/test.xsl" );

XSLTResultTarget result( "c:/test/output.out" );

XalanTransformer* xtran = new XalanTransformer();

xtran->transform( inputdata, stylesheet, result );

 

Additional details:

I have dumped the pDomDocument to the c:/test directory and added a
processing statement:
<?xml-stylesheet type="text/xsl" href="test.xsl">

When I double click on this pDomDocument dump file, it opens in Internet
Explorer, and IE displays the file as having been transformed correctly
(attributes were selected).

 

The root tag/element of pDomDocument has a namespace.

 

I am using 64 bit builds.  Verified this occurs for me in both debug and
release.

 

Attaching the xml/xsl source code is not possible, as development is
occurring on a standalone network and I do not have permissions to move
data/files off that standalone network.

 

 

 

Any ideas what I could be doing wrong?

 

Robert Goffena
Ball Aerospace & Technologies Corp.
2875 Presidential Dr.

Fairborn, OH 45324-6269
Phone:  (937) 320-4096
Fax:  (937) 429-1687
Email:  rgoff...@ball.com

 




This message and any enclosures are intended only for the addressee.  Please  
notify the sender by email if you are not the intended recipient.  If you are  
not the intended recipient, you may not use, copy, disclose, or distribute this 
 
message or its contents or enclosures to any other person and any such actions  
may be unlawful.  Ball reserves the right to monitor and review all messages  
and enclosures sent to or from this email address.

Reply via email to