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

Re: copy attributes modifying their values, regardless

Subject: Re: copy attributes modifying their values, regardless of their names
From: TW <zupftom@xxxxxxxxxxxxxx>
Date: Sun, 5 Dec 2010 14:47:28 +0100
Re:  copy attributes modifying their values
2010/12/4 Michael Kay <mike@xxxxxxxxxxxx>:
> Well, firstly, "attribute value templates" are things you find in a
> stylesheet, not in a source document. But let's assume you mean "attribute
> values containing "{".
>

O.K., that may be more accurate terminology, but my source document
contains mostly elements from the XSLT namespace. The XPath
expressions in the source documents can contain variables where the
usual leading '$' is replaced by '^', so they aren't working XSLT.
Based on those circumflexes, another stylesheet (among other things)
adds boilerplate code and turns the source into working XSLT.

Is it acceptable style to leave the XSLT elements from the source
documents in the XSL namespace, or would it be advisable to put them
into a different namespace as they contain "broken" XPath expressions?

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

Ah, that's why my templates for the attributes wouldn't be called into
action.  I have to select them explicitly when applying templates!
Thanks for that!  There's still a lot to learn about XSLT for me, I'm
sure.

Thomas W.

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.