Unwanted text in XSL output
Here should go questions about transforming XML with XSLT and FOP.
Unwanted text in XSL output
It seems that when I start feeling confident in my XSL coding abilities I stumble on a "simple" problem like this. I am trying to generate an SVG file from an XML source file and everything looks great except I get extra text at the top of the output file...
<?xml version="1.0" encoding="UTF-8"?> Tartrazin, 1.1944mg/100mlNaNKExported PE IR WinLab Data File<!DOCTYPE svg
PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010 ... /svg10.dtd">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 600">
The source and xsl files are in the folder linked below. Can anyone advise me what I am doing wrong? (using Saxon-HE 9.2.0.3 in oXygen 11.1)
http://chalk.coas.unf.edu/ftp/
Stuart Chalk
<?xml version="1.0" encoding="UTF-8"?> Tartrazin, 1.1944mg/100mlNaNKExported PE IR WinLab Data File<!DOCTYPE svg
PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010 ... /svg10.dtd">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 600">
The source and xsl files are in the folder linked below. Can anyone advise me what I am doing wrong? (using Saxon-HE 9.2.0.3 in oXygen 11.1)
http://chalk.coas.unf.edu/ftp/
Stuart Chalk
Re: Unwanted text in XSL output
Hi,
The ftp needs authentication...
Adrian
The ftp needs authentication...
Regards,http://chalk.coas.unf.edu/ftp/ wrote:403 Forbidden
You don't have permission to access /ftp/ on this server.
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Re: Unwanted text in XSL output
Hello,
What you are experiencing is the cause of one of the built-in template rules:
http://www.w3.org/TR/xslt20/#built-in-rule
The built in rule that's bothering you is:
To override it you need to add to your stylesheet:
Regards,
Adrian
What you are experiencing is the cause of one of the built-in template rules:
http://www.w3.org/TR/xslt20/#built-in-rule
The built in rule that's bothering you is:
Code: Select all
<xsl:template match="text()|@*" mode="#all">
<xsl:value-of select="string(.)"/>
</xsl:template>
Code: Select all
<xsl:template match="text()"/>
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
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