Hi,
my XML tree currently looks like this:
<Header>
<Body>
<Text></Text>
<Subheader>
<Body>
<Text></Text>
</Body>
</Subheader>
</Body>
</Header>
I basically parse this XML file to display a html document which will have the form:
Header
// some text here...
well the thing I wasn't sure about was that I know you use css to format html pages and xsl to format xml pages.. so if I wanted to transform a xml file to html using xsl is there some way to embed css files in there (for stuff like table borders, font, etc.)
here is the sample for my xml..
<Page>
<TOC>
<Header>Introduction
<Subheader>Purpose</Subheader>
<Subheader>Overview</Subheader>
<Subheader>Scope</Subheader>
<Subheader>Target Audience</Subheader>
<Subheader>Document Organization</Subheader>...
Hi,
I'm just wondering if it is a proper practice to link css files to XSL files. For example, I want a special formatting class for my table.
If so, how do you add it to the XSL file?
Thanks.
Hi,
that works for the subheader part. But for header what happens when I use the "." is that it prints out the header's name plus all of its subheader's names.
<xsl:for-each select="Page/TOC/Header">
<tr>
<td><xsl:value-of select="." /></td>...
Hi,
I'm new to XML and what I have an XML document with the following strucure:
<TOP>
<Header>
<Subheader>
...
<Subheader>
</Header>
...
<Header>
<Subheader>
...
<Subheader>
</Header>
</TOP>
What I'm trying to do is loop through each header and print out all the subheaders it has...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.