given this XML:
<?xml version="1.0" ?>
<?xml-stylesheet type="text/css" href="test01.css"?>
<!DOCTYPE TEST_CASE_01 [
<!ELEMENT TEST_CASE_01 (UNB01,UNB02) >
<!ELEMENT UNB01 ANY>
<!ELEMENT UNB02 ANY>
]>
<TEST_CASE_01>
<UNB01>yes</UNB01>
<UNB02>no</UNB02>
</TEST_CASE_01>
and the following stylesheet:
TEST_CASE_01 {color:blue}
UNB01 {color:red}
UNB02 {color:green}
Internet explorer renders:
The XML page cannot be displayed
Cannot view XML input using CSS style sheet. Please correct the error
and then click the Refresh button, or try again later.
--------------------------------------------------------------------------------
Text is not allowed in this element according to DTD/Schema. Expecting:
UNB01. Line 11, Position 6
<UNB01>yes</UNB01>
-----^
So, as you can see, the string "<UNB01>" etc is
taken as TEXTual content which
is not allowed in the <TEST_CASE_01> container.
HOWEVER ! ........
by simply changing
<!ELEMENT TEST_CASE_01 (UNB01,UNB02) >
to
<!ELEMENT TEST_CASE_01 ANY >
I would now expect IE to render ...
<UNB01>yes</UNB01> no
but instead Internet Explorer now renders ...
yes no
(where "yes" is in red and "no" is in green per the style sheet).
So, do you see my delema? In the first case "<UNB01>"
is treated like TEXT, hence the error. So, we change the DTD
to ALLOW TEXT. The result ... "<UNB01>" is not
treated like text, but is treated as though it is a regular
XML element, as witnessed by 1) the lack of rendering of
"<UNB01>" and "</UNB01>" and 2) the specification in the style sheet
being applied.
Is this a bug? Is this the way it is supposed to work?
Since I am parsing XML I need to know if I should treat
items such as "<UNB01>" as text, or if I should
make the symbolic substitution and treat it just the
same as if I received "<UNB01>".
Thanks
Mike
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com
==========================================
XML/EDI Group members-only discussion list
Homepage = http://www.xmledi.org
Brought to you by: Online Technologies Corporation
Home of BizServe - www.bizserve.com
TO UNSUBSCRIBE: Send email to <[EMAIL PROTECTED]>
Leave the subject blank, and
In the body of the message, enter ONLY: unsubscribe
Questions/requests should be sent to: [EMAI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1IHWCA
J20=1<\c9M;;NhKUcdJF@0H3KKHGKI1AdhLcKK5kKIKJ7;8WKM5kLYKJYKMYKJOSQe=BGi@@VFjD
]eM^d5Td5=f`i6ffFF@6fi2bdJ6:gb>fbVFkFFb2BAbcZj4jS^\1Yb`jfe>g6fdd^fbf`6f`_ne_
ne_0000000`6Bdg2b\nfj2b\6Fdnfg6bOf@Z6Ff^F@Bgg<?:G@JFiVfbjFb>G@nFgbfdj6_KJY;J
1IF3;J88KJIWkL;[K?KIU[;K8JY;MQ[>Oi;CKKMIN3;JdUSm]]]Q=\Wm\Wm000000`6ReVbdGFDR
VD@NDinfj2G@ffbfFaFFi>gFnFgbfl2BbVVS]^cM^Ym]^5T\=]cU^=4Y_]]U5^Qm\UI?198A;MY;
LhM_kMM9NK;K;;IC[;O[L?K3KX@UkK[kIA;M19MPPD\iEWPlY^U]YQD]\S5]^m]\m]W=]UM^PLX_
E^`m]b=\d=]_I31982B@004Y_]]U5T_e\PDXYE_C]\be^U5T]4Tgm^geUR=]jM^UE^fY;7kKKSDm
YP\Z>MZEEXCMXB=Y2]Xj4TC]\^U\P\\]=\YU]PT^_9?aKKIKI\U\=]cU^]D^U=^e]\cU^0U]Yaij
BaV60dW=444408C;KH]KI19MASc]^RE]UM\dYHIKHMkJI983[Kf@@22110V4@anFbVG@nFcT^Xaf
Ffi>g`NfbbB@FFgBgb4T?eY<=[j4Tee]c]^RM^SE^YE\U]Q=<Ze]\cIJO[KWk;UKISKMhL1iLAkK
885KI1iL;[KY;8YkKe98OkMMKIUK;aKKIKI02DaVFm>70K8EO;8EkKC[K19M8FlU51PSm]]5^\]\
d]\PT^XAcnFifF@bfg>f`BgbB6Y[>K8JY30?KIOkHC;MCKIW[;7kKnb[6FfbfYBGiFfbBgGJDfnf
g:gGFCL6cJnbf6fdbfHjBdBgff`6f00%
==========================================
XML/EDI Group members-only discussion list
Homepage = http://www.xmledi.org
Brought to you by: Online Technologies Corporation
Home of BizServe - www.bizserve.com
TO UNSUBSCRIBE: Send email to <[EMAIL PROTECTED]>
Leave the subject blank, and
In the body of the message, enter ONLY: unsubscribe
Questions/requests should be sent to: [EMAIL PROTECTED]
To join the XML/EDI Group complete the form located at:
http://www.geocities.com/WallStreet/Floor/5815/mail1.htm