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

<xsl:output doctype-system="name_of_DTD"/>

Subject: <xsl:output doctype-system="name_of_DTD"/>
From: Stephane.Le-Deaut@xxxxxxxxxx
Date: Mon, 14 May 2001 11:51:18 +0200
xsl output doctype system

Hello,

I've two questions :

Can I specify dynamically the name of the DTD ?

I've already tried a solution which consist to revover this name in an attribute of a file XML.
Example of the beginning of my procedure XSL :

        <xsl:variable
            name="sgDeliveryOutFileLocation"
            select="//XslParameter/InputFile/@sgDeliveryOutFile"/>

        <!-- variable to be used to access the sgDeliveryOutFileLocation input file -->
        <xsl:variable name="sgDeliveryOutFile"
                      select="document($sgDeliveryOutFileLocation)"/>

     <!-- definition of the output format -->
     <xsl:output method="xml" omit-xml-declaration="no" encoding="ISO-8859-1"/>
     <xsl:output doctype-system="$sgDeliveryOutFile/CriteriaTargetList/CriteriaTarget/@identity"/>
     <xsl:output indent="yes"/>
     <xsl:strip-space elements="*"/>

But it doesn't work and I obtain this result :

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE Delivery SYSTEM "$sgDeliveryOutFile/CriteriaTargetList/CriteriaTarget/@identity">

And I would like to have this result :

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE Delivery SYSTEM "name_of_DTD (maybe elNotOcbDelivery.dtd or ocbDelivery.dtd ....)">

Is it possible to recover this name in an attribute of a file XML ?

Thanks for your help.



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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

Buy Stylus Studio Now

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-2013 All Rights Reserved.