Ive noticed the same thing with DTD's it seems whatever you do, it only goes 1 level deep with the validation.
if you try to do for example XHTML validation and point it to:
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd
which contains references to other DTD files that define the symbols like etc.
<!ENTITY % HTMLsymbol PUBLIC
"-//W3C//ENTITIES Symbols for XHTML//EN"
"xhtml-symbol.ent">
it wont pick them up.
the only solution ive found is to manually create a DTD file, either via hard-coding included content or building the DTD via CF and using CFINCLUDES to get the included entity references.
If you find a solution, i would love to hear about it!
Pat
On 5/15/06, Kai Koenig ( ZeroOne ) <[EMAIL PROTECTED]
> wrote:
Hi folks,
I'm just trying to break down a large XML document into several
smaller pieces using <!ENTITY...>. For some reason CF 7's XML
engine doesn't like the way I'm doing it:
a.xml:
<!DOCTYPE myDocype [
<!ENTITY configuration SYSTEM "b.xml">
]>
<juhu>
&configuration;
</juhu>
b.xml:
<b>
<name>abc</name>
</b>
a.xml and b.xml are in the same folder.
Given the concept of entities, that should work (and it actually
does work with IE's built-in XML parser). If I read a.xml by using
CFFILE and do an XMLParse(), it doesn't even dump the result of
XMLParse, only display is "unkown object type".
It actually makes a huge difference, when I use a full URL
in my ENTITY tag:
<!ENTITY configuration SYSTEM "http://server/path/to/b.xml">
or even
<!ENTITY configuration SYSTEM "c:\path\to\b.xml">
works fine and a dump of the XML object after XMLParse delivers
exactly what I want.
The issue is that I need to be able to just provide the
filename, there's no way of puttin a complete path.
I'm just wondering if that is some issue with particularly
the XML parser in CF? Any ideas?
Cheers
Kai
__________________________________________________
Kai Koenig
Digital solutions architect
Macromedia Certified Master Instructor (CF, Flex)
Macromedia Certified Professional (CF, Flash)
ZeroOne (NZ) Limited
Level 4, United Building,
107 Customhouse Quay
P.O Box 9918, Marion Square
Wellington, New Zealand
Office: +64 4 471 4448
Mobile: +64 27 567 1007
Fax: +64 4 499 0019
e-mail: [EMAIL PROTECTED]
URL: www.zeroone.co.nz
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "cfaussie" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cfaussie
-~----------~----~----~----~------~----~------~--~---
- [cfaussie] External XML Entities with CF 7... Kai Koenig \( ZeroOne \)
- [cfaussie] Re: External XML Entities with CF... Patrick Branley
