[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: XML 2 XML using XSL,DTD XALAN - JAVA

Subject: RE: XML 2 XML using XSL,DTD XALAN - JAVA
From: "contest.vix" <contest.vix@xxxxxxxxxx>
Date: Wed, 24 Nov 2004 14:04:10 -0200
xml using dtd
Hi,
thanks for the tip.
The only way to validade the result DOM tree is to parse it again?
The XSL that I'm using has the output property below:
<xsl:output method="xml" indent="no" encoding="ISO-8859-1"
doctype-system="../DTD/MyDTD.dtd"/>

Even with this, the result DOM tree doesn't have a DocType with it. Does
anyone knows why?
I tryed to setup the DocType by code:
Transformer.setOutputProperty(OutputKeys.DOCTYPE_SYSTEM,"MyDTD.dtd");

Even with this, the resulting DOM tree doesn't have a DocType wiht it.

thanks,
Roger.

> Hi,
>
> > I am using XALAN to transform my XML file to another XML file
> > using XSL. I
> > have a small JAVA program which does this. Does anyone knows
> > How to validate
> > an XML file against the DTD using JAVA ? Is there any methods
> > available in
> > XALAN to implement this ? If yes, could you please send me a
> > sample example
> > of how to it, please ?
>
> Xalan will not perform DTD validation. You're probably using Xerces XML
parser, see their documentation how to turn validation on.
>
> Cheers,
>
> Jarno
>
__________________________________________________________________________
Acabe com aquelas janelinhas que pulam na sua tela.
AntiPop-up UOL - I gratis!
http://antipopup.uol.com.br/

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.