comp.text.xml
[Top] [All Lists]

Re: simplifying transform

Subject: Re: simplifying transform
From: David Schwartz
Date: Mon, 21 Jul 2008 16:59:29 -0700 PDT
Newsgroups: comp.text.xml

Thanks for your help Martin. I'd like to explore this in steps if
possible. So when I execute the following transform, I don't get any
attributes. Any ideas as to why? Shouldn't I get all the nodes in
their original state?

   <xsl:stylesheet
     xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
     version="1.0"
     xmlns:redirect="org.apache.xalan.xslt.extensions.Redirect"
     extension-element-prefixes="redirect">

     <xsl:template match="@* | node()">
        <redirect:write file="transformed.xml">
               <xsl:copy>
                 <xsl:apply-templates select="@* | node()"/>
               </xsl:copy>
        </redirect:write>
     </xsl:template>

TIA!
David

<Prev in Thread] Current Thread [Next in Thread>
Privacy Policy