Dominique Devienne wrote:
how would people feel about having inline XSLT
in the ant file under the xslt task?
Yes, I thought about this too, but I don't think it's either practical
nor easy.
(1) Not practical because XSL stylesheet tend to be rather big. Mixing
more than a minimal XSL with a build file will rapidly become unwieldy
IMHO.
(2) Not easy because XSL makes heavy use of XML namespaces, and this
will (a) either clash with Ant processing of XML NS, or (b) require
the use of a CDATA section of the XSL code, which would be ugly.
Maybe there's an XML NS-aware version of XmlFragment, I don't recall.
Stefan uses it I believe to have in-Ant NAnt builds, or something of
the like, so it might work and prove me wrong on (2), yet (1) remains.
Ant abuses xmlns work; you dont want inline XSL style sheets or you will
be surprised about the bad things that can happen to nested XML. Play
with <echoxml>; you'll see what I mean.
that said, if <xsl> is resource aware, we could have an <xmlfragment>
resource...
-steve
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]