Can I have one XSLT style sheet which expands some brief XML to a longer
"normalized" form, which one of several other XSLT style sheets expands
further (or one of several parts of one sheet)? Finally, I'll render it
with a CSS style sheet. Or is there some other way one normally does
that?
E.g. in this xml:
<library>
<author a_id="me" name="Myself"/>
<series s_id="mine" name="My series">
<by a_ref="me"/>
<omnibus name="Foobar">
<with>You</with>
<novel name="Foobar #1"/>
<novel name="Foobar #3" <by name="Her"/</novel>
<novel name="Foobar #2"<with name="Him"/</novel>
</omnibus>
</series>
</library>
outer <by>s are inherited if there is no other <byto use at a level,
while <withadds a new <byto the currently active <by>s. Also, not
sure if I'll implement this but here author names not directly inside
<libraryare dragged out to <libraryand given an a_id. So the above
expands to (maybe with numbered new a_ids rather than those shown here):
<library>
<author a_id="me" name="Myself"/>
<!-- Author IDs generated from authors without IDs: -->
<author a_id="id_You" name="You"/>
<author a_id="id_Her" name="Her"/>
<author a_id="id_Him" name="Him"/>
<series s_id="mine" name="My series">
<by a_ref="me"/>
<omnibus name="Foobar">
<by a_ref="me"/>
<by a_ref="id_You"/>
<novel name="Foobar #1">
<by a_ref="me"/>
<by a_ref="id_You"/>
</novel>
<novel name="Foobar #3">
<by a_ref="id_Her"/>
</novel>
<novel name="Foobar #2">
<by a_ref="me"/>
<by a_ref="id_You"/>
<by a_ref="id_Him"/>
</novel>
</omnibus>
</series>
</library>
which is then expanded further by some other sheet.
--
Hallvard