K
Kevin Brown
Is there anyway to generate this type of resulting HTML table from
this XML using XSLT? Basically I need to be able to consult 2 trees of
data to generate the HTML, but I have not been able to figure out how
to do so. There is supposed to be a way of using templates and the key
function to do grouping, but can it be done with 2 different trees? If
so, are there any examples of such things
Thanks for any help,
Kevin
***
HTML Table
chef 1 chef 2 chef 3
must: make.pizza
pour.milk
maybe: make.orange.juice make.ice.cream make.martini
never: make.apple.pie
***
XML File
<?xml version="1.0" encoding="LATIN1" standalone="yes" ?>
<!--
<!DOCTYPE housework.definition PUBLIC "house work xml"
"housework.dtd">
-->
<housework.definition housework.name="kitchen work"
docclass.name="house work">
<element.for.housework.def.list>
<element.for.housework.def element.name="make.pizza" presence="must"
/>
<element.for.housework.def element.name="pour.milk" presence="must"
/>
<element.for.housework.def element.name="make.orange.juice"
presence="maybe" />
<element.for.housework.def element.name="make.apple.pie"
presence="never" />
<element.for.housework.def element.name="make.ice.cream"
presence="maybe" />
<element.for.housework.def element.name="make.martini"
presence="maybe" />
</element.for.housework.def.list>
<sequence.def.list>
<sequence.def sequence="stage 1">
<sequence.def.role role="chef 1">
<element.for.sequence.def.role element="make.pizza" />
<element.for.sequence.def.role element="pour.milk" />
<element.for.sequence.def.role element="make.orange.juice" />
</sequence.def.role>
<sequence.def.role role="chef 2">
<element.for.sequence.def.role element="make.apple.pie" />
<element.for.sequence.def.role element="make.ice.cream" />
</sequence.def.role>
<sequence.def.role role="chef 3">
<element.for.sequence.def.role element="make.martini" />
</sequence.def.role>
</sequence.def>
</sequence.def.list>
</housework.definition>
this XML using XSLT? Basically I need to be able to consult 2 trees of
data to generate the HTML, but I have not been able to figure out how
to do so. There is supposed to be a way of using templates and the key
function to do grouping, but can it be done with 2 different trees? If
so, are there any examples of such things
Thanks for any help,
Kevin
***
HTML Table
chef 1 chef 2 chef 3
must: make.pizza
pour.milk
maybe: make.orange.juice make.ice.cream make.martini
never: make.apple.pie
***
XML File
<?xml version="1.0" encoding="LATIN1" standalone="yes" ?>
<!--
<!DOCTYPE housework.definition PUBLIC "house work xml"
"housework.dtd">
-->
<housework.definition housework.name="kitchen work"
docclass.name="house work">
<element.for.housework.def.list>
<element.for.housework.def element.name="make.pizza" presence="must"
/>
<element.for.housework.def element.name="pour.milk" presence="must"
/>
<element.for.housework.def element.name="make.orange.juice"
presence="maybe" />
<element.for.housework.def element.name="make.apple.pie"
presence="never" />
<element.for.housework.def element.name="make.ice.cream"
presence="maybe" />
<element.for.housework.def element.name="make.martini"
presence="maybe" />
</element.for.housework.def.list>
<sequence.def.list>
<sequence.def sequence="stage 1">
<sequence.def.role role="chef 1">
<element.for.sequence.def.role element="make.pizza" />
<element.for.sequence.def.role element="pour.milk" />
<element.for.sequence.def.role element="make.orange.juice" />
</sequence.def.role>
<sequence.def.role role="chef 2">
<element.for.sequence.def.role element="make.apple.pie" />
<element.for.sequence.def.role element="make.ice.cream" />
</sequence.def.role>
<sequence.def.role role="chef 3">
<element.for.sequence.def.role element="make.martini" />
</sequence.def.role>
</sequence.def>
</sequence.def.list>
</housework.definition>