XSL from an XML Schema?

Having trouble installing Oxygen? Got a bug to report? Post it all here.
Noisy
Posts: 1
Joined: Thu May 18, 2006 8:06 am

XSL from an XML Schema?

Post by Noisy »

Hi!

I am just starting to learn XML and XSL. I was wondering if Oxygen can make my life a little easier by taking an XML Schema to determine tag names, attributes, etc. and help me build an XSL for a given XML. Maybe the reasonable thing to do would be to take the XML Schema for the output document and build and XSL transformation using an XML Schema for the input document.

Is this possible / available?

Thanks!
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Post by george »

Hi,

If you confirure a transformation scenario and specify an input file then oXygen will present the tree strcuture in the XSLT Input View and will also offer you XPath content completion based on that. From the XSLT Input View you can drag and drop in the editor elements or attributes to create different code fragments that matches them.

If you have an output schema than go to Options->Preferences -- Editor -- Content Completion -- XSL/XPath and specify the schema fro the "Include elements declared in the schema" option by selecting Other -- XML Schema and browse to your output schema file. The oXygen will offer you the elements and attributes from the output schema as content completion proposals whenever an xsl:element will be allowed.

Best Regards,
George
Post Reply