Am Samstag, den 28.10.2006, 09:20 +0100 schrieb Dave Pawson:
> On 27/10/06, Andreas M. <[EMAIL PROTECTED]> wrote:
> 
> > of an XSLT template. Me wonders, whether it would be possible to write
> > an XSLT, that would create an XSLT for different output formats from the
> >  RelaxNG (XML), lol.
> 
> Yes.
> 
> Produce a template for each element definition.
> Chase down the tree of the grammar until all elements are exhausted.
> 
> You'd have the basis for a workable stylesheet.
> 
> The alternative is to look for an instance that uses all elements, which is
> a bit unlikely.
> I have a stylesheet which generates xslt from that.

Sounds interesting, you say you're using XSLT to derive a specialized
XSL sheet for matching the elements occuring in the sample document?

How do you do that? I can imagine only writing out a matching template
for each occuring node name and leaving the action code for the user to
fill in would do ... so building a dom tree isn't necessary, even sax
would do.

<shameless mode>
Maybe you're willing to share this frame generation template?
</shameless mode>

Marc


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to