<xsl:apply-templates> result?
Here should go questions about transforming XML with XSLT and FOP.
-
- Posts: 1
- Joined: Wed Mar 30, 2005 8:13 pm
<xsl:apply-templates> result?
In Internet Explorer and other XSLT processors, the result of apply-templates is to move to the next node from the current node without printing the text content of the node. While in Oxygen the behavior is to print the text and then move to the next node, isn't that is what happens as part of the built in rule?
Help
Help
-
- Site Admin
- Posts: 2095
- Joined: Thu Jan 09, 2003 2:58 pm
Yes, I guess it is a default template that generates that text, see
http://www.w3.org/TR/xslt#built-in-rule
***
<xsl:template match="text()|@*">
<xsl:value-of select="."/>
</xsl:template>
***
If you do not want that then add a noop template matching the text and attribute nodes to your stylesheet, like below:
<xsl:template match="text()|@*"/>
Best Regards,
George
http://www.w3.org/TR/xslt#built-in-rule
***
<xsl:template match="text()|@*">
<xsl:value-of select="."/>
</xsl:template>
***
If you do not want that then add a noop template matching the text and attribute nodes to your stylesheet, like below:
<xsl:template match="text()|@*"/>
Best Regards,
George
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