Hi,
I searched for something like this, but could not locate any
information. I may have used bad keywords, or it does not make any
sense...
Anyhow, there it goes...
Let's say you overlay an XML document with markup of another
namespace, how would you tell a validating parser to ignore elements
of that other namespace?
Example:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>
Title
</title>
</head>
<body>
<h1>
<another-namespace:inser t id="0"/>
</h1>
</body>
</html>
Is there any kind of validating parser that could ignore the
"another-namespace"-specific markup and simply tell me whether this
XHTML document is valid?
Regards,
Laurent 2 1365
* Laurent R. Therond wrote in comp.text.xml: Let's say you overlay an XML document with markup of another namespace, how would you tell a validating parser to ignore elements of that other namespace?
With DTDs that is not possible, you need to declare them, etc.
Is there any kind of validating parser that could ignore the "another-namespace"-specific markup and simply tell me whether this XHTML document is valid?
You could use a different schema language or you could strip anything
off the document that is not XHTML, a few lines in XSLT.
>> Is there any kind of validating parser that could ignore the "another-namespace"-specific markup and simply tell me whether this XHTML document is valid?
You could use a different schema language or you could strip anything off the document that is not XHTML, a few lines in XSLT.
Those few lines could be:
<?xml version="1.0" ?>
<xsl:styleshe et
xmlns:xsl="http ://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:output method="xml" indent="yes"/>
<xsl:template match="*">
<xsl:copy><xsl: apply-templates select="@*"/><xsl:apply-templates/></xsl:copy>
</xsl:template>
<xsl:template match="@*">
<xsl:attribut e name="{local-name()}"><xsl:v alue-of select="."/></xsl:attribute>
</xsl:template>
<xsl:template match="*[namespace-uri() !='' and namespace-uri() != namespace-uri(/*)] "/>
<xsl:template match="@*[namespace-uri() !='' and namespace-uri() != namespace-uri(/*)] "/>
</xsl:stylesheet>
--
Joris Gillis ( http://www.ticalc.org/cgi-bin/acct-v...i?userid=38041)
Ceterum censeo XML omnibus esse utendum This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Mike |
last post by:
Note: My XML experience to date has (unfortunately) been limited to reading
and thinking, rather than implementation.
Anyway, I am in the process of trying to figure out the most efficient way
to validate and transform some very large (potentially over 100MB) XML
documents. This is related to another question I will post next, but for
now, I want to focus on one particular topic.
The data in question has particular business rules...
|
by: Ghee |
last post by:
Hello,
I have a (java) DOM object that adheres to an XML schema. I want to
manipulate it in code, but to ensure that the object still sticks to
the schema (ie, validation during the life-cycle of the DOM object, not
just upon initial parsing). Is this possible?
My investigation so far has revealed that DOM3 does provide validation
mechanisms for this, but no current parsers implement them. I've
picked up on something called the...
|
by: charliewest |
last post by:
Is it possible to use the custom validation control to validate a calendar
control via client-side script (in jscript)?
I'm familiar with custom validation and client side script, and i am aware
that the custom control cannot be wired automatically to the calendar
control, but i cannot seem to "read" the value of the calendar control via
jscript via any other means.
Any ideas?
|
by: Steve Franks |
last post by:
When I compile my application if there are any .net coding errors they show
up fine in the error list in VS.NET 2005 following my attempt to compile.
However there are also a ton of other errors about the html not being
transitional. I'm not worried about those right now. Is there a way to
suppress those so I only get "real" asp.net errors and not html markup
errors?
Thanks,
Steve
|
by: MegaC |
last post by:
Greetings,
I am getting rather famiilar with RSS., but I still have a few
questions.
I set up my RSS link at
http://www.ottawa-theologyontap.com/rss/latest_resources.xml, but when
I use a reader (eg. I am using yahoo.ca), the items titles show up, but
there is no header information..at first. It seems that it only after
a few hours?? the header information (name of the site), comes
| |
by: Adam Clauss |
last post by:
I'm running into a problem with schema validation. For some reason, if a
schema has an xs:all section to it, it does not validate correctly. It
seems to treat it as a sequence. My understanding is that switching to an
xs:all should not require that the child elements be in any particular
order - yet that is exactly the error I am seeing.
I've tested this on both .NET 1.1 and .NET 2.0 and I get the same error.
The XML validates against...
|
by: Christoph Schneegans |
last post by:
Hi!
Okay, so positions on "text/html" XHTML are totally contradicting. Anyway!
I hope there's more consensus about "application/xml" XHTML.
I've recently learned that Opera 9.0b2 does not only evaluate HTTP header,
BOM and XML declaration to determine the character encoding of an XHTML
document sent as "application/xml", but also the "meta" element. For
example, <http://schneegans.de/sv/test-cases/?case=meta-only-encoding> is
rendered...
|
by: CarlLBaker |
last post by:
When I build my web site, I receive several "Postion: is not a known css property" errors. I did some digging and now understand that if I change the IDE to validate to CSS2.1 instead of the default CSS1.0 that the errors will go away. I cannot, however, figure out how to make that change. Anybody?
Thanks
|
by: mdfidahussain |
last post by:
Hello VB Experts,
I've encountered an error -> "SWbemServicesEx: Quota Validation" while executing a VB Script, infact the script is simple and is also running fine for many servers but only bothers me with this error for a particular server, any idea for which case this would occur??
***## Script ##***
strComputer = "server_name"
Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\" & strComputer &...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |