Subject: Re: [xsl] Cannot include namespaces [XSLT 1.0] xsltproc From: Michael Kay <mike@xxxxxxxxxxxx> Date: Mon, 23 Aug 2010 23:34:19 +0100 |
<xsl:stylesheet version="1.0" xmlns:aid="http://ns.adobe.com/AdobeInDesign/4.0/" xmlns:aid5="http://ns.adobe.com/AdobeInDesign/5.0/" xmlns:ce="http://www.elsevier.com/xml/common/dtd" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="chapter"> <xsl:copy> <xsl:attribute name="aid:pstyle"/> <xsl:copy-of select="@*"/> <xsl:apply-templates/> </xsl:copy> </xsl:template>
<chapter version="5.2" xml:lang="en" docsubtype="chp" id="c0030" xmlns:sb="http://www.elsevier.com/xml/bk/dtd" xmlns:ce="http://www.elsevier.com/xml/common/dtd"> <ce:title>xxxxx</ce:title> </chapter>
Michael Kay Saxonica
<xsl:stylesheet version="1.0" xmlns:aid=" http://ns.adobe.com/AdobeInDesign/4.0/" xmlns:aid5=" http://ns.adobe.com/AdobeInDesign/5.0/" xmlns:ce=" http://www.elsevier.com/xml/common/dtd" xmlns:xsl=" http://www.w3.org/1999/XSL/Transform">
My xml snippet: <chapter version="5.2" xml:lang="en" docsubtype="chp" id="c0030" xmlns:sb="http://www.elsevier.com/xml/bk/dtd" xmlns:ce=" http://www.elsevier.com/xml/common/dtd"><ce:title>xxxxx</ce:title>
stylesheet snippet
<xsl:template match="chapter"> <xsl:copy> <xsl:attribute name="aid:pstyle"/> <xsl:copy-of select="@*"/> <xsl:apply-templates/> </xsl:copy> </xsl:template>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Cannot include namespaces, David Carlisle | Thread | Re: [xsl] Cannot include namespaces, pankaj . c |
Re: [xsl] Question on duplicate nod, Lars Huttar | Date | Re: [xsl] Question on duplicate nod, Hermann Stamm-Wilbra |
Month |