[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

namespace problem

Subject: namespace problem
From: Markus Innerebner <markus@xxxxxxxxxxxxxx>
Date: Mon, 28 Aug 2006 22:50:13 +0000
eclipse highlighting
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"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
        xmlns="http://www.oasis-open.org/docbook/xmlschema/4.1.2"
        xsi:schemaLocation="
        http://www.w3.org/1999/XSL/Transform ../xsd/xslt10.xsd
        http://www.oasis-open.org/docbook/xmlschema/4.1.2
http://www.oasis-open.org/docbook/xmlschema/1.0b1/docbook.xsd"
  xsi:exclude-result-prefixes="xsi" 
    >

    <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"
omit-xml-declaration="no"  
    doctype-public="-//OASIS//DTD DocBook XML V4.1.2//EN"
       
doctype-system="http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd"/>

    <!-- ... rest of code .. -->
    </xsl:transform>

    *** generated docbook file  ********
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
    <book xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.oasis-open.org/docbook/xmlschema/4.1.2" lang="en">
        <bookinfo>
        <!-- ... content .. -->
       </bookinfo>
    </book>

thanks for any help

Markus

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Cast Your Vote

We need your help – Vote for DataDirect XML Products!

  • Best SOA or XML site

Winners and finalists announced at SOA World Conference in November.

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.