Subject: RE: [xsl] outputing elements correctly . From: Auguste Oumar <oumar_a@xxxxxxxx> Date: Mon, 17 Sep 2001 13:33:39 +0200 (CEST) |
Hi Mike, --- Michael Kay <mhkay@xxxxxxxxxxxx> schrieb: > What processor are you using? I'm using mainly the xalan-c++1.2 processor. > > Mike Kay > > > -----Original Message----- > > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx > > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On > Behalf Of > > Auguste Oumar > > Sent: 13 September 2001 16:14 > > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > > Subject: RE: [xsl] outputing elements correctly . > > > > > > Hi Mike, > > > > > It looks OK to me, for example > > > > <xsl:when test="AMD:pickingSequence"> > > > > <xsl:variable name="pseq" select="."/> > > > > <xsl:number value="$pseq" format="00"/> > > > > </xsl:when> > > > > <xsl:otherwise> > > > > <xsl:text>00</xsl:text> > > > > </xsl:otherwise> > > > > </xsl:choose> > > > > > > should output 00 if the element is absent, and > > > indeed it does. > > is not quite correct!See the output below: > > > > 001100 > > 000000001234556 > > 123456oumar > > Hamburg-Germany > > 12345678 > > 4 > > 5 > > Pa > > 00000089 > > 134 > > 65 > > 15 > > 00000767 > > 00000987 > > 20 > > 7 > > 2 > > 00000000 > > > > > > > > > > 001100 > > 00000 > > > > > > > > > > 001100 > > 000000001234556 > > > 00000000 > > > > > > > > > > 001100 > > 000000001234556 > > 123456oumar > > Hamburg-Germany > > 12345678 > > 4 > > 5 > > Pa > > 00000089 > > 134 > > 65 > > 15 > > 00000767 > > 00000987 > > 20 > > 7 > > 2 > > > > > > > > > > > > 001100 > > 000000001234556 > > 123456oumar > > Hamburg-Germany > > 12345678 > > 4 > > 5 > > Pa > > 00000089 > > 134 > > 65 > > 15 > > 00000767 > > 00000987 > > 20 > > 7 > > 2 > > > > > > > > > > > > > > > > 00000000000000000000000000000000000000000000000 > > > > > > > > > > 001100 > > 000000001234556 > > 123456oumar > > Hamburg-Germany > > 12345678 > > 4 > > 5 > > Pa > > 00000089 > > 134 > > 65 > > 15 > > 00000767 > > 00000987 > > 20 > > 7 > > 2 > > Obviously we have several output of the same > xml-file! > > We should only have one,and it should look like > this: > > 001100123456 123456oumar Hamburg-Germany > > 0000087...etc on a single line and with all > > elements.As you can see the default values weren't > > outputed(compare with xml-file and stylesheet).I > hope > > this help you understand the problem. > > > > Cheers > > > > > > > > In fact, the stylesheet appears to do exactly > what > > > you say you want. If this > > > isn't what you actually want, then you need to > > > describe your requirements > > > more clearly. > > > > > > (Of course you can simplify lines 2+3 to > <xsl:number > > > value="." format="00"/> > > > > > > Mike Kay > > > > > > > > Thanks. > > > > Auguste > > > > > > > > Xml-file: > > > > <?xml version="1.0" encoding="ISO-8859-1"?> > > > > > > > > <articleMasterData > > > > xmlns="http://www.Artikelstammdaten.org" > > > > > > > > > > > > > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > > > > > > > > > > > xsi:schemaLocation="http://www.Artikelstammdaten.org > > > > ArticleMaDaSch.xsd"> > > > > > > > > <?xml-stylesheet type="text/xsl" > > > > href="ArticleMaDaXmlToHtml.xsl"?> > > > > <?xml-stylesheet type="text/xsl" > > > > href="ArticleMaDaXmlToAscii.xsl"?> > > > > > > > > <telegramNumber>001100</telegramNumber> > > > > <client>123</client> > > > > <articleNumber>123456oumar</articleNumber> > > > > <itemCode>Hamburg-Germany</itemCode> > > > > > > > > > > > > > > <quantityPerPackingUnit>12345678</quantityPerPackingUnit> > > > > <QPPU-Modus>4</QPPU-Modus> > > > > <batchMode>5</batchMode> > > > > <quantityUnit>Pa</quantityUnit> > > > > <deliveryReferenz>00000089</deliveryReferenz> > > > > <price>134</price> > > > > <weight>65</weight> > > > > <height>15</height> > === message truncated === __________________________________________________________________ Do You Yahoo!? Gesendet von Yahoo! Mail - http://mail.yahoo.de XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] outputing elements correc, Michael Kay | Thread | RE: [xsl] outputing elements correc, Michael Kay |
RE: [xsl] How do you get the non-tr, jdgarrett | Date | RE: [xsl] outputing elements correc, Auguste Oumar |
Month |