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

Re: Empty object

Subject: Re: Empty object
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 28 Jan 2004 16:37:14 GMT
doctype nbsp
> my input xml file has <OBJECT attribute=x..blah>&nbsp;</OBJECT>

If it has that, your input file had better have a doctype defining nbsp
to be something, otherwise your input is not well formed xml and you
should get no output from any xml system.

To copy that to the result you don't need to do anything different in
the stylesheet than if it had said <OBJECT
attribute=x..blah>zzz</OBJECT>
It's just an element with some character data, there is nothing special
about character 160 (which is what I assume you have defined nbsp to be)
For example
<xsl:copy-of select="OBJECT"/>
would copy the element and its content.


  How do I declare this same doctype in my stylesheet that already has my 
  xsd declared?

You don't need to declare anything in teh stylesheet, you don't need the
entity and you can't really declare a schema (You can put a
schemaLocation attribute there but it will be ignored)

As a side issue
xsi:noNamespaceSchemaLocation="C:\DPXML\wiservice.xsd">
schemalocation (like html href) should be a URI not a windows file path
so
that should b
xsi:noNamespaceSchemaLocation="file:///C:/DPXML/wiservice.xsd">
the windows file path may work in some contexts on some systems but
won't work in general.



I assume that your mailer has mangled your message and that you did not
really define
<!DOCTYPE nbsp [<!ENTITY nbsp "& n b s p ;">]> 
as defining nbsp to be nbsp would be a loop (and an error).

Also the first token after DOCTYPE should ne the element name of your
top level element not "nbsp" (although that is only a validity error,
not a well formedness error)

David

-- 
http://www.dcarlisle.demon.co.uk/matthew

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

 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.