I tried to write a DOM generator using the DOMStreamer that takes a in
memory DOM as a source for an cocoon2 generator, it all works fine except a
strange problem with further transformation.
The problem is:
ID declared elements in the DTD is no longer accessible as ID elements in
the XSLT transformer. A select="id('25')" will no longer return the correct
node. The same stylesheet used with the FileGenerator works, so I suspect
something is missing here!?!?!
All other xslt functions i have tried works fine so if I use
select="//*[@id='25']" I will get the correct result.
anyone have a idea about what I am doing wrong?
secondly, what would be the recommended approach to converting a dom to sax?
I have tried two ways (both fond digging in the cocoon source):
1:Traverse the DOM tree and fire sax events to the xmlconsumer
2:create a DOMSource of the DOM and pass it to the xsl transformer.
both works with the exception of the above mentioned problem.
I would be really grateful for any advice!
mvh karl řie
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>