>XSL Tools Tip

>Here’s a tip about editing with the XSL Tools editor.

Add Namespaces for your output document for content assistance for that namespace.

The XSL Tools editor is an extension of the existing WTP XML editor. With this, you get everything that the XML editor provides plus XSL aware functionality. This allows you to define namespaces in your XSL documents, and get content assistance for these documents in your stylesheets while editting. To leverage this functionality, your file has to be namespace aware, and the schema has to be in the XML Catalog.

Also, any of the existing items in the XML Catalog that are catagorized by namespace, will also be available if you add the appropriate namesapce in your xml.

<xsl:stylesheet xmlns:xsl=”http://www.w3.org/1999/XSL/Transform&#8221;
xmlns:jee=”http://java.sun.com/xml/ns/j2ee
exclude-result-prefixes=”jee”>



</xsl:stylesheet>

The exclude-result-prefixes attribute will not output the prefixes in the result document when the transformation runs, it still outputs the elements but won’t output the result prefix.

Advertisements
This entry was posted in eclipse, xml, xsl. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s