[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: variable question
On Aug 31, 2004, at 3:59 AM, Michael Kay wrote:
If the relevant function call is the one shown, it means that the parent of Here's source fragment. <relatedItem type="host"> <titleInfo> <title>Newsweek</title> </titleInfo> No matter how I adjust the argument on the template below, I get the same error. So I don't understand what's going on. <xsl:function name="mods:reftype" as="xs:string"> <xsl:param name="relatedItem" as="element(mods:relatedItem)" /> <xsl:choose> <xsl:when test="$relatedItem/@type = 'host'"> <xsl:variable name="issuance" as="xs:string" select="$relatedItem/mods:originInfo/mods:issuance" /> <xsl:choose> <xsl:when test="$issuance = 'continuing'">article</xsl:when> <xsl:when test="$issuance = 'monographic'">chapter</xsl:when> </xsl:choose> </xsl:when> <xsl:otherwise>book</xsl:otherwise> </xsl:choose> </xsl:function> <xsl:template match="mods:titleInfo" mode="title-before"> <xsl:if test="mods:reftype(parent::mods:relatedItem) = 'chapter'"> <xsl:text>"</xsl:text> </xsl:if> </xsl:template>
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|