Resolution: Description
=======
There is a sample XSLT file in the BW documentation "BW Palette Reference, chapter 21, Transform XML, Example of Transforming XML". When copying the XSLT into a content for an XSLT file in a BW project, and associate the file with a transform XML activity, the input shows as an error.
Here is the XSLT file from BW doc:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:pfx="http://www.books.org">
<xsl:param name="catalogNumber">
<!--type="string"-->
</xsl:param>
<xsl:param name="catalogDate">
<!--type="string"-->
</xsl:param>
<xsl:template match="/*">
<pfx:BookStore>
<xsl:for-each select="Book">
<xsl:call-template name="handle-book">
<xsl:with-param name="inDate" select="$catalogDate"/>
</xsl:call-template>
</xsl:for-each>
</pfx:BookStore>
</xsl:template>
<xsl:template name ="handle-book">
<xsl:param name="inDate">
<!--type="string"-->
</xsl:param>
<pfx:Book>
<pfx:Title>
<xsl:value-of select="Title"/>
</pfx:Title>
<pfx:Author>
<xsl:value-of select="Author"/>
</pfx:Author>
<pfx:Date>
<xsl:value-of select="$inDate"/></pfx:Date>
<pfx:ISBN>
<xsl:value-of select="$catalogNumber"/>
</pfx:ISBN>
<pfx:Publisher>
<xsl:value-of select=""TIBCO Software Inc./></pfx:Publisher>
</pfx:Book>
</xsl:template>
</xsl:stylesheet>
The error is: "not an error or warning message code: BW-XML-100001".
Environment
========
ALL
Resolution
=======
There are two problems in the following line:
<pfx:Publisher><xsl:value-of select=""TIBCO Software Inc./>
First, the double quote is used in the wrong place. It should be used as select="TIBCO Software Inc.".
Second, if the string within the double quotes means a string constant, it should be surrounded by a separate quote, like the following:
<xsl:value-of select="'TIBCO Software Inc.'"/>
Without the single quotes, "TIBCO Software Inc." is interpreted as a node path, but it is not valid because it contains spaces.