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

Re: Encoding/Entities problems

Subject: Re: Encoding/Entities problems
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 29 Oct 2002 16:01:56 GMT
xhtml lat1.ent
> Hi david, I found the error reason :)
> You told that I must put the .ent files in the same folder right?
> ok, I puted them..
> but the reference to them must be with the complete url

it shouldn't work that way, it's like <a="href"...."/> If you just put
the file name it is a relative URI relative to teh stylesheet, so they
hae to be in the same directory. If you put a full absolute URI
http://.... then they can be anywhere on the planet.


> The data necessary to complete this operation is not yet available.
that sounds like a different version of teh same problem, the file isn't
being found.

Rather than find (or not find) files you can, instead of this

<!DOCTYPE xsl:stylesheet [
<!ENTITY % lat1 PUBLIC "-//W3C//ENTITIES Latin 1 for XHTML//EN"
"xhtml-lat1.ent">
<!ENTITY % symbol PUBLIC "-//W3C//ENTITIES Symbols for XHTML//EN"
"xhtml-symbol.ent">
<!ENTITY % special PUBLIC "-//W3C//ENTITIES Special for XHTML//EN"
"xhtml-special.ent">
%lat1;
%symbol;
%special;
]>

do 

<!DOCTYPE xsl:stylesheet [
.....
]>

where ..... is a _copy_ of the contents of the three .ent files, which
will be lots of lines all looking like

<!ENTITY nbsp   "&#160;" ><!-- no-break space = non-breaking space, U+00A0 ISOnum -->
<!ENTITY iexcl  "&#161;" ><!-- inverted exclamation mark, U+00A1 ISOnum -->
.
.
.
.

That way everything is in one file and you don't have to worry about
whether your browser security is letting you pull in data from other
places.

David

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.

 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.