Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <?xml-stylesheet href="/xsl/transform.xsl" type="text/xsl"?>
- <test>
- <foo />
- </test>
- <?xml version="1.0" encoding="utf-8"?>
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
- <xsl:template match="*">
- <html>
- <body>
- <code>
- <xsl:copy-of select="/"/>
- </code>
- </body>
- </html>
- </xsl:template>
- </xsl:stylesheet>
- <html>
- <body>
- <code>
- <?xml version="1.0" encoding="utf-8"?>
- <?xml-stylesheet href="/xsl/transform.xsl" type="text/xsl"?>
- <test xmlns="http://xml-schemas.geco.io/general/game-v1.xsd">
- <foo />
- </test>
- </code>
- </body>
- </html>
- <?xml version="1.0" encoding="utf-8"?>
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:game="http://xml-schemas.geco.io/general/game-v1.xsd">
- <xsl:import href="xml-to-string.xsl"/>
- <xsl:template match="/">
- <html>
- <body>
- <code>
- <xsl:call-template name="xml-to-string">
- <xsl:with-param name="node-set" select="/"/>
- </xsl:call-template>
- </code>
- </body>
- </html>
- </xsl:template>
- </xsl:stylesheet>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement