Hi,
I may well be understanding this incorrectly... please see the dummy examples below
I though that this - xmlns="http://xml.dummy.com/schema/analytical"- would give some sort of default
If you run the xml as is through the xsl you don't get any of the (archaic) tagging in the xsl:text elements output but remove the xmlns atts from the document node of the xml and you do...
Still consfused I'm afraid.
Thanks for your help on this...
xml - <?xml version="1.0" encoding="UTF-8"?>
-
<?xml-stylesheet type="text/xsl" href="main-transform.xsl"?>
-
<document xmlns:legis="http://xml.dummy.com/schema/legislation/act" xmlns:xlink="http://www.w3.org/TR/xlink/" xmlns:a="http://xml.dummy.com/schema/amendments" xmlns="http://xml.dummy.com/schema/analytical">
-
<title>Companies Act 1985</title>
-
<paragraph role="annotation">
-
<title>Note</title>
-
<para>For the registrar's index of company names see s. 714</para>
-
</paragraph>
-
</document>
XSL - <?xml version="1.0" encoding="UTF-8"?>
-
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:legis="http://xml.dummy.com/schema/legislation/act" xmlns:xlink="http://www.w3.org/TR/xlink/" xmlns:a="http://xml.dummy.com/schema/amendments" xmlns="http://xml.dummy.com/schema/analytical">
-
-
<xsl:output method="text" omit-xml-declaration="yes" indent="no"/>
-
<xsl:strip-space elements="*"/> <!-- for xalan on pc -->
-
-
<xsl:template match="/">
-
<xsl:apply-templates/>
-
</xsl:template>
-
-
<xsl:template match="title">
-
<xsl:text><UN+></xsl:text>
-
<xsl:apply-templates/>
-
<xsl:text><UN-><CR>
-
</xsl:text>
-
</xsl:template>
-
-
<xsl:template match="paragraph">
-
<xsl:text><IT+></xsl:text>
-
<xsl:apply-templates/>
-
<xsl:text><IT-><CR>
-
</xsl:text>
-
</xsl:template>
-
-
<xsl:template match="para">
-
<xsl:apply-templates/>
-
<xsl:text><CR>
-
</xsl:text>
-
</xsl:template>
-
-
</xsl:stylesheet>