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 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Jay MeerdinkSubject: single space
Author: Jay Meerdink
Date: 27 Jan 2006 02:14 PM
I have a mapping process from which there are certain elements whose value must be fixed as a single space. I've tried

<xsl:text> </xsl:text>

and

<xsl:text>&#x20;</xsl:text>

but they both render as an empty element.

What can I do for this?

TIA,
Jay

Postnext
Tony LavinioSubject: single space
Author: Tony Lavinio
Date: 27 Jan 2006 03:13 PM
Which version of Stylus Studio are you using, and which XSLT engine?

Have you looked at the values with the debugger?

Usually when people have a problem with XSLT, it's the part of the
document they _don't_ post that actually causes the trouble ;).

Could you attach the XSLT and a sample input XML file that exhibits
the problem?

Postnext
Jay MeerdinkSubject: single space
Author: Jay Meerdink
Date: 27 Jan 2006 03:16 PM
Using Stylus Studio 6.1 287e. Samples are attached.


DocumentATFMap.xsl
map

UnknownCVInvoice235539.xml
sample doc

UnknownNoname(15).

Postnext
Jay MeerdinkSubject: single space
Author: Jay Meerdink
Date: 27 Jan 2006 03:20 PM
Look at the <ship_to_code> element. That's the guy I'd like to set as a single space. I'm using the default processor.

Postnext
Jay MeerdinkSubject: single space
Author: Jay Meerdink
Date: 27 Jan 2006 03:56 PM
Here's the xsd I'm mapping to. Might help, huh?


UnknownATF.xsd
xsd

Postnext
Tony LavinioSubject: single space
Author: Tony Lavinio
Date: 27 Jan 2006 04:49 PM
Huh. When I run your code, I get it exactly right, with one
space in <ship_to_code>. See attached.

You are _way_ behind on patches; please consider updating to
at least the latest build.
http://www.stylusstudio/update has the free updates.


UnknownJay.xml
Output from ATFMap.xsl

Postnext
Jay MeerdinkSubject: single space
Author: Jay Meerdink
Date: 27 Jan 2006 05:36 PM
It was a problem with the preview. When I previewed text, I saw the element with a space. It was when I previewed in browser that it rendered as an empty element. Duh.

If I modify the target document xsd as follows

<xsd:element name="ship_to_code" type="xsd:string" minOccurs="0" default="zzz"/>

and remove the ship_to_code element from the map, should I expect to see a value of 'zzz' in the ship_to_code element?

Also, I updated, but don't have my activation key. Now I'm hosed. How can I get my activation key from Stylus?

Thanks.

Postnext
Tony LavinioSubject: single space
Author: Tony Lavinio
Date: 27 Jan 2006 05:41 PM
email to stylusstudio (at) progress.com. I'll also tell someone here
to watch for it; hopefully you can get it today.

Postnext
Minollo I.Subject: single space
Author: Minollo I.
Date: 27 Jan 2006 05:49 PM
Jay,
you should download the latest build 287 update (BL287n), as that's the version for which you have a license (I guess). That update is available from http://www.stylusstudio.com/update/pro-60.html

If you are being prompted for an activation key, it means you have installed the latest Stylus Studio 2006 version; you can try it for free, but you will have to buy the upgrade from your current version if you are not protected by AUP.

Build 287 and Stylus Studio 2006 will co-exist on the same machine, assuming you don't try installing both in the same folder.

Hope this helps,
Minollo

Postnext
Jay MeerdinkSubject: single space
Author: Jay Meerdink
Date: 30 Jan 2006 09:24 AM
Tony - any thoughts on my question regarding setting the default value in the xsd?

Postnext
Jay MeerdinkSubject: single space
Author: Jay Meerdink
Date: 27 Jan 2006 06:20 PM
Thanks Minollo - that's information I could have used. I installed the latest update in the same directory, and now have no working copy of the software. How do I back rev and re-activate?

Posttop
Minollo I.Subject: single space
Author: Minollo I.
Date: 27 Jan 2006 06:54 PM
Jay,
I'm sending you instructions through email.

Minollo

 
Topic Page 1 2 3 4 5 6 7 8 9 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.