Well, I want to change my site (to change the language for example) with the
changing of just one entity.
So if I change this entity, different files will be included . . . in XML's
I haven't found another way to do this . . . with XSL's I can use include
||-something, but XML seems to have only the entity thing.
Any other suggestions then?
Cheers,
Peet
> Hi ,
>
> The XML 1.0 spec defines what goes after the SYSTEM keyword as an URI and
> assign it the following content :
> SystemLiteral ::= ('"' [^"]* '"') | ("'" [^']* "'")
>
>
> thus you can't include an entity reference here..
>
> But why are you willing to do this ?
> I think entities must be used as shortcuts to enable larger and more
modular
> documents, not to express any kind of processing logic.
>
> I hope this help,
> David
>
> ----- Original Message -----
> From: "Peet Sneekes" <[EMAIL PROTECTED]>
> To: "Xalan Mailgroup" <[email protected]>; "Xerces Mailgroup"
> <[EMAIL PROTECTED]>
> Sent: Thursday, April 13, 2000 5:54 AM
> Subject: Nested Entitie refs
>
>
> > Hi all,
> >
> > Question from the Netherlands:
> > I want to do this:
> >
> > <!ENTITY ref_C "C:">
> > <!ENTITY ref_D "D:">
> >
> > <!ENTITY % url_ref SYSTEM "&ref_D;\hello.xsl">
> > %url_ref;
> >
> > But I think It's not working . . . somehow he's not picking up the
entitie
> > ref to the "D:".
> > It produces the following error:
> >
> > StorageException in Resolving: /resources/&name;1.ent
> > at
> >
>
mm.storage.xmlXercesStorage.MmXercesResolver.resolveEntity(MmXercesResolver.
> > java:56)
> > at
> >
>
org.apache.xerces.framework.XMLParser.startReadingFromExternalEntity(XMLPars
> > er.java:2644)
> > at
> >
>
org.apache.xerces.framework.XMLParser.startReadingFromParameterEntity(XMLPar
> > ser.java:2603)
> > at
> >
>
org.apache.xerces.framework.XMLParser.startReadingFromEntity(XMLParser.java:
> > 2495)
> > at
> >
>
org.apache.xerces.framework.XMLDTDScanner.scanDecls(XMLDTDScanner.java:1445)
> > at
> >
>
org.apache.xerces.framework.XMLDTDScanner.scanDoctypeDecl(XMLDTDScanner.java
> > :1097)
> > at
> >
>
org.apache.xerces.validators.dtd.DTDValidator.scanDoctypeDecl(DTDValidator.j
> > ava:450)
> > at
> >
org.apache.xerces.framework.XMLParser.scanDoctypeDecl(XMLParser.java:2102)
> > at
> >
>
org.apache.xerces.framework.XMLDocumentScanner$PrologDispatcher.dispatch(XML
> > DocumentScanner.java:876)
> > at
> >
>
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.
> > java:381)
> > at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1208)
> >
> > I think it can be done (there's no XML DTD saying it can't be done), but
> > how?
> >
> > I use
> > Operating System : x86 Windows NT 4.0
> > Java : Sun Microsystems Inc. 1.1.6
> > XML-Parser : Xerces 1.0.3
> > XSLT-Processor : Xalan 1.0.0
> >
> > Peet Sneekes,
> > Mediamatic IP,
> > Amsterdam, NL
> >
>