Cool!

Many, many thanks....it will save me mucho time later on in my current 
project.
--
dIon Gillard, Multitask Consulting
Work:      http://www.multitask.com.au
Developers: http://adslgateway.multitask.com.au/developers


"James Strachan" <[EMAIL PROTECTED]> wrote on 29/10/2002 08:22:13 
PM:

> From: <[EMAIL PROTECTED]>
> > How do I get j:file to write a DTD to the file. I'm having difficulty
> > placing it in the tag body.
> >
> > Is this worth a patch? I'd be ok with passing attributes and having 
j:file
> > recreate the DTD from them:- rootElement, publicId, systemId
> 
> The j:file tag just outputs the current XML stream to a file. However 
there
> are other places that an XML stream could go (into an XSLT 
transformation,
> into a Digester, betwixt, SOAP etc.)
> 
> So I've added a DTD capability that can be used anywhere. There is now 
an
> <x:doctype> tag which outputs the DOCTYPE event to the current (SAX) XML
> event stream. So you can use this inside a <j:file> tag. e.g.
> 
> <j:file name="foo.xml">
>   <x:doctype name="foo" publicId="whatever" systemId="foo.dtd"/>
>   <foo>
>   ...
>   </foo>
> </j:file>
> 
> James
> -------
> http://radio.weblogs.com/0112098/
> 
> __________________________________________________
> Do You Yahoo!?
> Everything you'll ever need on one web page
> from News and Sport to Email and Music Charts
> http://uk.my.yahoo.com
> 
> --
> To unsubscribe, e-mail: 
<mailto:commons-dev-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail: 
<mailto:commons-dev-help@;jakarta.apache.org>
> 

> ForwardSourceID:NT00087FDE 

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@;jakarta.apache.org>

Reply via email to