OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: How would I do this?

[ Lists Home | Date Index | Thread Index ]
  • From: Eric Bohlman <ebohlman@netcom.com>
  • To: Henry Fieglein <henry_fieglein@dgbank.de>
  • Date: Tue, 4 Apr 2000 06:46:55 -0700 (PDT)

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@xml.org&BODY=unsubscribe%20xml-dev
List archives are available at http://xml.org/archives/xml-dev/
***************************************************************************




 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS