This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Inserting spaces in my FO Style Sheet
- To: xsl-list at lists dot mulberrytech dot com
- Subject: RE: [xsl] Inserting spaces in my FO Style Sheet
- From: "Albert Tsun" <albert dot tsun at excel dot com dot hk>
- Date: Fri, 22 Jun 2001 10:40:28 +0800
- cc: DPawson at rnib dot org dot uk
- Reply-To: xsl-list at lists dot mulberrytech dot com
Dear All,
I have tried to add the folowing lines in XSL
<!DOCTYPE xsl:stylesheet [
<!ENTITY nbsp " ">
<!ENTITY sp "<xsl:text> </xsl:text">
]>
but the parser I used, say that
javax.xml.transform.TransformerConfigurationException:
javax.xml.transform.TransformerConfigurationException:
javax.xml.transform.TransformerException: org.xml.sax.SAXParseException:
Parameter entity
references must not appear within markup declarations in the internal DTD
subset.
I am using the new JAXP 1.1 package which used jaxp.jar, crimson.jar, xalan.jar
in WinNT 4.0, JDK1.3
Is there any way I can bypass this?
Many thanks in advance.
DPawson@rnib.org.uk on 21/06/2001 03:30:50 PM
Please respond to xsl-list@lists.mulberrytech.com
To: xsl-list@lists.mulberrytech.com
cc: (bcc: Albert Tsun/Excel)
Subject: RE: [xsl] Inserting spaces in my FO Style Sheet
> I tried to insert a space in my FO Style Sheet using the
> suggestion below
> and it doesn't work.
>
> If I insert a character and then a space <xsl:text> 1</xsl:text> - it
> works - but not the space alone.
I generally have
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE xsl:stylesheet [
<!ENTITY nbsp " ">
<!ENTITY sp "<xsl:text> </xsl:text">
]>
as the top end of my stylesheet, then I can use
<xsl:template match="whatever">
stuff more stuff
to get a simple seperator.
Perhaps for fo, the equivalent would be
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE xsl:stylesheet [
<!ENTITY sp "<fo:inline> </fo:inline>">
]>
HTH DaveP
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list