XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
CC CosentinoSubject: Auto-indent feature Wierdness
Author: CC Cosentino
Date: 15 Oct 2004 11:17 AM
I am working on an XSL-FO StyleSheet.

When I use the auto-indent feature to tidy everything up, it takes out a couple of key spaces

BEFORE:

<xsl:template match="xrefinline">
<fo:basic-link color="blue" internal-destination="{@targetid}">
<xsl:value-of select="."/> (page <fo:page-number-citation ref-id="{@targetid}"/>)</fo:basic-link>
</xsl:template>

<xsl:template match="xref">
<fo:block>
<fo:basic-link color="blue" internal-destination="{@targetid}">
<xsl:value-of select="id(@targetid)/title"/> on page <fo:page-number-citation ref-id="{@targetid}"/></fo:basic-link>
</fo:block>
</xsl:template>

AFTER:

<xsl:template match="xrefinline">
<fo:basic-link color="blue" internal-destination="{@targetid}">
<xsl:value-of select="."/>(page <fo:page-number-citation ref-id="{@targetid}"/>)</fo:basic-link>
</xsl:template>

<xsl:template match="xref">
<fo:block>
<fo:basic-link color="blue" internal-destination="{@targetid}">
<xsl:value-of select="id(@targetid)/title"/>on page <fo:page-number-citation ref-id="{@targetid}"/></fo:basic-link>
</fo:block>
</xsl:template>

HINT:

Space is removed from before "(page" and "on page".

Is this supposed to happen? When those spaces are removed, the resulting output from the transformation has works mushed together, for example:

See Widgets(page 42)
See also Widgetson page 42.

Output should be

See Widgets (page 42)
See also Widgets on page 42.

Is there something wrong with the way I am coding? Or is there a problem with the Auto-indent feature?

Thanks!

Chris

Posttop
Ivan PedruzziSubject: Auto-indent feature Wierdness
Author: Ivan Pedruzzi
Date: 15 Oct 2004 12:29 PM
Hi Chris,

Please take a look to a previous response on this forum

http://www.stylusstudio.com/SSDN/default.asp?action=9&read=1967&fid=23#5339

Hope this helps
Ivan

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.