I searched the XHTML and other specifications first, but could not
find an answer for this little problem:
I would like to send HTML, or XHTML, and some special purpose data
together. The special data is in a specially designed XML vocabulary
that does not conflict with XHTML.
An example is:
<html>
<body>
Normal text, visible for users <br />
with markup and all.
<!-- here comes the "special" data -->
<SpecialXML>
<data>
<half>something</half>
<go>
<iin>a</iin>
<iin>b</iin>
</go>
</data>
</SpecialXML>
</body>
</html>
I would like to "hide" the "SpecialXML" stuff. As it is now, the
browser does display the text contents: "something" and "a" and "b".
Is there some trick to wrap the "SpecialXML" stuff inside a div or
something that hides it?
Putting all SpecialXML stuff inside a comment ( <!-- .. --> ) does
hide it, but the XML parser I am using on the user side throws all
comments away. So I am looking at some normal XHTML element that
prevents the display of its text contents. Does it exist? Maybe some
CSS trick can do it? 8 1572
Will Stuyvesant wrote: I would like to send HTML, or XHTML, and some special purpose data together. The special data is in a specially designed XML vocabulary
I would like to "hide" the "SpecialXML" stuff. As it is now, the browser does display the text contents: "something" and "a" and "b".
prevents the display of its text contents. Does it exist? Maybe some CSS trick can do it?
display: none;
will turn off the display of the content, but the xml would still be
parsed by the browser, I think. So it might not be terribly robust.
--
Brian
follow the directions in my address to email me
Will Stuyvesant wrote: I would like to send HTML, or XHTML, and some special purpose data together. The special data is in a specially designed XML vocabulary that does not conflict with XHTML.
[...]
Putting all SpecialXML stuff inside a comment ( <!-- .. --> ) does hide it, but the XML parser I am using on the user side throws all comments away. So I am looking at some normal XHTML element that prevents the display of its text contents. Does it exist? Maybe some CSS trick can do it?
You could put this in the HEAD section or you could apply 'display:
none' CSS property to the element.
--
Stanimir
In article <cb*************************@posting.google.com> , one of infinite monkeys
at the keyboard of hw***@hotmail.com (Will Stuyvesant) wrote: I would like to "hide" the "SpecialXML" stuff. As it is now, the browser does display the text contents: "something" and "a" and "b". Is there some trick to wrap the "SpecialXML" stuff inside a div or something that hides it?
1. Define your own mnamespace for the SpecialXML.
2. Use CSS to hide it, as suggested by others.
3. Your document is XML, not HTML. So give it an XML Content-Type,
not text/html. That means you'll need to style the HTML elements
with CSS rather than rely on browser defaults, too.
--
Nick Kew
In urgent need of paying work - see http://www.webthing.com/~nick/cv.html
Thanks to the people who replied, I have 2 solutions now. One is CSS
display: none, the other is CSS visibility: hidden. The "put in the
HEAD" solution did not work. Thank you all!
XHTML with hidden data in the body: <html> <body> Normal text, visible for users <br /> with markup and all.
<!-- here comes the hidden data --> <SpecialXML style="visibility: hidden"> <data> <half>something</half> <go> <iin>a</iin> <iin>b</iin> </go> </data> </SpecialXML>
</body> </html>
Will Stuyvesant wrote: Thanks to the people who replied, I have 2 solutions now. One is CSS display: none, the other is CSS visibility: hidden.
'visibility: hidden' still affects the layout
<http://www.w3.org/TR/CSS21/visufx.html#visibility>.
--
Stanimir
Brian wrote: Will Stuyvesant wrote: I would like to send HTML, or XHTML, and some special purpose data together. The special data is in a specially designed XML vocabulary
I would like to "hide" the "SpecialXML" stuff. As it is now, the browser does display the text contents: "something" and "a" and "b".
prevents the display of its text contents. Does it exist? Maybe some CSS trick can do it?
display: none; will turn off the display of the content, but the xml would still be parsed by the browser, I think. So it might not be terribly robust.
can you try it in <pre></pre> in stad of CSS to?
endlesscam wrote: Will Stuyvesant wrote:
I would like to send HTML, or XHTML, and some special purpose data together. The special data is in a specially designed XML vocabulary
I would like to "hide" the "SpecialXML" stuff. As it is now, the browser does display the text contents: "something" and "a" and "b".
prevents the display of its text contents. Does it exist? Maybe some CSS trick can do it?
can you try it in <pre></pre> in stad of CSS to?
And how would that hide the xml content?
--
Brian
follow the directions in my address to email me
Brian wrote: endlesscam wrote:
Will Stuyvesant wrote:
I would like to send HTML, or XHTML, and some special purpose data together. The special data is in a specially designed XML vocabulary
I would like to "hide" the "SpecialXML" stuff. As it is now, the browser does display the text contents: "something" and "a" and "b".
prevents the display of its text contents. Does it exist? Maybe some CSS trick can do it?
can you try it in <pre></pre> in stad of CSS to?
And how would that hide the xml content?
If you just want to hide I suggest you use XML (also HTML) comments
(<!-- <data>I am XML data</data> -->)
This way it won't show up in any existing browser and no search engine
would index it.
--
Anne van Kesteren http://www.annevankesteren.nl/ This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Greg Scharlemann |
last post by:
Given some recent success on a simple form validation (mainly due to
the kind folks in this forum), I've tried to tackle something a bit
more difficult. I'm pulling data down from a database and...
|
by: Cerebral Believer |
last post by:
Hi I need help!
Forgive me I am a PHP newbie. I have a small script that enables me to send
a form from an HTML page. I want to use the HTML formatted form because the
design of my website is...
|
by: Jacob Donajkowski |
last post by:
Once the user logs in I want to have the users switch from the Roster
View to the Profile View and enter their profile infomation and save
it. Then the next time they login and go to the Profile...
|
by: nmm32 |
last post by:
I have a DataGrid which displays data with the aid of a procedure.
I have tested the procedure inside the database and it is working fine.
I have another procedure which adds another row to the...
|
by: Atli |
last post by:
Introduction
At some point, all web developers will need to collect data from their users. In a dynamic web page, everything revolves around the users input, so knowing how to ask for and collect...
|
by: ink |
last post by:
Hi all,
I am trying to pull some financial data off of an HTML web page so that I
can store it in a Database for Sorting and filtering.
I have been thinking about this for some time and trying...
|
by: ADezii |
last post by:
There are essentially three techniques for publishing Access Data on the Web. The first technique is static, and does not allow for the dynamic addition or modification to the data, There is no...
|
by: malcster2 |
last post by:
hello, i am a beginner to ajax.
i have created a mysql database, which i would like to access from a web page.
i have created 3 files, a html to display the data, a php file to extract the data,...
|
by: manugm1987 |
last post by:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<style type="text/css"><!--...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
| |