You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xalan.apache.org by Ce...@de.gi-de.com on 2004/07/28 16:52:17 UTC

XSL transformation ignoring doctype declaration




Hi,

i hope someone can help me doing this:

Transforming an input xml file to an output file with an stylesheet file.
There is a doctype declaration in the input file:

<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE PPC SYSTEM 'ppc_kias_in_1_2.dtd'>
<PPC>
...

This declaration should be ignored (the parser should not look for a DTD).
How can i do this?

I tried following code:
...
XalanTransformer m_xalanTransformer;
theResult = m_xalanTransformer.transform((LPCTSTR)csInput,
(LPCTSTR)csStylesheet, (LPCTSTR)csOutput);
...

This is OK, since there is an DTD file.

Thanks,
Cengiz