Re: styling a stylesheet
si <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.layout.xslt |
|---|---|
| Message-ID | <[email protected]> |
> It is not clear what you are trying, can you post the URL to a simple > example showing the problem? > i'm trying to dynamically create a stylesheet using a stylesheet, see below or here; http://vrml.portland.co.uk/svg/Document1.xhtml main file ~~~~~~~~~ <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/xsl" href="data.xml" ?> <Root> </Root> data.xml ~~~~~~~~ <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/xsl" href="stylesheetwrapper.xsl" ?> <root> <head><title>name</title></head> <body><p><u>simon</u></p></body> </root> stylesheetwrapper.xsl ~~~~~~~~~~~~~~~~~~~~~ <?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > <xsl:output method="html"/> <xsl:template match="root"> <xsl:element name="stylesheet" namespace="http://www.w3.org/1999/XSL/Transform"> <xsl:attribute name="version">1.0</xsl:attribute> <xsl:element name="output" namespace="http://www.w3.org/1999/XSL/Transform"> <xsl:attribute name="method">xml</xsl:attribute> </xsl:element> <xsl:element name="template" namespace="http://www.w3.org/1999/XSL/Transform"> <xsl:attribute name="match">/</xsl:attribute> <xsl:copy-of select="*"/> </xsl:element> </xsl:element> </xsl:template> </xsl:stylesheet>