Yes, you can have a pipeline, which generates your XSL: <map:match pattern="generate-my-stylesheet"> ... </map:match>
and then: <map:transform src="cocoon:/generate-my-stylesheet"/> -Alex --- Mark Lundquist <[EMAIL PROTECTED]> wrote: > > On Mar 11, 2004, at 6:41 AM, Marcin Okraszewski > wrote: > > > Hi, > > I would like to sort some fragments of a generated > XML. The problem is > > that I would like to sort the XML by XPath > specified in the generated > > document. It might look like this: > > > > <document> > > <!-- ... --> > > <sort:sort by="element/name"> > > <element> > > <name>xdfs</name> > > </element> > > <element> > > <name>asdfe</name> > > </element> > > </sort:/sort> > > </document> > > > > Is there any transformer that would do this (I > couldn't find any)? > > Maybe it is possible to do it in XSLT? I think > that XSLT isn't able to > > handle it, because it seems it can't evaluate > XPath expressions that > > are stored /source document/. > > Can you set up a separate pipe that transforms the > source to generate > the XSLT that sorts the source (in the house that > Jack built :-) ? > > ~ Mark > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
