[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: xhtml xslt?

Subject: Re: xhtml xslt?
From: "Jeffrey Moss" <jeff@xxxxxxxxxxxx>
Date: Mon, 30 Aug 2004 12:51:03 -0600
xhtml xslt
I had the same problem, I use this:

  <xsl:template match="*">
    <xsl:element name="{name(.)}">
      <xsl:for-each select="@*">
        <xsl:attribute name="{name(.)}">
          <xsl:value-of select="."/>
        </xsl:attribute>
      </xsl:for-each>
      <xsl:apply-templates/>
    </xsl:element>
  </xsl:template>

-Jeff Moss

----- Original Message ----- 
From: "Nathan Shaw" <n8_shaw@xxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Monday, August 30, 2004 11:55 AM
Subject: Re:  xhtml xslt?


> OK, this works, but it is copying the namespace along
> with the elements. My output from this transformation
> should be XHTML, so I need to drop the namespace so
> that I do not end up with xhtml:strong, etc...
> 
> How can I do a copy but drop the namespace?
> 
> Thanks,
> 
> --Nathan
> 
> 
> 
> Date: Thu, 26 Aug 2004 10:05:34 +0100
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> From: David Carlisle <davidc@xxxxxxxxx>
> CC: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re:  xhtml xslt?
> Message-Id: <200408260905.KAA05731@xxxxxxxxxxxxxxxxx>
> 
> >I started to create an XSLT to accomplish this:
> 
> you just want to copy the html you don't need a
> template for each
> element, the whole point of namespaces id to make this
> easy, you can
> grab them all at once.
> 
> <xsl:template match="h:*">
> <xsl:copy>
> <xsl:copy-of select="@*"/>
> <xsl;apply-templates/>
> </xsl:copy>
> </xsl:template>
> 
> David
> 
> 
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail - 50x more storage than other providers!
> http://promotions.yahoo.com/new_mail

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.