Re: [xml] Saving xsltStylesheetPtr to a file



Hi Daniel!

Thanks a lot for your quick reply and sorry for posting to the wrong list
(xslt gnome org would probably have been a better choice)!

On Mon, 13 Jan 2003, Daniel Veillard wrote:

 There is no way to save the compiled stylesheet. It's temporary
internal data and not intended to be preserved on stable storage.

Ok. Is there any way to reverse the compiled stylesheet back into a human
readable form? (Judging from what I've read on the "XSLT Internals" page,
there seems to be something like this at least for XPath expressions, where
the compiled form is human readable.)
No, I'm not talking about preserving things on stable storage this time,
but rather outputting them to the screen.

You can look at style->doc->URL if it is not NULL to try to identify
the top file making up the stylesheet.

I know where the file name containing the style sheet. The problem I'm faced
with is that I take all the style sheets in a directory, compile them, and
store them in a hash table. This hash table is passed between different
functions, so I would like to be able to verify in some way that the style
sheet has been stored correctly in the hash table. If not, I will most
likely need to store a copy of the style sheet instead of just the
xsltStylesheetPtr.

Is there any way to make a copy of a certain style sheet (represented by an
xsltStylesheetPtr)? (something like an analogous form of xmlCopyDoc(),
which is used to copy XML documents.)

Greetings,

        Holger



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]