unicode numbers suddenly apearing in output
Here should go questions about transforming XML with XSLT and FOP.
unicode numbers suddenly apearing in output
I have a strange problem. I am halfway through a transform which goes well but suddenly starts to produce character codes in the output for the quotation and tab keys. e.g.
<channel id="2" MUR="3029"
 " module="4"
 "/>
This was generated by the following xslt (only fragment shown):
<xsl:element name="channel">
<xsl:attribute name="id">
<xsl:value-of select="value[@name='channelId']"/>
</xsl:attribute>
<xsl:attribute name="MUR">
<xsl:value-of select="value[@name='MUR']"/>"
</xsl:attribute>
<xsl:attribute name="module">
<xsl:value-of select="value[@name='module']"/>"
</xsl:attribute>
</xsl:element>
operating on this bit of xml:
<channel id="2">
<value name="channelId">2</value>
<value name="MUR">3029</value>
<value name="module">4</value>
</channel>
Note that the channelId was parsed correctly and output, but the others got mysterious character codes added for the quote and tab. (and the quote is the codepoint in decimal, whereas the tab is in hex... who ordered that?)
whats going on?
<channel id="2" MUR="3029"
 " module="4"
 "/>
This was generated by the following xslt (only fragment shown):
<xsl:element name="channel">
<xsl:attribute name="id">
<xsl:value-of select="value[@name='channelId']"/>
</xsl:attribute>
<xsl:attribute name="MUR">
<xsl:value-of select="value[@name='MUR']"/>"
</xsl:attribute>
<xsl:attribute name="module">
<xsl:value-of select="value[@name='module']"/>"
</xsl:attribute>
</xsl:element>
operating on this bit of xml:
<channel id="2">
<value name="channelId">2</value>
<value name="MUR">3029</value>
<value name="module">4</value>
</channel>
Note that the channelId was parsed correctly and output, but the others got mysterious character codes added for the quote and tab. (and the quote is the codepoint in decimal, whereas the tab is in hex... who ordered that?)
whats going on?
Code: Select all
Hi,
You have residual quotes in your stylesheet which are escaped in the output.
Just try deleting the quotes after the xsl:value-of element like in:
should go to:
Regards, Radu.
You have residual quotes in your stylesheet which are escaped in the output.
Just try deleting the quotes after the xsl:value-of element like in:
Code: Select all
<xsl:value-of select="value[@name='module']"/>"
Code: Select all
<xsl:value-of select="value[@name='module']"/>
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service