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  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
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