XSLT transformation for schema documents
Here should go questions about transforming XML with XSLT and FOP.
-
- Posts: 190
- Joined: Wed Apr 20, 2005 5:43 pm
- Location: Victoria, BC, Canada
XSLT transformation for schema documents
Post by martindholmes »
Hi there,
I have some TEI P5 documents that start like this:
<TEI xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.tei-c.org/ns/1.0 imt_p5.xsd" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.tei-c.org/ns/1.0" version="5.0">
When I run an XSLT transformation on them, the transformer doesn't seem to find the root element; no templates are applied. However, when I remove the attributes:
<TEI>
the transformation works. Any idea why?
Cheers,
Martin
I have some TEI P5 documents that start like this:
<TEI xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.tei-c.org/ns/1.0 imt_p5.xsd" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.tei-c.org/ns/1.0" version="5.0">
When I run an XSLT transformation on them, the transformer doesn't seem to find the root element; no templates are applied. However, when I remove the attributes:
<TEI>
the transformation works. Any idea why?
Cheers,
Martin
-
- Site Admin
- Posts: 2095
- Joined: Thu Jan 09, 2003 2:58 pm
Hi Martin,
In the first case you have more than attributes, you have also a default namespace declaration, the xmlns="..." which places the TEI element in the TEI P5 namespace. In the second case you have a TEI element in no namespace.
Now it seems that your stylesheet is prepared to handle TEI elements in no namespace and cannot handle TEI elements in the TEI P5 namespace.
Best Regards,
George
In the first case you have more than attributes, you have also a default namespace declaration, the xmlns="..." which places the TEI element in the TEI P5 namespace. In the second case you have a TEI element in no namespace.
Now it seems that your stylesheet is prepared to handle TEI elements in no namespace and cannot handle TEI elements in the TEI P5 namespace.
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