XSL Support
This is the home page for the XSL Support module.
Introduction
The module provides simple XSL support including XSL Transformation action.
Scenarios are currently a part of this module, but that
might change soon.
UML Diagrams
Scenarios class diagram
Scenarios
This diagram shows the connection between Scenario related classes.
FAQs
How can I use another XSLT Processor?
XSLT processor it located using JAXP 1.1 mechanism.
It allows you to change it globally for used JRE.
I tried Saxon 6.5.2. Installation is pretty easy simply unzip saxon.zip and copy saxon.jar to your jre/lib/ext. Saxon seems to be times faster on XPath operations than default Sun's JRE 1.4.1 XSLT processor or Xalan 2.0.X.
It you find another stable Java XSLT processor let others know at users@xml.netbeans.org.
Warning: It's for expert users only.
Can I Match on Default Namespace Without Explicit Prefix?
No, it's not possible under XSLT 1.0.
Many users stumble trying to match an element with a default
namespace. They expect to be able to do something like:
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns="urn:myuri">
<!-- Expect this matches <foo> in default namespace
-->
<xsl:template match="foo">
thinking that leaving off the prefix from the foo
element name, that it will match <foo> elements in
the default namespace with the URI of urn:myuri. Instead,
they are required to assign a non-null prefix name to their namespace
URI and then match on "someprefix:foo" instead, which has
proven to be far from obvious. XSLT 2.0 SHOULD provide an explicit way
to handle this scenario to avoid further user confusion.
For more details see XSLT 2.0 requirements
How to generate HTML's from XSLT script?
There are several ways. The preferred one is declare entity:
<!DOCTYPE xsl:stylesheet [
<!ENTITY nbsp " " >
]>
and then to reference it from XSLT script:
<p>Item1 Item2</p>
Links
Named Character Elements for XML
http://www.xml.com/pub/a/2003/01/02/xmlchar.html
XSLT library which provides named elements for all of the character entities defined in HTML 4
XSL Transformations
http://www.w3.org/TR/xslt
XSL Transformations (XSLT) 1.0 - W3C Recommendation.
XSLT Reference
http://www.nmt.edu/tcc/help/pubs/xslt/
XSLT Reference by John W. Shipman
Source Code
http://xml.netbeans.org/source/browse/xml/xsl/