Click here to Skip to main content
15,920,217 members
Home / Discussions / XML / XSL
   

XML / XSL

 
GeneralRe: Web Services, (.NET), WSE 3.0 Pin
Jawz-X13-Jul-06 7:18
Jawz-X13-Jul-06 7:18 
GeneralRe: Web Services, (.NET), WSE 3.0 Pin
led mike13-Jul-06 7:58
led mike13-Jul-06 7:58 
QuestionSpeech / dictation add-ins Pin
Mike Osbahr11-Jul-06 5:18
Mike Osbahr11-Jul-06 5:18 
Questionusing .NET XslCompiledTransform? Pin
CherezZaboro10-Jul-06 11:29
CherezZaboro10-Jul-06 11:29 
AnswerRe: using .NET XslCompiledTransform? Pin
led mike10-Jul-06 11:51
led mike10-Jul-06 11:51 
QuestionRe: using .NET XslCompiledTransform? Pin
3nbar, A7mad A2-Aug-06 9:06
3nbar, A7mad A2-Aug-06 9:06 
AnswerRe: using .NET XslCompiledTransform? Pin
Dustin Metzgar2-Aug-06 9:38
Dustin Metzgar2-Aug-06 9:38 
QuestionFop problems Pin
Support12310-Jul-06 5:25
Support12310-Jul-06 5:25 
Hi All,

Here Is my XSL file

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
<xsl:template match="/">

<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master master-name="simple"
page-height="29.7cm"
page-width="21cm"
margin-top="1cm"
margin-bottom="2cm"
margin-left="1.5cm"
margin-right="1.5cm">
<fo:region-body margin-top="2cm"/>
<fo:region-after extent="1.5cm"/>
<fo:region-before extent="1.5cm"/>
</fo:simple-page-master>
</fo:layout-master-set>

<fo:page-sequence master-reference="simple">
<fo:flow flow-name="xsl-region-body">
<fo:block>
<xsl:apply-templates select="Title"/>
<xsl:apply-templates select="TableEntries"/>
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>

</xsl:template>

<xsl:template match="Title">
<fo:block font-size="18pt"
font-family="sans-serif"
line-height="20pt"
space-after.optimum="1pt"
background-color="blue"
color="white"
text-align="center"
padding-top="3pt">
<xsl:value-of select="Heading"/>
</fo:block>
<fo:block font-size="16pt"
font-family="sans-serif"
line-height="18pt"
space-after.optimum="1pt"
background-color="blue"
color="white"
text-align="center"
padding-top="3pt">
<xsl:value-of select="DateCreated"/>
</fo:block>
</xsl:template>

<xsl:template match="TableEntries">
<fo:block width="510pt">
<fo:table table-layout="fixed" width="510pt">
<xsl:if test="ClientName">
<fo:table-column column-width="50pt" font-size="7pt" border="1" border-color="black" border-style="solid" padding="2pt"/>
<fo:table-column column-width="50pt" font-size="7pt" border="1" border-color="black" border-style="solid" padding="2pt"/>
</xsl:if>
<fo:table-body>
<fo:table-row>
<xsl:for-each select="TableInfo">
<xsl:if test="ClientName">
<fo:table-cell>
<fo:block>
Client Name
</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block>
<xsl:value-of select="ClientName"/>
</fo:block>
</fo:table-cell>
</xsl:if>
</xsl:for-each>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:block>
</xsl:template>

</xsl:stylesheet>

Here is my Xml File:

<?xml version="1.0"?>
<?xml-stylesheet type='text/xsl' href='ClientLookUpResult.xsl'?>
<ClientLookUp>
<Title>
<Heading>Client Look-Up Result</Heading>
<DateCreated>Date Created: 06 July 2006 06:07PM</DateCreated>
</Title>
<TableEntries>
<TableInfo key="0">
<ClientName>Jan</ClientName>
</TableInfo>
<TableInfo key="1">
<ClientName>Koos</ClientName>
</TableInfo>
<TableInfo key="2">
<ClientName>Piet</ClientName>
</TableInfo>
<TableInfo key="3">
<ClientName>Gert</ClientName>
</TableInfo>
<TableInfo key="4">
<ClientName>San</ClientName>
</TableInfo>
</TableEntries>
</ClientLookUp>

When i run fop, it doesn't display anything...
Plz help.

He who laughs last...
AnswerRe: Fop problems Pin
Dustin Metzgar10-Jul-06 5:36
Dustin Metzgar10-Jul-06 5:36 
GeneralRe: Fop problems Pin
Support12310-Jul-06 5:42
Support12310-Jul-06 5:42 
GeneralRe: Fop problems Pin
Support12310-Jul-06 5:54
Support12310-Jul-06 5:54 
GeneralRe: Fop problems Pin
Dustin Metzgar10-Jul-06 6:05
Dustin Metzgar10-Jul-06 6:05 
GeneralRe: Fop problems Pin
Support12311-Jul-06 1:35
Support12311-Jul-06 1:35 
GeneralRe: Fop problems Pin
Dustin Metzgar11-Jul-06 2:06
Dustin Metzgar11-Jul-06 2:06 
GeneralRe: Fop problems Pin
Support12311-Jul-06 2:24
Support12311-Jul-06 2:24 
GeneralRe: Fop problems Pin
Dustin Metzgar11-Jul-06 2:40
Dustin Metzgar11-Jul-06 2:40 
GeneralRe: Fop problems Pin
Support12311-Jul-06 2:54
Support12311-Jul-06 2:54 
GeneralRe: Fop problems Pin
Dustin Metzgar11-Jul-06 3:26
Dustin Metzgar11-Jul-06 3:26 
GeneralRe: Fop problems Pin
Support12311-Jul-06 3:37
Support12311-Jul-06 3:37 
GeneralRe: Fop problems Pin
Support12311-Jul-06 5:47
Support12311-Jul-06 5:47 
GeneralRe: Fop problems Pin
Dustin Metzgar11-Jul-06 6:28
Dustin Metzgar11-Jul-06 6:28 
GeneralRe: Fop problems Pin
Support12311-Jul-06 6:38
Support12311-Jul-06 6:38 
GeneralRe: Fop problems Pin
Support12311-Jul-06 22:11
Support12311-Jul-06 22:11 
GeneralRe: Fop problems Pin
Dustin Metzgar12-Jul-06 3:33
Dustin Metzgar12-Jul-06 3:33 
GeneralRe: Fop problems [modified] Pin
Support12312-Jul-06 6:18
Support12312-Jul-06 6:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.