T
tthunder
Hi @all,
Currently I am using Docbook with the XSLT style definition attached
below. However, this is really a XSLT issue/question!
Now I want to define a new tag for my DocBook xml file, say
"<my_special_requirement>". YES, it is not DocBook any more then, but
whatever.
What I want to do is writing that:
<my_special_requirement>
Test
</my_special_requirement>
BUT it should be processed (by the DocBook Stylesheets) like
<warning><title>A Warning</title>
Test
</warning>
(BTW: I don't wanna use workarounds like the "role" attribute. Please
no arguments, I am really curious and only interested in the question
I asked for, and not in workarounds... if it is not possible, it is
not possible, of course)
Thank you!
Kirsten
-----------------------------
<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version='1.0'
xmlns="http://www.w3.org/TR/xhtml1/transitional"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
exclude-result-prefixes="#default">
<!-- HTML Output: -->
<xsl:import href="docbook/html/docbook.xsl"/>
<!-- HTML Templates: -->
<xsl:template match="my_special_requirement">
<!-- Hmhh... what to do here... that's what I asked for -->
</xsl:template>
<!-- Docbook Stylesheet Settings -->
<xsl:variable name="generate.toc"></xsl:variable>
<xsl:variable name="html.stylesheet.type">text/css</xsl:variable>
<xsl:variable name="html.stylesheet" select="'psl_doc.css'"></
xsl:variable>
<xsl:variable name="use.extensions" select="'1'"></xsl:variable>
</xsl:stylesheet>
Currently I am using Docbook with the XSLT style definition attached
below. However, this is really a XSLT issue/question!
Now I want to define a new tag for my DocBook xml file, say
"<my_special_requirement>". YES, it is not DocBook any more then, but
whatever.
What I want to do is writing that:
<my_special_requirement>
Test
</my_special_requirement>
BUT it should be processed (by the DocBook Stylesheets) like
<warning><title>A Warning</title>
Test
</warning>
(BTW: I don't wanna use workarounds like the "role" attribute. Please
no arguments, I am really curious and only interested in the question
I asked for, and not in workarounds... if it is not possible, it is
not possible, of course)
Thank you!
Kirsten
-----------------------------
<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version='1.0'
xmlns="http://www.w3.org/TR/xhtml1/transitional"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
exclude-result-prefixes="#default">
<!-- HTML Output: -->
<xsl:import href="docbook/html/docbook.xsl"/>
<!-- HTML Templates: -->
<xsl:template match="my_special_requirement">
<!-- Hmhh... what to do here... that's what I asked for -->
</xsl:template>
<!-- Docbook Stylesheet Settings -->
<xsl:variable name="generate.toc"></xsl:variable>
<xsl:variable name="html.stylesheet.type">text/css</xsl:variable>
<xsl:variable name="html.stylesheet" select="'psl_doc.css'"></
xsl:variable>
<xsl:variable name="use.extensions" select="'1'"></xsl:variable>
</xsl:stylesheet>