[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: xml entities

Subject: Re: xml entities
From: Daniel Hinz <daniel.hinz@xxxxxxxxxxxxxxx>
Date: Mon, 19 Jun 2000 13:06:55 +0200
xml entity variable
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@xxxxxxxxxxxxxxx http://www.higher-order.de


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.