-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Timo,
first of all I move the thread to docbook-apps@ list where it belongs.
Timo Matheja a écrit :
> I want to generate something like a macro in XML with the aid of the
> xsl stylesheet.
>
> Is there a prefered possibility?
>
> So I created a new Tag called for example to shorten an
> expression defined in the xsl stylesheet..
OK so if I understand correctly, you wish to generate a DocBook
compatible version of your document, using a preprocessing transformation.
> Now saxon should create a new xml file that is like the one before
> BUT every tag should completely be replaced by that defined
> longer expression.
>
> How can I cause this replacement of this small parts in my whole
> document?
Just use a stylesheet like the one below.
Though another option consists in using xinclude:
http://www.sagehill.net/docbookxsl/ModularDoc.htmlCamille
- ---
<xsl:stylesheet></xsl:stylesheet>
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.1">
<xsl:output method="xml" encoding="UTF-8" indent="no"></xsl:output>
<xsl:template match="img">
</xsl:template>
<xsl:template match="node()|@*">
<xsl:copy>
<xsl:apply-templates select="node()|@*"></xsl:apply-templates>
</xsl:copy>
</xsl:template>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mandriva -
http://enigmail.mozdev.orgiD8DBQFFq3Wkjv9P65BfOUMRAvP1AJ0TiAfUnVW+WlQ0+v++MCGd4XzVLwCfS9Kh
o5YrCzfz6CvNLZpZPzkaf9k=
=ZkVE
-----END PGP SIGNATURE-----