?
=?ISO-8859-1?Q?Oll=A1maX=21?=
Hi, all you fine people!
I have this xml -file, which roughly looks like this:
<categories>
<category name = "009478">
<name>009478</name>
<description xml:lang = "fi-FI">writing paper
14-11-15-00</description>
<display-name xml:lang =
"fi-FI">kirjoituspaperit</display-name>
<parent refid = "thvD" name = "009074"/>
<custom-attribute>
<custom-attribute name = "level" dt =
"int">4</custom-attribute>
</custom-attribute>
</category>
</categories>
I'm trying to sew an xsl -stylesheet to produce a html page. I can use 'xt'
as a
parser.
Question is this:
In the xml file, on line #8 there is an element 'custom-attribute'.
What should I do with this attribute, if I wanted to be able to define the
amount of indent of the corresponding element in the html-file?
This value is an integer between 1-6, and if it is 4,5 or 6 it will be used
to
tell how much the category should be indented.(and/or if it's 3 or less it
should be indented only a little bit...)
In html-file it should look like this:
This would be an element, whose custom-attribute is 3 or less
This would be an element, whose custom-attribute is 4
This would be an element, whose custom-attribute is 5
This would be an element, whose custom-attribute is 4
This would be an element, whose custom-attribute is
6
This would be an element, whose custom-attribute is 4
This would be an element, whose custom-attribute is 5
I would like to use css, because the file might be delivered via an
application
that doesn't usually require JS.
Any ideas, anyone?
Oll¡maX!
I have this xml -file, which roughly looks like this:
<categories>
<category name = "009478">
<name>009478</name>
<description xml:lang = "fi-FI">writing paper
14-11-15-00</description>
<display-name xml:lang =
"fi-FI">kirjoituspaperit</display-name>
<parent refid = "thvD" name = "009074"/>
<custom-attribute>
<custom-attribute name = "level" dt =
"int">4</custom-attribute>
</custom-attribute>
</category>
</categories>
I'm trying to sew an xsl -stylesheet to produce a html page. I can use 'xt'
as a
parser.
Question is this:
In the xml file, on line #8 there is an element 'custom-attribute'.
What should I do with this attribute, if I wanted to be able to define the
amount of indent of the corresponding element in the html-file?
This value is an integer between 1-6, and if it is 4,5 or 6 it will be used
to
tell how much the category should be indented.(and/or if it's 3 or less it
should be indented only a little bit...)
In html-file it should look like this:
This would be an element, whose custom-attribute is 3 or less
This would be an element, whose custom-attribute is 4
This would be an element, whose custom-attribute is 5
This would be an element, whose custom-attribute is 4
This would be an element, whose custom-attribute is
6
This would be an element, whose custom-attribute is 4
This would be an element, whose custom-attribute is 5
I would like to use css, because the file might be delivered via an
application
that doesn't usually require JS.
Any ideas, anyone?
Oll¡maX!