This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: outputing elements correctly .


>  --- Michael Kay <mhkay@iclway.co.uk> schrieb: > What
> processor are you using?
>
> I'm using mainly the xalan-c++1.2 processor.

Well I suggest you try it on a different processor and compare results,
because I can't see any reason why the output should contain newline
characters, and it doesn't seem to with Saxon.

Mike Kay
>
> >
> > Mike Kay
> >
> > > -----Original Message-----
> > > From: owner-xsl-list@lists.mulberrytech.com
> > > [mailto:owner-xsl-list@lists.mulberrytech.com]On
> > Behalf Of
> > > Auguste Oumar
> > > Sent: 13 September 2001 16:14
> > > To: xsl-list@lists.mulberrytech.com
> > > 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
>


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]