XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 15th, 2004, 08:09 AM
jaxi_aj jaxi_aj is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 4 jaxi_aj User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 52 sec
Reputation Power: 0
Post XML to Text

I have to transform an xml to a text file. I am using XSLT. Can I specify the size for a particular attribute of xml, regardless of the length of that attribute.
Suppose the length of the attribute is 10 but I want to reserve 20 spaces for that attribute. Is that possible?

Reply With Quote
  #2  
Old September 17th, 2004, 12:54 PM
Teflon's Avatar
Teflon Teflon is offline
Teflon The Black
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Location: Woodbridge VA
Posts: 246 Teflon User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 28 m 14 sec
Reputation Power: 5
Send a message via AIM to Teflon
http://www.dpawson.co.uk/xsl/sect2/padding.html

maybe this might help you out. Basically what they are saying to do here is to get the length of the string and append a space onto the end until it fills up to your desired length. You might have to use something similiar to or   to get the output correct.
__________________
Teflon - The Black <desc>Mark This Up</desc>

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > XML to Text


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT