Project

Profile

Help

Comment processing fails

Added by Anonymous over 14 years ago

Legacy ID: #8410608 Legacy Poster: Paul (goshit)

I am using Saxon 9.1.0.8 Attempting to process comments within xml fails: They appear to be processed before anything else and are a mix of chopped-up, lost, and duplicated! Running the same files through another processor eg Stylus Studio or nxslt2.exe – all processes as expected. Any help or suggestions... XML File: [code] [/code] XSLT File: [code] <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" exclude-result-prefixes="xsl"> <xsl:output method="xml" encoding="UTF-8" omit-xml-declaration="no" indent="no"/> <xsl:template match="product-definition"> xsl:apply-templates/ </xsl:template> <xsl:template match="topic"> <xsl:attribute name="label"> <xsl:value-of select="@title"/> </xsl:attribute> xsl:apply-templates/ </xsl:template> <xsl:template match="include"> <xsl:attribute name="ref"> <xsl:value-of select="@href"/> </xsl:attribute> xsl:apply-templates/ </xsl:template> <xsl:template match="comment()"> xsl:copy/ </xsl:template> </xsl:stylesheet> [/code] The Result is: [code] [/code]


Replies (1)

RE: Comment processing fails - Added by Anonymous over 14 years ago

Legacy ID: #8411025 Legacy Poster: Michael Kay (mhkay)

This is a duplicate posting, it is answered on the other thread.

    (1-1/1)

    Please register to reply