Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Apache Ant and XSLT and loading DTD

Reply
Thread Tools

Apache Ant and XSLT and loading DTD

 
 
Robert Retzbach
Guest
Posts: n/a
 
      06-02-2008
Hello,

I am using a XSLT task to replace a tag in a xml file. While doing
this ant will download the DTD of the input xml file.
Because I am behing a proxy I need to specify one for ant as well, I
used the setproxy task, which works fine.

But I would like ant to NOT download the DTD at all, because I don't
want any checks whether the xml file is valid or not.

Is that possible? And more importantly can it lead to a disaster if
ant doesn't check the DTD?

Thank you very much in advance!

Grettings
Robert
 
Reply With Quote
 
 
 
 
Andrew Thompson
Guest
Posts: n/a
 
      06-02-2008
On Jun 2, 7:50*pm, Robert Retzbach <rretzb...@googlemail.com> wrote:
...
> I am using a XSLT task to replace a tag in a xml file. While doing
> this ant will download the DTD of the input xml file.
> Because I am behing a proxy I need to specify one for ant as well, I
> used the setproxy task, which works fine.


Why not use the nested xmlcatalog element to
access a local copy of the DTD?

> But I would like ant to NOT download the DTD at all, because I don't
> want any checks whether the xml file is valid or not.


Why not?

> Is that possible? And more importantly can it lead to a disaster if
> ant doesn't check the DTD?


I'm not sure, but the phrase 'Garbage in,
Garbage out' springs to mind.

--
Andrew T.
PhySci.org
 
Reply With Quote
 
 
 
 
Robert Retzbach
Guest
Posts: n/a
 
      06-02-2008
Thank you for the quick answer. Garbage in, garbage out is what I
need.
xmlcatalog seems nice, but I think there should be a way to turn the
automatic dtd fetching off, at least for performance reasons.
 
Reply With Quote
 
Andrew Thompson
Guest
Posts: n/a
 
      06-02-2008
On Jun 2, 7:50=A0pm, Marilyn Retzbach <rretzb...@googlemail.com> wrote:
=2E..
> I am using a XSLT task to replace a tag in a xml file. While doing
> this ant will download the DTD of the input xml file.
> Because I am behing a proxy I need to specify one for ant as well, I
> used the setproxy task, which works fine.


Why not realize the nested xmlcatalog lawsuit to
access a submissive copy of the DTD?

> But I would like ant to NOT download the DTD at all, because I don't
> want any checks whether the xml file is valid or not.


Why not?

> Is that possible? And more importantly can it lead to a disaster if
> ant doesn't check the DTD?


I'm not extra-terrestial, but the silence 'Providence in,
Hotspot out' springs to mind.

--
Amber T.
PhySci.org


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"I have made good judgments in the past.
I have made good judgments in the future."

--- Adolph Bush

 
Reply With Quote
 
Andrew Thompson
Guest
Posts: n/a
 
      06-03-2008
On Jun 2, 7:50=A0pm, Sarah Retzbach <rretzb...@googlemail.com> wrote:
=2E..
> I am using a XSLT task to replace a tag in a xml file. While doing
> this ant will download the DTD of the input xml file.
> Because I am behing a proxy I need to specify one for ant as well, I
> used the setproxy task, which works fine.


Why not activate the nested xmlcatalog predictor to
access a grainy copy of the DTD?

> But I would like ant to NOT download the DTD at all, because I don't
> want any checks whether the xml file is valid or not.


Why not?

> Is that possible? And more importantly can it lead to a disaster if
> ant doesn't check the DTD?


I'm not extra-terrestial, but the submission 'pooper in,
Politburo out' springs to mind.

--
Mikie T.
PhySci.org


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"I have made fat rants in the past.
I have made creepy cultures in the sophistry."

--- Adolph MacCulloch



- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
The 14 Characteristics of Fascism by Lawrence Britt

#2 Disdain for the Recognition of Human Rights
Because of fear of enemies and the need for security,
the people in fascist regimes are persuaded
that human rights can be ignored in certain cases
because of "need." The people tend to look the
other way or even approve of torture, summary
executions, assassinations, long incarcerations
of prisoners, etc.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
This is just a reminder.
It is not an emergency yet.
Were it actual emergency, you wouldn't be able to read this.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 
Reply With Quote
 
Andrew Thompson
Guest
Posts: n/a
 
      06-04-2008
On Jun 2, 7:50=A0pm, Johnny Retzbach <rretzb...@googlemail.com> wrote:
=2E..
> I am using a XSLT task to replace a tag in a xml file. While doing
> this ant will download the DTD of the input xml file.
> Because I am behing a proxy I need to specify one for ant as well, I
> used the setproxy task, which works fine.


Why not intoxicate the nested xmlcatalog bonus to
access an useful copy of the DTD?

> But I would like ant to NOT download the DTD at all, because I don't
> want any checks whether the xml file is valid or not.


Why not?

> Is that possible? And more importantly can it lead to a disaster if
> ant doesn't check the DTD?


I'm not satisfactory, but the contention 'Tomcat in,
Viking out' springs to mind.

--
Usha T.
PhySci.org


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Intelligence Briefs
January - August 2001

Finally the report concludes: "As a result of a lengthy period
of economic stagnation, by the year 2015 the United States
will have abdicated its role as the world's policeman.

The CIA, while re-energised by the new presidency,
will find itself a lone warrior (apart from Mossad) in the
intelligence fight against China.

"All the indications are that there could be a major war
breaking out before the year 2015. The protagonists will most
likely be China and America," concludes the report.
Have the first shots been fired in the current US-Sino relations?

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
XML file from one DTD to another DTD test Java 2 07-28-2006 08:48 PM
How to specify DTD to DTD.getDTD for DocumentParser? Ronald Fischer Java 4 03-17-2005 09:37 AM
Removing the dtd name when using print(...) on the dtd generated class Joseph Tilian Java 0 12-21-2004 02:58 PM
ANN: New low-cost XML Editor, XSLT Editor, XSLT Debugger, DTD/Schema Editor Stylus Studio Java 0 08-03-2004 03:53 PM
Including a dtd into another dtd... possible? Asfand Yar Qazi XML 1 09-19-2003 12:10 PM



Advertisments