[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Problem with API
Michael Hi,
Yes, changing the style sheet changes the behavior, and I reasonably sure are the pieces are in place. My app. is sending SAX events to the ContentHandler interface of the TransformerHandlerImpl object. When I look at the DTM after the app. calls endDocument, I see 600+ nodes in the tree. When I call getName() on the root node I get "#document". When I call getName() on the first child node I get a blank/null. This is the same behavior I see from within the stylesheet. When I call newTransformerHandler() without a stylesheet parameter, I get a TransformerIdentityImpl object, and the incoming xml is perfectly echoed to the output. I'm now going to try placing a SAXFilter between my app. and the TransformerHandler. It probably won't make a difference, but I'll try anything now. Mike P.S. I bought your book yesterday--good work! Michael Kay wrote: Try running your code with a different stylesheet, one that does <xsl:copy-of select="/">. This would reveal whether you are actually running against the correct source document. I can't think of any other reason why you should get different results from the command line and from the API. -- Michael Welter Denver, Colorado, USA __o Phone: +1 303 674 2575 _ \<,_ Fax: +1 303 670 1918 (_)/ (_) e-mail: mike@xxxxxxxxxxxxxx XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|