OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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