[Mono-list] Help needed with XSLT transformations
(documentation browser)
Miguel de Icaza
miguel@ximian.com
11 Oct 2002 10:06:59 -0400
Hello!
> In general, a problem with the xslt doc is, the xslt dosn't support multiple
> files.
Well, I was thinking along the lines of having various stylesheets, so
to get the class summary, I would do:
xsltproc format-class.xslt File.xml
To get the `all-in-a-page', I would do:
xsltproc format-entire-class.xslt File.xml
To get a particular method, I could do (something like, excuse my broken
Xpath):
xsltproc --param type "/Docs/Members/Method[4]" format-method.xsl
File.xml
> There are implementations, that have this feature, but perhaps we should
> agree on one.
>
>
> Johannes
> ----- Original Message -----
> From: "Miguel de Icaza" <miguel@ximian.com>
> To: <mono-list@ximian.com>; "Adam Treat" <manyoso@yahoo.com>
> Sent: Friday, October 11, 2002 4:15 AM
> Subject: [Mono-list] Help needed with XSLT transformations (documentation
> browser)
>
>
> > Hello guys,
> >
> > I was going to do this manually, but the more code I wrote, the more
> > I realized that this is the kind of thing that should really be done
> > with Xslt. But I do not know Xslt, nor "better practices" with Xslt,
> > and I fear that this will have a fair amount of duplication.
> >
> > I have attached the ECMA documentation for Type.xml, the idea of
> > what I want to achieve is to process the XML document and extract a
> > number of things from it:
> >
> > * The type page, something like:
> >
> >
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
> frlrfsystemtypeclasstopic.asp
> >
> > * The methods page, something like:
> >
> >
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
> frlrfSystemTypeMethodsTopic.asp
> >
> > * The fields page, something like:
> >
> >
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
> frlrfSystemTypeFieldsTopic.asp
> >
> > * The properties page, something like:
> >
> >
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
> frlrfSystemTypePropertiesTopic.asp
> >
> > Then the tricky ones, given a member (field, property, method,
> > constructor, operator, do not worry about matching the method signature
> > correctly, we will figure that out later), render the page with the
> > data.
> >
> > This is a sample for the property:
> >
> >
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
> frlrfsystemtypeclassassemblytopic.asp
> >
> > Can someone help?
> >
> > Miguel.
> >
> >
> >
>