Click here to Skip to main content
15,908,175 members
Home / Discussions / XML / XSL
   

XML / XSL

 
AnswerRe: Crazy Characters Pin
Dustin Metzgar29-Jun-06 7:49
Dustin Metzgar29-Jun-06 7:49 
QuestionXPath Q: How to select into a NodeList? Pin
matthias s.29-Jun-06 5:24
matthias s.29-Jun-06 5:24 
AnswerRe: XPath Q: How to select into a NodeList? Pin
Dustin Metzgar29-Jun-06 5:50
Dustin Metzgar29-Jun-06 5:50 
GeneralRe: XPath Q: How to select into a NodeList? Pin
matthias s.29-Jun-06 6:20
matthias s.29-Jun-06 6:20 
Questionwhere did the whitespace go? [modified] Pin
Bluebamboo29-Jun-06 5:09
Bluebamboo29-Jun-06 5:09 
AnswerRe: where did the whitespace go? Pin
Dustin Metzgar29-Jun-06 5:48
Dustin Metzgar29-Jun-06 5:48 
GeneralRe: where did the whitespace go? Pin
Bluebamboo29-Jun-06 6:01
Bluebamboo29-Jun-06 6:01 
GeneralRe: where did the whitespace go? Pin
Dustin Metzgar29-Jun-06 6:48
Dustin Metzgar29-Jun-06 6:48 
Well, I am doing the same thing as you. I pass some XML through a stylesheet to create HTML. The source is all cramped together, but I don't mind much as long as the HTML comes out ok. But sometimes it doesn't. For instance, if I want a space between two items like so:
<xsl:value-of select="$data/ch2_State"/> <xsl:value-of select="$data/vch10_ZipCode"/>
XSL will strip out the space between the state and the zip code so it looks like this: NY12345

That's a real pain. And, like you say, preserve space and whatever else you put there just doesn't work. So, what I ended up doing was this:
<xsl:value-of select="$data/ch2_State"/>
<xsl:text disable-output-escaping="yes">&</xsl:text>nbsp;
<xsl:value-of select="$data/vch10_ZipCode"/>


It's an extra annoyance, but it gets the job done.




Logifusion[^]
GeneralRe: where did the whitespace go? Pin
Bluebamboo29-Jun-06 9:59
Bluebamboo29-Jun-06 9:59 
GeneralRe: where did the whitespace go? Pin
Dustin Metzgar29-Jun-06 10:27
Dustin Metzgar29-Jun-06 10:27 
GeneralRe: where did the whitespace go? [modified] Pin
Bluebamboo29-Jun-06 11:51
Bluebamboo29-Jun-06 11:51 
GeneralRe: where did the whitespace go? Pin
Dustin Metzgar29-Jun-06 14:03
Dustin Metzgar29-Jun-06 14:03 
GeneralRe: where did the whitespace go? Pin
Bluebamboo29-Jun-06 14:57
Bluebamboo29-Jun-06 14:57 
GeneralRe: where did the whitespace go? Pin
Dustin Metzgar30-Jun-06 3:01
Dustin Metzgar30-Jun-06 3:01 
GeneralRe: where did the whitespace go? Pin
Tuwing.Sabado3-Jul-06 19:59
Tuwing.Sabado3-Jul-06 19:59 
GeneralRe: where did the whitespace go? Pin
Bluebamboo4-Jul-06 0:28
Bluebamboo4-Jul-06 0:28 
QuestionLonger text with special characters in xml files? Pin
matthias s.28-Jun-06 1:30
matthias s.28-Jun-06 1:30 
AnswerRe: Longer text with special characters in xml files? Pin
Igor Sukhov28-Jun-06 20:25
Igor Sukhov28-Jun-06 20:25 
GeneralRe: Longer text with special characters in xml files? Pin
matthias s.29-Jun-06 3:08
matthias s.29-Jun-06 3:08 
QuestionOf nodes or attributes [modified] Pin
Malcolm Smart27-Jun-06 0:36
Malcolm Smart27-Jun-06 0:36 
AnswerRe: Of nodes or attributes Pin
Igor Sukhov27-Jun-06 19:59
Igor Sukhov27-Jun-06 19:59 
GeneralRe: Of nodes or attributes Pin
Malcolm Smart27-Jun-06 22:02
Malcolm Smart27-Jun-06 22:02 
GeneralRe: Of nodes or attributes Pin
Igor Sukhov28-Jun-06 14:11
Igor Sukhov28-Jun-06 14:11 
GeneralRe: Of nodes or attributes Pin
Malcolm Smart28-Jun-06 21:28
Malcolm Smart28-Jun-06 21:28 
Questionhow to get current date and time in XSL FO Pin
Rizwan Bashir26-Jun-06 23:23
Rizwan Bashir26-Jun-06 23:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.