Angus Parvis
Usenet Archive
- Joined
- Jul 21, 2004
- Messages
- 53
- Reaction score
- 0
Hi,
I've already posted this in comp.lang.java.programmer, but it doesn't seem like the ppl there can help. I hope you guys here know more about it, altough my question is more java than xml related
Here's the problem:
I have a XSL Stylesheet. Using the java.xml.transform.Transformer I transform XML to HTML. My XSL contains spaces and entities like "©".
This code for example contains a space between text1 and text2:
<xsl:value-of select="$text1"/> <xsl:value-of select="$text2"/>
But after transformation the space is gone! If there was any space character in text1 or text2, it's still there, but the space between those two disappered. What am I doing wrong? I don't want my text to stick together ..
The second this is a problem with entities. Whenever I use an entity like "©" or " ", java.xml.transform.Transformer tells me, that this entity is unknown and refuses work until i remove the entity from the HTML code. What's the problem here? How can I use HTML entities without troubles?
Thanks for your help,
Angus
I've already posted this in comp.lang.java.programmer, but it doesn't seem like the ppl there can help. I hope you guys here know more about it, altough my question is more java than xml related
Here's the problem:
I have a XSL Stylesheet. Using the java.xml.transform.Transformer I transform XML to HTML. My XSL contains spaces and entities like "©".
This code for example contains a space between text1 and text2:
<xsl:value-of select="$text1"/> <xsl:value-of select="$text2"/>
But after transformation the space is gone! If there was any space character in text1 or text2, it's still there, but the space between those two disappered. What am I doing wrong? I don't want my text to stick together ..
The second this is a problem with entities. Whenever I use an entity like "©" or " ", java.xml.transform.Transformer tells me, that this entity is unknown and refuses work until i remove the entity from the HTML code. What's the problem here? How can I use HTML entities without troubles?
Thanks for your help,
Angus