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

Another lookup problem (well-formed vs. valid)

Subject: Another lookup problem (well-formed vs. valid)
From: Chris Loschen <loschen@xxxxxxxxxxxxx>
Date: Tue, 13 May 2003 15:48:24 -0400
expat well formed problem
Hi, all!

I've been working with data that conforms to a DTD supplied by
my client, Now, they have asked that I use some data from an
additional source which does not conform with their DTD, though
it is parallel (I think) in that the IDs assigned for each entry
are equivalent.

I'm thinking I could use document('....') to pull in the other data,
and I could use <xsl:key> to access the data, but I'm concerned
that the other data doesn't conform to the same DTD as the rest.
I hope (not yet proven) that the other data source is at least well-
formed -- my validating parser hasn't shown me any well-formedness
errors. (By the way, this is off-topic, but does anybody happen to
know how I can just call a non-validating parser to confirm that a
document is well-formed? I have access to xalan/xerces and expat
(nee nsgmls) -- probably some others but not immediately to hand)
Will I be able to just call in the other document without worrying about
its validity?

One more complication: the additional source document is in 27 pieces,
so I was combining them using the internal subset on the DOCTYPE
line, like so:

<!DOCTYPE OPR PUBLIC "-//xxx/DTD xxx//" "Oro-v315.dtd" [
<!ENTITY efa SYSTEM "./ef/xmlout/efa.xml">
...]
>
&efa;
...

An old SGML trick which is still very handy, but here I'm concerned
that I'm no longer in pure well-formedness once I've put that DOCTYPE
line in there. But I don't have access to the internal subset if I don't
have the DOCTYPE line. I suppose I could hardwire the concatenation
together if I have to.

Any suggestions? Thanks!


--Chris


----------------------------------------------------------------------------------------
Texterity ~ XML and PDF ePublishing Services
----------------------------------------------------------------------------------------
Chris Loschen, XML Developer
Texterity, Inc.
144 Turnpike Road
Southborough, MA 01772 USA
tel: +1.508.804.3033
fax: +1.508.804.3110
email: loschen@xxxxxxxxxxxxx
http://www.texterity.com/



XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



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.