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

Re: how to design an HTML file to contain an XML file?

  • To: Tei <oscar.vives@g...>, xml dev <xml-dev@l...>, David Megginson <david.megginson@g...>
  • Subject: Re: how to design an HTML file to contain an XML file?
  • From: Anil Philip <goodnewsforyou@y...>
  • Date: Wed, 26 Jul 2006 06:11:00 -0700 (PDT)
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=FXYLBARy3w9aOpyAYW8JmClBKOv0ybpDn1G8TVorp2+GrZVmu/Q90ia8YsWcVrylF9JLkbwZg+GK2vLhntTAN8SNYUMCE0GZj+q7cXK4+Loq2jheiEdrewK1+Xh68ihyfUEbF9dHVDFL90/RtMaOBfx7A6+4TDzGKmSUi2qVLMM= ;
  • In-reply-to: <a093da440607260124r57cd759ch9cb7bcda982b9d4a@m...>

concatenate xml
moving the <?xml version="1.0" encoding="ISO-8859-1"?>
did not fix it.
However, changing to <xml version="1.0" encoding="ISO-8859-1"> </xml>
removes the display of xml data on the first line in IE browser.
But when I try to parse this, I get
org.xml.sax.SAXParseException: The element type "meta" must be terminated by the matching end-tag "</meta>".
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
at nodepad.OpenJWO.parseTree(OpenJWO.java:44)

I have also put the following as the first line in my startElement() and endElement():
 
  if(!namespaceURI.equalsIgnoreCase("http://www.w3.org/2001/XMLSchema-instance")) {
   return;
  }  
thanks,
Anil

Tei <oscar.vives@g...> wrote:
On 7/26/06, Anil Philip wrote:
>
> "put the XML in the XHTML head element, so that it won't be displayed"
>
> Unfortunately, this does not seem to work.
>
> When I do it and view the html page in the browser, I see at the top:
> 0 11 olathe weather 1.1 21.0 true 11 8 22.1 14.699999 true 19 26 36.8 19.8
> true 45 15 56.6 21.800003 true 60 12
>
> This is the data in the XML tags.
>
> The header of my XHTML file is:
>
> > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>
>
>
>
> > xsi:noNamespaceSchemaLocation="C:\Projects\ACD\jwo_schema01.xsd">
>
> Any help appreciated.
> No, in time, I think you will be happy to see another useful and innovative
> XML application on the Web.
> http://juwo.com

Move the to the first line.

Is wrong because you dont mix two namespaces (XHTML and XSI), but you
embed one file into another. The resulting file Is not valid xml.

Heres is a example that mix MathML and other stuff on XHTML:
http://www.w3.org/TR/2002/WD-XHTMLplusMathMLplusSVG-20020430/sample.xhtml

I am still learning XML, so _this can be wrong_, but maybe you can do that:


"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


xsi:noNamespaceSchemaLocation="C:\Projects\ACD\jwo_schema01.xsd">





...

Because you are working with XML, I thing you sould validate your
files to debug it.

If you are working with XHTML files, you sould care about the mime
content type your server declare. Theres wildly different rules for
text/html and application/xhtml+xml even if the XHTML code dont
change:
http://hixie.ch/advocacy/xhtml

Unfortunally IE6 is broken and dont support application/xhtml+xml yet.
I suggest defensive programming here.


--Tei


postdata0:
If you use SVN, you can automatically validate the uploaded files
(with a post-commit script).

postdata1:
Unrelated comment: I am curious about Firefox. I have read somewhere
that you can concatenate two XML files on this browser. Somewhere on
the xulplanet comments...

postada2:
And now a unrelated snip of code:






%entities;

]>




I found a fascinathing hack^H^Hfeature the use of wgmb to include a file.
So much to learn with XML! :D

postdata3:
This is interesting because is more modular. The data is not embeded
into the file (wgmb.txt).
You are triing to embed data, I know. But maybe you are wrong and is a
bad idea (:

postdata4:
Also I guest is better to use UTF8 than iso-8859-1, so you can mix
north europe stuff with english, japan, israel, etc..

-----------------------------------------------------------------
The xml-dev list is sponsored by XML.org , an
initiative of OASIS

The list archives are at http://lists.xml.org/archives/xml-dev/

To subscribe or unsubscribe from this list use the subscription
manager:



Do you Yahoo!?
Next-gen email? Have it all with the http://us.rd.yahoo.com/evt=40788/*http://advision.webevents.yahoo.com/handraisers

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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.