[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: I don't unterstand!

Subject: RE: I don't unterstand!
From: "Ben Robb" <b.robb@xxxxxxxxxx>
Date: Mon, 10 Sep 2001 18:33:33 +0100
xsl substring
<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@xxxxxxxx]
> Sent: 10 September 2001 18:09
> To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
> Cc: xml-dev@xxxxxxxxxxxxx
> Subject:  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>&#xA;</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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.