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

Re: remove shape="rect" attribute from anchors within

Subject: Re: remove shape="rect" attribute from anchors within xsl:template
From: "B. Kamer" <post@xxxxxxxxxxx>
Date: Sat, 3 Nov 2007 20:05:02 +0100
Re:  remove shape="rect" attribute from anchors within
On 3 nov 2007, at 00:08, David Carlisle wrote:


you don't want to copy the document, you want to change it, so don't do
this

hmm, ok




                <xsl:copy-of select="document($full-path)/html:html/
html:body/*" namespace="http://www.w3.org/1999/xhtml"/>



acually that's a syntax error (didn't your processor complain?)
you meant

nope...




                <xsl:copy-of select="document($full-path)/html:html/
html:body/*"/>

but as I say you don't want a copy you want

<xsl:apply-templates select="document($full-path)/ html:html/
html:body/*"/>


together with the template yu posted t zap shape and an identity
template for the rest

ok, i see that identity template is a 'thing' in xls... I've read up on it and understand what it does...


<xsl:template match="@*|*">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>

copy everything exept....


it works! and i even understadn why, sort of...

Alternatively you can use a catalog (or perhaps a command line switch
for your parser) or modify your input documents, so that they do not
reference  the XHTMl DTD

not sure how this can be done...


(for it is this, not XSLT that is adding the attributes).

This i can understand, not an option...


David

David thanks...



Bas


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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

Buy Stylus Studio Now

Cast Your Vote

We need your help – Vote for DataDirect XML Products!

  • Best SOA or XML site

Winners and finalists announced at SOA World Conference in November.

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-2007 All Rights Reserved.