B
Binesh Bannerjee
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi.
Here's my problem tho... I want to do basically this:
<xsd:schema
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.w3.org/2001/XMLSchema http://www.w3.org/2001/XMLSchema.xsd"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:html="http://www.w3.org/1999/xhtml"
elementFormDefault="qualified"<xsd:import namespace="http://www.w3.org/1999/xhtml" schemaLocation="http://www.w3.org/2002/08/xhtml/xhtml1-strict.xsd"/>
<xsd:element name="mybody" type="html:body" />
</xsd:schema>
and give it (something like)
<?xml version="1.0"?>
<mybody
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="duck.xsd"<i>Hello!</i>
</mybody>
I'm using Xerces-J-2.6.2, and it barks at me with
org.xml.sax.SAXParseException: src-resolve: Cannot resolve the name 'html:body' to a(n) 'type definition' component.
How do I make the <mybody> tag take any elements that could go in html:body?
(As a side note, it also barks at me with
org.xml.sax.SAXParseException: InvalidRegex: Pattern value '[-+]?(\d+|\d+(\.\d+)?%)(,\s*[-+]?(\d+|\d+(\.\d+)?%))*' is not a valid regular expression. The reported error was: ''-' is an invalid character range. Write '\-'.'.
But, I'm not as concerned with this... Perhaps it's just an idiosynchrasy
of Xerces... But, it's easy enough to fix, by simply _copying_ the
xhtml1-strict.xsd and changing all instances of [-+] to [\-+]...
Anyhoo, any help appreciated.
Thanks!
Binesh Bannerjee
- --
"It's stupendous! And yet so lucid!"
"It's STUPID!"
PGP Key: http://www.hex21.com/~binesh/binesh-public.asc
PGP Key fingerprint = 421D B4C2 2E96 B8EE 7190 A0CF B42F E71C 7FC3 AD96
SSH2 Key: http://www.hex21.com/~binesh/binesh-ssh2.pub
OpenSSH Key: http://www.hex21.com/~binesh/binesh-openssh.pub
BubbleBabble = xibeb-voges-havez-pabaf-debop-cylil-lelyc-viruv-bygeg-zotoh-dixex
Fingerprint = 9d:7c:84:5d:80:e3:65:8d:ee:9e:a3:b9:56:0a:e9:ad
SSH1 Key: http://www.hex21.com/~binesh/binesh-ssh1.pub
CipherKnight Seals:
http://www.hex21.com/~binesh/binesh-seal.tar.bz2.cs256
http://www.hex21.com/~binesh/binesh-seal.zip.cs256
http://www.hex21.com/~binesh/binesh-certificate.gif.cs256
Decrypt with CipherSaber2 N=256, Password="WelcomeJedi!" (No quotes)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
iD8DBQFBqDR7tC/nHH/DrZYRAtk6AJ0Qi8tq6hifyiOIH8phywo/9TOuiwCfXYJz
+rf/ZLEyMjANenVEP4jA5OI=
=debr
-----END PGP SIGNATURE-----
Hash: SHA1
Hi.
In another thread said:XHTML is XML so there is no problem to use it inside of an XML document e.g.
<root>
<description>
<p xmlns="http://www.w3.org/1999/xhtml">description goes here</p>
</description>
</root>
Here's my problem tho... I want to do basically this:
<xsd:schema
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.w3.org/2001/XMLSchema http://www.w3.org/2001/XMLSchema.xsd"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:html="http://www.w3.org/1999/xhtml"
elementFormDefault="qualified"<xsd:import namespace="http://www.w3.org/1999/xhtml" schemaLocation="http://www.w3.org/2002/08/xhtml/xhtml1-strict.xsd"/>
<xsd:element name="mybody" type="html:body" />
</xsd:schema>
and give it (something like)
<?xml version="1.0"?>
<mybody
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="duck.xsd"<i>Hello!</i>
</mybody>
I'm using Xerces-J-2.6.2, and it barks at me with
org.xml.sax.SAXParseException: src-resolve: Cannot resolve the name 'html:body' to a(n) 'type definition' component.
How do I make the <mybody> tag take any elements that could go in html:body?
(As a side note, it also barks at me with
org.xml.sax.SAXParseException: InvalidRegex: Pattern value '[-+]?(\d+|\d+(\.\d+)?%)(,\s*[-+]?(\d+|\d+(\.\d+)?%))*' is not a valid regular expression. The reported error was: ''-' is an invalid character range. Write '\-'.'.
But, I'm not as concerned with this... Perhaps it's just an idiosynchrasy
of Xerces... But, it's easy enough to fix, by simply _copying_ the
xhtml1-strict.xsd and changing all instances of [-+] to [\-+]...
Anyhoo, any help appreciated.
Thanks!
Binesh Bannerjee
- --
"It's stupendous! And yet so lucid!"
"It's STUPID!"
PGP Key: http://www.hex21.com/~binesh/binesh-public.asc
PGP Key fingerprint = 421D B4C2 2E96 B8EE 7190 A0CF B42F E71C 7FC3 AD96
SSH2 Key: http://www.hex21.com/~binesh/binesh-ssh2.pub
OpenSSH Key: http://www.hex21.com/~binesh/binesh-openssh.pub
BubbleBabble = xibeb-voges-havez-pabaf-debop-cylil-lelyc-viruv-bygeg-zotoh-dixex
Fingerprint = 9d:7c:84:5d:80:e3:65:8d:ee:9e:a3:b9:56:0a:e9:ad
SSH1 Key: http://www.hex21.com/~binesh/binesh-ssh1.pub
CipherKnight Seals:
http://www.hex21.com/~binesh/binesh-seal.tar.bz2.cs256
http://www.hex21.com/~binesh/binesh-seal.zip.cs256
http://www.hex21.com/~binesh/binesh-certificate.gif.cs256
Decrypt with CipherSaber2 N=256, Password="WelcomeJedi!" (No quotes)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
iD8DBQFBqDR7tC/nHH/DrZYRAtk6AJ0Qi8tq6hifyiOIH8phywo/9TOuiwCfXYJz
+rf/ZLEyMjANenVEP4jA5OI=
=debr
-----END PGP SIGNATURE-----