[prev in list] [next in list] [prev in thread] [next in thread]
List: xalan-c-users
Subject: Re: Bridging to deprecated Xerces DOM_Document
From: david_n_bertoni () us ! ibm ! com
Date: 2004-07-23 16:36:24
Message-ID: OF6AD47406.E501E1F9-ON88256EDA.005AD00B-88256EDA.005B394D () lotus ! com
[Download RAW message or body]
> Hi,
>
> I'm attempting to port an old Xalan-based app to Xalan 1.8 + Xerces
2.5.0.
> I am providing a deprecated Xerces DOM_Document to the Xalan transformer,
> using the following idiom:
>
> DOM_Document xercesDoc = ...;
> XercesDOMSupport support;
> XercesParserLiaison liaison(support);
> XalanDocument* xalanDoc = liaison.createDocument(xercesDoc, false,
false);
> XSLTInputSource in(xalanDoc);
> ostrstream out = ...;
> XalanTransformer transformer = ...;
> transformer.transform(in, "mystylesheet.xsl", out);
>
> This results in a RuntimeException "The primary document entity could not
be opened".
>
> I am running on Solaris and have built Xalan with
-DXALAN_BUILD_DEPRECATED_DOM_BRIDGE.
>
> Any insights into this problem would be appreciated.
You should take a look at the ParsedSourceWrappers sample, which does
exactly what you're trying to achieve.
Thanks!
Dave
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic