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
Conferences Close Tree View
+ Stylus Studio Feature Requests (1192)
- Stylus Studio Technical Forum (14621)
-> - Stylus Studio - Registrar en o... (1)
-> + Stylus Studio - Registrar en o... (2)
-> + Can a pipeline send a file by ... (2)
-> + After Updateing WIN10 to WIN11... (12)
-> + Where do I add the custom java... (3)
-> + Where is the Diagram tab? (5)
-> + Applying XSLT to Word DOCX/XML (2)
-> - CSV conversion via ConvertToXM... (1)
-> + Text symbols in SS not same as... (4)
-> + Exposing xquery as webservice ... (6)
-> + Syntax Identifier (2)
-> + Saving a Converted XML as an X... (5)
-> + Output document cannot be pars... (4)
-> - Archiving output from conversi... (1)
-> + EDIFACT guideline from Stylus ... (3)
-> + CSV file putting all the data ... (5)
-> + Can't install Home version 64b... (5)
-> + presale - Can I covers this sc... (5)
-> + Problem with UNB (5)
-> + Splitting EDIFACT files pipeli... (4)
-- [1-20] [21-40] [41-60] Next
+ Website Feedback (249)
+ XSLT Help and Discussion (7625)
+ XQuery Help and Discussion (2017)
+ Stylus Studio FAQs (159)
+ Stylus Studio Code Samples & Utilities (364)
+ Stylus Studio Announcements (113)
Topic  
Postnext
Gerald NelsonSubject: line breaks and spaces
Author: Gerald Nelson
Date: 01 Mar 2002 08:43 AM
Sometimes I have a bunch of sentences inside a para tag and I want to see them without scrolling like crazy so I put a carriage return after the end of a sentence. Stylus automatically formats the new line with a bunch of tabs but seems to delete the space. Then when my xml is converted to html I end up with no space after the period at the end of the sentence. Is this kosher behavior for stylus and I need to modify how I deal with the xml/html conversion or should stylus be fixed?

More generally there are times when I'd like to have word wrap in my xml document. Is that an option?

Regards, Jerry Nelson

Posttop
Minollo I.Subject: Re: line breaks and spaces
Author: Minollo I.
Date: 01 Mar 2002 10:09 AM
Jerry,
we've tried understanding reproducing the problem you described, but
with no luck.
I tried building a simple test, in which I have a stylesheet generating
HTML which has a fragment of text like this:
{p}
This is statement number 1. And this is statement number 2.
{/p}

Then, trying to follow your instructions, I position the cursor after "1."
and typed Enter; the result was:
{p}
This is statement number 1.
And this is statement number 2.
{/p}

....where Stylus added a bunch of tabs (or spaces depending on the Option
settings) to keep the two lines of text at the same starting column.

Generating HTML in *both* cases, the browser preview displays
"This is statement number 1. And this is statement number 2."

(yes, with a space after "1."); this is the way HTML handles whitespaces
(any sequence of newlines+tabs+blanks is converted in one blank).
This is a reasonable behavior from what I can tell; so I guess I'm
misunderstanding your problem.

Can you describe what you are seeing/doing in more details, possibly with
an example?

BTW, currently you cannot word-wrap text in the Stylus Studio editors.

Thanks,
Minollo

   
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.