[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: How would I do this?
On 4 Apr 2000, Henry Fieglein wrote: > Hello everyone, > I have the following problem. I am producing n error log which is XML so that it can be viewed in a browser. The problem of course is the end tag: [snip] > What I would like to do is define a stub which then references the data: > -- errorhead.xml -- > <?xml version="1.0" encoding="UTF-8"> > <!DOCTYPE ERRORS SYSTEM "errors.dtd"> > <ERRORS> > <XLINK "errors.xml"> > </ERRORS> > > and then the data would grow in the errors.xml file. > > Can I do this and do I have the correct syntax? Must the XLINK reference a well-defined XML file or can it reference something like the errors.xml that I describe? This is easily accomplished with an external entity: <?xml version="1.0" encoding="UTF-8"> <!DOCTYPE ERRORS SYSTEM "errors.dtd" [ <!ENTITY errlog SYSTEM "errors.xml"> ]> <ERRORS> &errlog; </ERRORS> In-progress specifications like XInclude or XLink may eventually provide other ways of doing this, but for now entity inclusion is standard. *************************************************************************** This is xml-dev, the mailing list for XML developers. To unsubscribe, mailto:majordomo@x...&BODY=unsubscribe%20xml-dev List archives are available at http://xml.org/archives/xml-dev/ ***************************************************************************
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|