This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: I don't unterstand!
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] I don't unterstand!
- From: "Ben Robb" <b dot robb at cscape dot com>
- Date: Mon, 10 Sep 2001 18:33:33 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
<xsl:format-number($mandant,"00000000")/> is your problem (there is no
such xsl element as format-number).
Try:
<xsl:value-of select="format-number($mandant,"00000000")" />
Though I'll admit that "can't find an attribute name" is slightly
unhelpful as an error message...
Rgs,
Ben
> -----Original Message-----
> From: Auguste Oumar [mailto:oumar_a@yahoo.de]
> Sent: 10 September 2001 18:09
> To: XSL-List@lists.mulberrytech.com
> Cc: xml-dev@lists.xml.org
> Subject: [xsl] I don't unterstand!
>
>
> Hi everybody,
> can someone please tell me why the xalan
> xslt-processor is looking for an attribute name in the
> file below? I don't understand it!
> Thanks for help.
>
> Here is the xslt-file:
>
> <?xml version="1.0" encoding="ISO8859-1"?>
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>
> xmlns:AMD="http://www.Artikelstammdaten.org"
> xmlns="http://www.w3.org/TR/REC-html40">
>
> <xsl:output method="text"/>
> <xsl:strip-space elements="*"/>
>
> <xsl:template match="/">
> <h2><xsl:text>ArticleStammDaten</xsl:text></h2>
> <xsl:text>
</xsl:text>
> <xsl:apply-templates/>
> </xsl:template>
>
> <xsl:template match="AMD:articleMasterData">
> <xsl:apply-templates/>
> </xsl:template>
>
> <xsl:template match="AMD:telegramNumber">
> <xsl:value-of select="."/></xsl:template>
>
> <xsl:template match="AMD:client">
> <xsl:variable name="mandant" select="."/>
>
> <xsl:format-number($mandant,"00000000")/></xsl:template>
>
> <xsl:template match="AMD:articleNumber">
> <xsl:variable name="arNbr" select="."/>
> <xsl:substring(concat($arNbr,"
> "),1,20)/></xsl:template>
>
>
> <xsl:template match="AMD:itemCode">
> <xsl:variable name="iCode" select="."/>
> <xsl:substring(concat($iCode,"
> "),1,30)/></xsl:template>
>
> <xsl:template match="AMD:itemCode2">
> <xsl:variable name="iCode2" select="."/>
> <xsl:substring(concat($iCode2,"
> "),1,50)/></xsl:template>
>
>
> <xsl:template match="AMD:quantityPerPackingUnit">
> <xsl:variable name="qppu" select="."/>
> <xsl:format-number($qppu,"00000000")/></xsl:template>
>
>
> <xsl:template match="AMD:QPPU-Modus">
> <xsl:value-of select="."/></xsl:template>
>
> <xsl:template match="AMD:batchMode">
> <xsl:value-of select="."/></xsl:template>
>
> <xsl:template match="AMD:quantityUnit">
> <xsl:variable name="qUnit" select="."/>
> <xsl:substring(concat($qUnit,"
> "),1,2)/></xsl:template>
>
> <xsl:template match="AMD:deliveryReferenz">
> <xsl:variable name="dRef" select="."/>
> <xsl:substring(concat($dRef,"
> "),1,8)/></xsl:template>
>
> <xsl:template match="AMD:price">
> <xsl:variable name="prix" select="."/>
> <xsl:format-number($prix,"00000000")/></xsl:template>
>
> <xsl:template match="AMD:weight">
> <xsl:variable name="poids" select="."/>
>
> <xsl:format-number($poids,"00000000")/></xsl:template>
>
> <xsl:template match="AMD:height">
> <xsl:variable name="haut" select="."/>
> <xsl:format-number($haut,"00000000")/></xsl:template>
>
> <xsl:template match="AMD:width">
> <xsl:variable name="largeur" select="."/>
>
> <xsl:format-number($largeur,"00000000")/></xsl:template>
>
> <xsl:template match="AMD:depth">
> <xsl:variable name="profondeur" select="."/>
>
> <xsl:format-number($profondeur,"00000000")/></xsl:template>
>
> <xsl:template match="AMD:bestBeforeDate">
> <xsl:variable name="bbDate" select="."/>
> <xsl:format-number($prix,"0000")/></xsl:template>
>
> <xsl:template match="AMD:pickingSequence">
> <xsl:variable name="pseq" select="."/>
> <xsl:format-number($pseq,"00")/></xsl:template>
>
> <xsl:template match="AMD:actionCode">
> <xsl:value-of select="."/></xsl:template>
>
>
> </xsl:stylesheet>
>
>
> __________________________________________________________________
> Do You Yahoo!?
> Gesendet von Yahoo! Mail - http://mail.yahoo.de
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list