Altova Mailing List Archives

Re: [xsl] namespace problem

From: George Cristian Bina <george@------------->
Date: 8/29/2006 7:53:00 AM
Hi Markus,

There is no specified schema for XSLT 1.0, you may eventually use the 
one for XSLT 2.0 or try to see if TRANG gets you a getter schema for 
XSLT 1.0 from the DTD. Alternatively and better IMO will be to use an 
XSLT editor to write your stylesheets rather than an XML editor with the 
XSLT schema.

In the second case

>   xsi:exclude-result-prefixes="xsi"

the attribute is exclude-result-prefixes from no namespace and not from 
the schema instance namespace, so you need


Best Regards,
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger

Markus Innerebner wrote:
Hello I am trying to create a docbook element via xslt and now I have
two questions / problems:

1. I am using eclipse wtp for creating my xslt.  I am adding to my
namespaces their corresponding schemalocation files.
    For xslt I wasn"t able to find a relevant xsd file, so I tried to
create one by using a tool dtd2xsd , but eclipse during code completion
has problem with that file.
    Does somebody know, where I can find a working xslt xsd file?

2. In my generated docbook there appears in the root element (book) some
attributes, which I neither will have, nor have I specified them in my
xslt file.
    In the book xslt programmer reference I (2nd edition) I did not find
other attributes to avoid that behaviour.

   **** content of myxslt.xsl *****

    <?xml version="1.0" encoding="UTF-8"?>

    <xsl:transform version="1.0"




        xsi:schemaLocation=" ../xsd/xslt10.xsd"


    <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"

    doctype-public="-//OASIS//DTD DocBook XML V4.1.2//EN"


    <!-- ... rest of code .. -->

    *** generated docbook file  ********
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
    <book xmlns:xsi=""
xmlns="" lang="en">
        <!-- ... content .. -->

thanks for any help



These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.