Subject: Fwd: Re: [xsl] xsl help From: "B. Tommie Usdin" <btusdin@xxxxxxxxxxxxxxxx> Date: Wed, 24 Jan 2001 11:41:44 -0500 |
X-Originating-IP: [216.43.0.128]
From: "geeta gudavalli" <geetag49@xxxxxxxxxxx>
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Fwd: Re: [xsl] xsl help
Date: Wed, 24 Jan 2001 15:40:49 -0000
Mime-Version: 1.0
Content-Type: text/plain; format=flowed
Message-ID: <F307PQLKlp3yl0c3dfN00000ac9@xxxxxxxxxxx>
X-OriginalArrivalTime: 24 Jan 2001 15:40:49.0905 (UTC) FILETIME=[06E1EE10:01C0861C]
My stylesheet is as follow: (This is only fraction of the stylesheet)
<?xml version='1.0'?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'
xmlns:fo="http://www.w3.org/1999/XSL/Format">
<xsl:param name="i" select="1"/>
<xsl:template match="OBFExtract">
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master
margin-right="0cm"
margin-bottom="0cm"
margin-top="0cm"
page-width="25.5cm"
page-height="34.5cm"
page-master-name="dirser1">
<fo:region-before extent="2in"/>
<fo:region-body margin-bottom=".5in" margin-top="1.0cm"
margin-left="0cm"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence>
<fo:sequence-specification>
<fo:sequence-specifier-repeating
page-master-repeating="dirser1"
page-master-first="dirser1">
</fo:sequence-specifier-repeating>
</fo:sequence-specification>
<fo:static-content flow-name="xsl-before">
<fo:block text-align="centered"
font-family="sans-serif"
font-size="16pt"
font-weight="bold"
border-width="1pt"
border-style="solid"
border-color="black"
line-height="20pt"
margin-top="0cm"
space-after.optimum=".2cm"
background-color="#616161">
Directory Service Caption Request (DSCR-A)
</fo:block>
<fo:block text-align="start"
font-family="sans-serif"
font-size="14pt"
font-weight="bold">
Administrative Section
</fo:block>
<fo:block/>
</fo:static-content>
<fo:flow flow-name="xsl-body">
<xsl:call-template name="DL"/>
<!-- you have to modify each 'select="blabla"' so that it looks like
'select="//DSCR[1]/blabla"' -->
<!---xsl:message>Running firstDSCR</xsl:message-->
<xsl:with-param name="i" select="number($i) +1"/>
</fo:flow>
</fo:page-sequence>
</fo:root>
</xsl:template>
<xsl:template name="DL">
<xsl:for-each select="//DL">
<fo:table>
<fo:table-column column-width="1.5cm"/>
<fo:table-column column-width="5.0cm"/>
<fo:table-column column-width="2.5cm"/>
<fo:table-column column-width="2.0cm"/>
<fo:table-column column-width="2.0cm"/>
<fo:table-column column-width="2.0cm"/>
<fo:table-column column-width="2.0cm"/>
<fo:table-column column-width="2.0cm"/>
<fo:table-body font-family="sans-serif" font-size="9pt">
<fo:table-row>
<fo:table-cell padding-top=".3cm">
<fo:block text-align="start">
CCNA
</fo:block>
<fo:block start-indent=".5cm" font-size="13pt">
<xsl:value-of select="$i"/>
</fo:block>
</fo:table-cell>
<fo:table-cell padding-top=".3cm">
<fo:block text-align="start" start-indent=".5cm">
<fo:inline-sequence>PON</fo:inline-sequence>
<fo:inline-sequence font-style="italic">(Order
Number)</fo:inline-sequence>
</fo:block>
<fo:block start-indent=".5cm" font-size="13pt">
<xsl:value-of select="//DL/DSCR[1]/pon"/>
</fo:block>
</fo:table-cell>
<fo:table-cell padding-top=".3cm">
<fo:block text-align="start" start-indent=".7cm">
ATN
</fo:block>
<fo:block start-indent=".8cm" font-size="13pt">
<xsl:value-of select="substring(//DL/DSCR[1]/account-tn,1,3)"/>
</fo:block>
</fo:table-cell>
<fo:table-cell padding-top=".8cm">
<fo:block/>
<fo:block text-align="start" start-indent=".5cm" font-size="13pt">
<xsl:value-of select="substring(//DL/DSCR[1]/account-tn,4,3)"/>
</fo:block>
</fo:table-cell>
<fo:table-cell padding-top=".8cm">
<fo:block/>
<fo:block text-align="start" start-indent=".5cm" font-size="13pt">
<xsl:value-of select="substring(//DL/DSCR[1]/account-tn,7,4)"/>
</fo:block>
</fo:table-cell>
etc....
My input is as follows:(This is only part) <OBFExtract> <DSR> <pon>10018851</pon> <pon-version>00</pon-version> <lsp-auth-name /> <customer-name /> <dsr-remarks /> </DSR> <SA> <pon>10018851</pon> <pon-version>00</pon-version> <mtn>3193380005</mtn> <account-number></account-number> <sa-zip-code>52001</sa-zip-code> </SA> <DL> <DLInfo> <pon>10018851</pon> <pon-version>00</pon-version> <mtn>3193380005</mtn> <omit-sec-dirs></omit-sec-dirs> <listed-tn>3193380005</listed-tn> <NSTN></NSTN> <yp-heading-code /> <yp-heading-verbiage /> <dl-remarks /> </DLInfo> <TEXT> <pon>10018851</pon> <pon-version>00</pon-version> <listing-text-type>ITX</listing-text-type> <line-of-text>Information Assistance</line-of-text> </TEXT> <DSCR> <pon>10018851</pon> <pon-version>00</pon-version> <mtn>3193380005</mtn> <ali-code></ali-code> <sequence-merge>Y</sequence-merge> <indent-actual-size>2</indent-actual-size> <IND> <indent-level>1</indent-level> <indent-level-status></indent-level-status> <il-sequence-override></il-sequence-override> <indent-non-std-tn></indent-non-std-tn> <indent-text>FCC Licensing Commission</indent-text> <indent-address></indent-address> </IND> <IND> <indent-level>2</indent-level> <indent-level-status></indent-level-status> <indent-non-std-tn></indent-non-std-tn> <indent-text>Central Ofc</indent-text> <indent-address></indent-address> </IND> </DSCR> </DL> <DL> <DLInfo> <pon>10018851</pon> <sec-code>000000</sec-code> <yp-heading-code /> <yp-heading-verbiage /> <dl-remarks /> </DLInfo> <TEXT> <pon>10018851</pon> <pon-version>00</pon-version> <mtn>3193380005</mtn> <ali-code></ali-code> <account-num></account-num> <account-tn>3193380005</account-tn> <activity-ind>N</activity-ind> <listing-text-type>ITX</listing-text-type> <line-of-text>Application Fax</line-of-text> </TEXT> <DSCR> <pon>10018851</pon> <pon-version>00</pon-version> <mtn>3193380005</mtn> <header-address></header-address> <sequence-merge>Y</sequence-merge> <indent-actual-size>2</indent-actual-size> <IND> <indent-level>1</indent-level> <indent-level-status>N</indent-level-status> <indent-tn></indent-tn> <indent-non-std-tn></indent-non-std-tn> <indent-text>FCC Licensing Commission</indent-text> <indent-address></indent-address> </IND> <IND> <indent-level>2</indent-level> <indent-text>Central Ofc</indent-text> <indent-address></indent-address> </IND> </DSCR> </DL> <DL> <DLInfo> <pon>10018851</pon> <pon-version>00</pon-version> <pla></pla> <adi>O</adi> <la-house-no-prefix></la-house-no-prefix> <la-house-no>346</la-house-no> <la-house-no-suffix></la-house-no-suffix> <advert-extension>0000</advert-extension> <sec-code>000000</sec-code> <yp-heading-code /> <yp-heading-verbiage /> <dl-remarks /> </DLInfo> <TEXT> <pon>10018851</pon> <pon-version>00</pon-version> <mtn>3193380005</mtn> <line-of-text>Ask A DJ</line-of-text> </TEXT> <DSCR> <pon>10018851</pon> <pon-version>00</pon-version> <mtn>3193380005</mtn> <ali-code></ali-code> <sequence-merge>Y</sequence-merge> <indent-actual-size>2</indent-actual-size> <IND> <indent-level>1</indent-level> <indent-level-status></indent-level-status> <indent-tn></indent-tn> <indent-non-std-tn></indent-non-std-tn> <indent-text>FCC Licensing Commission</indent-text> <indent-address></indent-address> </IND> <IND> <indent-level>2</indent-level> <indent-level-status></indent-level-status> <il-sequence-override></il-sequence-override> </IND> </DSCR> </DL> <DL> <DLInfo> <pon>10018851</pon> <pon-version>00</pon-version> <dl-remarks /> </DLInfo> <TEXT> <pon>10018851</pon> <pon-version>00</pon-version> <mtn>3193380005</mtn> <listing-text-type>ITX</listing-text-type> <line-of-text>Rates & Regulations</line-of-text> </TEXT> <DSCR> <pon>10018851</pon> <pon-version>00</pon-version> <mtn>3193380005</mtn> <indent-actual-size>3</indent-actual-size> <IND> <indent-level>1</indent-level> <indent-level-status>N</indent-level-status> <indent-text>Radio Spots</indent-text> <indent-address></indent-address> </IND> <IND> <indent-level>2</indent-level> <indent-level-status>N</indent-level-status> <indent-address></indent-address> </IND> <IND> <indent-level>3</indent-level> <indent-address></indent-address> </IND> </DSCR> </DL> </OBFExtract>From this, I need to output multiple pages of pdf file depending on numberod <DL> tags. I can generate multiple pages from my stylesheet but the information from first <DL> tag is only populated throughout. Can someone help me please. Thank you, Geeta
From: David Carlisle <davidc@xxxxxxxxx> Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Re: [xsl] xsl help Date: Wed, 24 Jan 2001 09:41:02 GMT
> I have posted twice on this list but have not gotten any feed back.
...
> My xsl is as follows: > <xsl:template match="/> > ...</xsl:template> > <xsl:tempalte match=://DL"> > <xsl:for-each select="DL"> > ... > </xsl:for-each> >
Given zero information about your input, your stylesheet, your output, or what XSL system you are using it's a bit hard to offer any advice.
David
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
_________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com
-- ====================================================================== B. Tommie Usdin mailto:btusdin@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Phone: 301/315-9631 Suite 207 Direct Line: 301/315-9634 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] xsl help, Deborah Aleyne Lapey | Thread | Re: Fwd: Re: [xsl] xsl help, David Carlisle |
[xsl] ANN: XAE 1.0beta1 available.., Paul Kinnucan | Date | RE: [xsl] nbsp;, Kelly Campbell |
Month |