|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: How is this part of the XSLT specification to be interpr
> <xsl:template match="p[list]" linda:someattribute="">
> <xsl:apply-templates/>
> </xsl:template>
Ah! That makes sense.
Since this is a part of a "how can we document our style sheets internally" project, an attribute is still a bit limited since it is a scalar instead of a node set.
Is there a similar way to have non-XSLT elements inside an XSLT-element (like a template) without having it copied verbosely to the output. I basically just want the element and everything therein ignored.
Basically, so
<xsl:template match="TOC">
<doc:test>Hallo</doc:test>
<rowset>
<xsl:apply-templates/>
</rowset>
</xsl:template>
is treated identically to
<xsl:template match="TOC">
<rowset>
<xsl:apply-templates/>
</rowset>
</xsl:template>
Currently the following line is output (buh is the namespace URI I used)
<doc:test xmlns:doc="buh">Hallo</doc:test>
>From my glancing at the other parts of the spec, it appears that I must make the doc:* namespace "active" in order to get the behaviour I desire, which in Saxon means I must create a Java class for the purpose, which is rather inconvenient since it looses portability.
My goal is documentation on a higher level than <!-- comment --> and JavaDoc. Can it be done as a valid XSLT-file?
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








