XSL from an XML Schema?
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 1
- Joined: Thu May 18, 2006 8:06 am
XSL from an XML Schema?
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!
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!
-
- Site Admin
- Posts: 2095
- Joined: Thu Jan 09, 2003 2:58 pm
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
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
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service