W3C home > Mailing lists > Public > xsl-editors@w3.org > January to March 2002

RE: xslt2.0 feature request

From: <DPawson@rnib.org.uk>
Date: Thu, 3 Jan 2002 16:10:14 -0000
Message-ID: <9B66BBD37D5DD411B8CE00508B69700FE7A997@pborolocal.rnib.org.uk>
To: elharo@metalab.unc.edu, xsl-editors@w3.org
> Maybe I misunderstanding you. Can you provide a complete simple 
> example including an input XML document, a stylesheet, the output 
> document you actually get from a 1.0 processor, and the output you 
> want?


Input xml

<doc>
  <content/>
</doc>

stylesheet
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
 
  xmlns="http://www.xhtml"

>

<xsl:output  method="xml"  encoding="utf-8"  indent="yes" />
  <xsl:strip-space elements="*"/>


<xsl:template match="/">
<html>
<body>
  <xsl:apply-templates/>

</body>
</html>
</xsl:template>


<xsl:template match="doc">
  <notDoc>   <xsl:apply-templates/> </notDoc>
</xsl:template>

<xsl:template match="*">
  <xsl:copy-of select="."/>
</xsl:template>

</xsl:stylesheet>


The lre's are output in the xhtml ns,
the content element is output in the 'null' ns.


output is

C:\sgml>type op.xml
<?xml version="1.0" encoding="utf-8"?>
<html xmlns="http://www.xhtml">
   <body>
      <notDoc>
         <content xmlns=""/>
      </notDoc>
   </body>
</html>

My request is that *all* elements be output in the xhtml ns, in this case.
Use case is transforming documents from
an older version of the DAISY format, to a more recent one
which requires the xhtml ns.


Regards DaveP

************* regards DaveP ********************


- 

NOTICE: The information contained in this email and any attachments is 
confidential and may be legally privileged. If you are not the 
intended recipient you are hereby notified that you must not use, 
disclose, distribute, copy, print or rely on this email's content. If 
you are not the intended recipient, please notify the sender 
immediately and then delete the email and any attachments from your 
system.

RNIB has made strenuous efforts to ensure that emails and any 
attachments generated by its staff are free from viruses. However, it 
cannot accept any responsibility for any viruses which are 
transmitted. We therefore recommend you scan all attachments.

Please note that the statements and views expressed in this email 
and any attachments are those of the author and do not necessarily 
represent those of RNIB.

RNIB Registered Charity Number: 226227

Website: http://www.rnib.org.uk 
Received on Thursday, 3 January 2002 11:09:01 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:59:52 GMT