Dan,
Using a for-each, the order nodes come out in when there's no sort is the
same as their order in the source: "document order" as the XPath 1.0 Rec
defines it.
You say you're trying to "match the order of [your] output to a word
document". But this information (whatever happens to be in a word document
somewhere) isn't accessible to the XSLT processor, unless you take some
measures to make it so. If that order is important, it makes sense to
represent it in your source document, either in the order of the nodes or,
if this isn't possible (maybe some operation can't be trusted to keep the
nodes in order) then by some other means, such as annotating the elements
with an attribute they can be sorted on. But this is only one way to do it.
Sorry I can't be more specific without more info. If you can tell us more
about how your desired order is specified, maybe we can suggest ways of
representing and using that spec to drive your processing (or even whether
you have to).
Cheers,
Wendell
At 03:13 PM 3/24/2005, you wrote:
I have about 200 items, with a sort by ascending they
go alphabetical, and by case. Which was ok, but now I
am trying to match the order of my output to a word
document, and if I pull out the sort, they go in a
specific order but, I have no control over that order
right not.
Thanks
--- Wendell Piez <wapiez(_at_)mulberrytech(_dot_)com> wrote:
> Hi Dan,
>
> At 02:31 PM 3/24/2005, you wrote:
> >Is there a way that the order of an xml to html
> >transform can be specific to the order the xsl was
> >written.
>
> In general, yes, unless you have something more
> particular in mind than
> simply "controlling the order of the output".
>
> > Or can I make the transfrom output of a
> >for-each section output in a specific order, note
> that
> >xsl:sort in asceding or such does not fix my
> issues.
>
> While for-each will traverse in document order
> unless a sort is present,
> there are ways around this: the fix will depend on
> exactly what you need to
> do. Can you provide us with anything more concrete?
>
> Cheers,
> Wendell
>
>
>
======================================================================
> Wendell Piez
> mailto:wapiez(_at_)mulberrytech(_dot_)com
> Mulberry Technologies, Inc.
> http://www.mulberrytech.com
> 17 West Jefferson Street Direct
> Phone: 301/315-9635
> Suite 207
> Phone: 301/315-9631
> Rockville, MD 20850
> Fax: 301/315-8285
>
----------------------------------------------------------------------
> Mulberry Technologies: A Consultancy Specializing
> in SGML and XML
>
======================================================================
>
>
>
--~------------------------------------------------------------------
> XSL-List info and archive:
> http://www.mulberrytech.com/xsl/xsl-list
> To unsubscribe, go to:
> http://lists.mulberrytech.com/xsl-list/
> or e-mail:
> <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
> --~--
>
>
__________________________________
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
http://promotions.yahoo.com/new_mail
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
======================================================================
Wendell Piez
mailto:wapiez(_at_)mulberrytech(_dot_)com
Mulberry Technologies, Inc. http://www.mulberrytech.com
17 West Jefferson Street Direct Phone: 301/315-9635
Suite 207 Phone: 301/315-9631
Rockville, MD 20850 Fax: 301/315-8285
----------------------------------------------------------------------
Mulberry Technologies: A Consultancy Specializing in SGML and XML
======================================================================
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--