This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Writing a stylesheet to create a stylesheet, with XSLT in the XML
- From: "Andrew Welch" <awelch at piper-group dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Tue, 18 Jun 2002 09:13:26 +0100
- Subject: RE: [xsl] Writing a stylesheet to create a stylesheet, with XSLT in the XML
- Reply-to: xsl-list at lists dot mulberrytech dot com
Scott,
Have a look at this stylesheet, it should gives you some pointers. As
Ken said, use the namespace alias to differentiate between namespaces in
the main stylesheet and get the correct namespace in the result
stylesheet:
<xslt:stylesheet
xmlns:xslt="http://www.w3.org/1999/XSL/Transform"
xmlns:xsl="some_made_up_namespace"
version="1.0">
<xslt:namespace-alias
stylesheet-prefix="xsl"
result-prefix="xslt"/>
<xslt:template match="/">
<xsl:stylesheet version="1.0">
<xsl:template match="/">
<xsl:value-of select="'fubar'"/>
</xsl:template>
</xsl:stylesheet>
</xslt:template>
</xslt:stylesheet>
Once you understand this, you should be able to leave d-o-e behind.
cheers
andrew
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.350 / Virus Database: 196 - Release Date: 17/04/2002
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list