Sign Up
Search
Options
search
Chat
Help
News
Log in
Not Logged in
Home
»
Boards
»
Stylus Studio Developer Network
»
Stylus Studio Technical Forum
»
Auto-indent feature Wierdness
Topic
Topic Page
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Prev Topic
Next Topic
next
Subject:
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
top
Subject:
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
Prev Topic
Next Topic
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 to Conference:
Select Conference
Stylus Studio Feature Requests
Stylus Studio Technical Forum
Website Feedback
XSLT Help and Discussion
XQuery Help and Discussion
Stylus Studio FAQs
Stylus Studio Code Samples & Utilities
Stylus Studio Announcements
go
Log In Options
Username:
Password:
Site Map
|
Privacy Policy
|
Terms of Use
|
Trademarks
Stylus Scoop XML Newsletter:
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.