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

Re: strip-spaces

Subject: Re: strip-spaces
From: Steven Ericsson-Zenith <steven@xxxxxxxxxxxxx>
Date: Wed, 6 Feb 2008 08:29:47 -0800
Re:  strip-spaces
Ah yes, but that doesn't tell me where to fetch the style sheet to process the name space "myns."

I was thinking more that some uri would be specified in the style sheet header along with the namespace specification - so something along the lines of the following:

<xsl:stylesheet
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:myns="..."
    version="2.0">

<namespace
	methods:myns="..."/>

</xsl:stylesheet>


This is just a way of relating and limiting included style sheets to namespaces.


With respect,
Steven

On Feb 6, 2008, at 8:19 AM, Robert Koberg wrote:

Something like:

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

<xsl:template match="node()"/>

<xsl:template match="*">
 <xsl:apply-templates/>
</xsl:template>

-Rob


On Wed, 2008-02-06 at 08:03 -0800, Steven Ericsson-Zenith wrote:
On Feb 6, 2008, at 2:38 AM, Andrew Welch wrote:

After 8 years or so of XSLT now, the "a-ha" moment only came to me the
other day ...

This, of course, is a problem that language designers should consider.


I assume that namespaces, from my experience with xsd more than xsl,
are things that are meant to be observed by translators. I now begin
to wonder how I specify operations on elements in a particular name
space but from what Michael has said it seems they are simply
"syntactic sugar" to enable unique identification (avoid naming
conflicts) in single passes. Is there a way to specify that a style
sheet processes only the elements of a particular name space? I don't
think there is, but it sounds like something I could use for code
modularity.

With respect,
Steven

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