John,
I haven't taken a lot of time to look at your code, but maybe
what you want is to combine your apply-templates for targets into one.
I.e. replace this:
<xsl:apply-templates select="//HSString" mode="target" />
<xsl:apply-templates select="//HSDouble" mode="target" />
<xsl:apply-templates select="//HSInteger" mode="target" />
<xsl:apply-templates select="//HSBinary" mode="target" />
<xsl:apply-templates select="//HSBoolean" mode="target" />
<xsl:apply-templates select="//HSDate" mode="target" />
with this:
<xsl:apply-templates select="//HSString|//HSDouble|//HSInteger..etc."
mode="target" />
or (the same thing, maybe more efficient)
<xsl:apply-templates select="//*[self::HSString or self::HSDouble or
...]"
mode="target" />
That way, all your targets will be output in document order, instead
of HSStrings first, then HSDoubles, etc.
Lars
Thanks very much Lars. Your info was very helpful. I have a
question again.
If you see my output HTML, when i put down the targets of my
Did I miss something? I didn't find any output HTML in your message.
links at the
very bottom of the doc., they are in a sequential order.
First i put down
all the HSString items, then the HSDouble item and so forth.
This is being
done through this statements like this one in my first template:
<xsl:apply-templates select="//HSString" mode="target" />
My question is, is there a way for me to put down these
targets in the same
order as i display them in the heirarchal sequence above? In
the example XML
and XSL i provide, the heirarchal structure has textField_1,
integerField_1,
decimalField_1...textField_1_1, integerField_1_1 and so
forth. But right now
my targets (in output HTML) at the bottom show all the
textFields first then
decimalFields and so forth. I understand that this is because
of my sequence
in of the apply template statements in the first template.
Please let me know if putting them in the sequence of the heirarchal
structure is possible. Thank you once again for you help.
John
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list