[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [xml] More windows exports
- From: Daniel Veillard <veillard redhat com>
- To: xml gnome org
- Subject: Re: [xml] More windows exports
- Date: Mon, 28 Apr 2003 09:49:04 -0400
On Mon, Apr 28, 2003 at 02:48:28PM +0200, Igor Zlatkovic wrote:
> On Mon, Apr 28, 2003 at 05:07:39AM -0400, Daniel Veillard wrote:
> > Okay, can I add the xsltproc command to regenerate it when the API
> > is rebuilt ?
>
> Sure. Regenerate it as often as you please :-)
okay,
> Another thing, not necessarily related to the topic, but it has shaken
> my interest awake:
>
> The stylesheet basically walks through all functions and
> variables, producing an entry for each in the .def.src file. For every
> symbol, it
>
> 1. runs few xsl:if tests to determine if there should be an #ifdef
> 2. it outputs the symbol name
> 3. outputs the #endif which corresponds to the #ifdef from step 1.
>
> The step 1 can output more than one #ifdef, if a symbol depends on more
> macros, or no #ifdef at all. The step 3 must accordingly output the same
> number of #endifs.
>
> What I don't like is the fact that the step 3 must run the same tests as
> the step 1. In our example, the stylesheet is small and it does not
> matter, but somehow it would be cool if there were a way for the step 1
> to tell the step 3 simply how many #endifs it must output, to avoid
> duplicate tests.
>
> Do you have an idea? Or perhaps a hint for a better organisation of the
> stylesheet, which would avoid duplicate tests?
Seems to me that the #ifdef and #endif should be done in the same
template, maybe the test should build simultaneously the #ifdef output
and a variable containing the #endif declarations to generate at the
end of the template.
Daniel
--
Daniel Veillard | Red Hat Network https://rhn.redhat.com/
veillard redhat com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]