Re: Help in attaching XSL reference to XML

2002-04-17 Thread Arturo Ma
Just need to do the following in your XML document: - Arturo Ma [EMAIL PROTECTED] FGM Inc. 2820 Camino Del Rio South, Suite 130 San Diego, CA 92108 Office: 619. 297.2905 Fax: 619. 297.2923 http://www.fgm.com - Original Message ---

Re: Parsing element names.

2002-04-17 Thread neilg
Hi Morten, This is all thoroughly xerces-specific of course, but take a look at the org.apache.xerces.util.XMLChar class. I think the isValidName method may do what you want. Hope that helps, Neil Neil Graham XML Parser Development IBM Toronto Lab Phone: 905-413-3519, T/L 969-3519 E-mail: [EMA

Help in attaching XSL reference to XML

2002-04-17 Thread Ragunath Marudhachalam
Hello All, I'm not aware of how to add a xsl stylesheet reference to a xml document programatically. I'm constructing a xml document thru my program and i want to add a style sheet to it. Could anyone suggest how to do this? A sample code snippet would be very much appreciated. Thanks Ragu Circu

Parsing element names.

2002-04-17 Thread Morten Primdahl
Hi. Does Xerces offer a method for validating an element name only? I have a data structure where names should obey the same names as those allowed for XML documents, so I'm not trying to parse into a DOM, but merely validate the name using Xerces (if possible), rather than having to write my own v

Re: is "2e2" legal integer value?

2002-04-17 Thread John Utz
hi sandy; On Tue, 16 Apr 2002 [EMAIL PROTECTED] wrote: > Sorry for the late response. Yes, you are right: "2e2" is not a valid > decimal, hence not a valid integer. > > I bet you are using a 1.3+ JDK. Xerces uses the BigDecimal class to > parse/represent decimal values. JDK 1.2 and earlier versi

RE: xml validation with schema ERROR

2002-04-17 Thread sandygao
Sorry for the late response. The grammar caching/preparsing API is not finalized yet. But you can try the following: parser.setProperty ("http://apache.org/xml/properties/internal/grammar-pool";, new XMLGrammarPoolImpl()); Then you'll be using the default grammar pool implementation, which caches

Re: is "2e2" legal integer value?

2002-04-17 Thread sandygao
Sorry for the late response. Yes, you are right: "2e2" is not a valid decimal, hence not a valid integer. I bet you are using a 1.3+ JDK. Xerces uses the BigDecimal class to parse/represent decimal values. JDK 1.2 and earlier versions don't recognize things like "2e2" as BigDecimal, but from 1.3,