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

RE: statically known namespaces

Subject: RE: statically known namespaces
From: "Jacoby, Peter R." <PJACOBY@xxxxxxxxxxxx>
Date: Mon, 10 Jul 2006 12:24:47 -0400
editplus templates
> But the definition doesn't have to be global.  It can be per-project,
> or per-XML language, or per-directory, or based on regexps on the file
> name or on the state of the moon (but some functionalities can depend
> on your editor's capabilities).

I use Edit Plus (www.editplus.com) for my XSLT work and it has a great
feature
of being able to define a template for any file extension.  It's not quite as
good as configurable options for namespaces, but it works great for me.  So
when
I ask for a new .xsl file, instead of a blank page, I start with this:

<?xml version="1.0" ?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" omit-xml-declaration="no" indent="yes"
encoding="UTF-8"/>

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

<xsl:template match="">

</xsl:template>

</xsl:stylesheet>

and the cursor is moved to between the quotes of the select attribute of the
first template.  This way I don't have to remember the XSLT namespaces and
the
output attributes that I usually start with are pre-set.

The tool also allows me to type
applytsw
which automatically gets expanded to
<xsl:apply-templates select="">
	<xsl:with-param name="" select=""/>
</xsl:apply-templates>
and hundreds of other text replacements like this so I never have to type
<xsl:

You can predefine any text replacements which has been a great way to
customize
the tool to how I use the language.  It doesn't do intellisense which would
be
nice sometimes, but isn't usually necessary.

I also have a .xslfo template and text replace rules set up for the small
amount
of XSL-FO work I do.

-Peter

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.