This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: xml entities
Robert Koberg wrote:
>
> sorry if this is off topic... I am trying to get external entities to be
> styled by xsl but I am running into a basic problem.
>
> I am wondering if someone can tell me how to do something like:
> <!DOCTYPE apage[
> <!ENTITY logoid "0001">
> <!ENTITY logo SYSTEM "sections/logo/l_xx_&logoid;.xml">
> ]>
>
> where the first entity defines a "variable" for the next entity. This does
> not work as is, but if I take out SYSTEM it will give me the correct string.
> IS there a way to put variable information into a SYSTEM entity?
The XML spec says
[75] External ID ::= 'SYSTEM' S SystemLiteral | 'PUBLIC' S PubidLiteral
S SystemLiteral
The System Literal is a URI used to retrieve the Entity by the Parser
(or XML Processor).
No entities are allowed.
Thus, your Problem cannot be solved in this manner.
Use the document() function instead.
Regards,
Daniel Hinz
--
Daniel Hinz - XML Evangelist and Software Developer
Higher-Order AG
Burchardstrasse 19, D-20095 Hamburg, Germany
fon: 040 / 325587 - 0 fax: 040 / 325587 - 99
mailto:daniel.hinz@higher-order.de http://www.higher-order.de
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list