Dave McRae
2005-04-08 00:44:09 UTC
Adam Knight proposed this question 2 months ago, (thread titled Using
in XSL HTML Output)
Please excuse me, I did not understand the answers, and, if any are used
in code, they do not achieve the desired affect.
The desired effect - a Table of Contents or list of Anchors, space
delimited.
Eg HTML source to look like
<a href="#sect1">Section1</a> <a href="#sect2">Section2</a>
The XSLT I use for that is
<xsl:output method="html" encoding="iso-8859-1" indent="yes"/>
..
<xsl:for-each select="section">
<a href="#{@Anchor}"><xsl:value-of select="@SectionName"/></a>{I wish to
output to HTML }
</xsl:for-each>
Replace {I wish to output to HTML } with..
XSL Error: Reference to undefined entity 'nbsp'.
&nbsp;
<a href="#sect1">Section1</a>&nbsp;<a href="#sect2">Section2</a>
This outputs in text as not as the space desired
<![CDATA[ ]]>
<a href="#sect1">Section1</a>&nbsp;<a href="#sect2">Section2</a>
This outputs in text as not as the space desired
 
<a href="#sect1">Section1</a> <a href="#sect2">Section2</a>
No & but it is a space - but not a (I cant have 2 spaces -
well, I can, but the HTML browser will display only 1)
&nbsp
<a href="#sect1">Section1</a>&nbsp;<a href="#sect2">Section2</a>
DAMN - how did it know to to map & to &
At the moment I have the space with a span so it may be styled up (with
CSS) for the extra width.
I have read the FAQ - and it is good - thanks all - and with that
section on special characters I can output tabs and special characters -
I just cannot output to the HTML client.
Can it be done?
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-***@lists.mulberrytech.com>
--~--
in XSL HTML Output)
Please excuse me, I did not understand the answers, and, if any are used
in code, they do not achieve the desired affect.
The desired effect - a Table of Contents or list of Anchors, space
delimited.
Eg HTML source to look like
<a href="#sect1">Section1</a> <a href="#sect2">Section2</a>
The XSLT I use for that is
<xsl:output method="html" encoding="iso-8859-1" indent="yes"/>
..
<xsl:for-each select="section">
<a href="#{@Anchor}"><xsl:value-of select="@SectionName"/></a>{I wish to
output to HTML }
</xsl:for-each>
Replace {I wish to output to HTML } with..
XSL Error: Reference to undefined entity 'nbsp'.
&nbsp;
<a href="#sect1">Section1</a>&nbsp;<a href="#sect2">Section2</a>
This outputs in text as not as the space desired
<![CDATA[ ]]>
<a href="#sect1">Section1</a>&nbsp;<a href="#sect2">Section2</a>
This outputs in text as not as the space desired
 
<a href="#sect1">Section1</a> <a href="#sect2">Section2</a>
No & but it is a space - but not a (I cant have 2 spaces -
well, I can, but the HTML browser will display only 1)
&nbsp
<a href="#sect1">Section1</a>&nbsp;<a href="#sect2">Section2</a>
DAMN - how did it know to to map & to &
At the moment I have the space with a span so it may be styled up (with
CSS) for the extra width.
I have read the FAQ - and it is good - thanks all - and with that
section on special characters I can output tabs and special characters -
I just cannot output to the HTML client.
Can it be done?
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-***@lists.mulberrytech.com>
--~--