[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: [XSL] copying namesapces with prefix "xmlns:".
here they are ...
My xsl file: <?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:xpdl="http://www.wfmc.org/2002/XPDL1.0" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://test.de/schemas/wfdl/"> <xsl:output method="xml"/> <xsl:template match="*"> <xsl:element name="definitions"> <xsl:copy-of select="namespace::*"/> <xsl:element name="FlowModel"/> </xsl:element> </xsl:template> </xsl:stylesheet> Input.xml : <?xml version="1.0" encoding="UTF-8"?> <Package Id="typeoperation" Name="typeoperation" xmlns="http://www.wfmc.org/2002/XPDL1.0" xmlns:bo="http://test.de/bo/" xmlns:h2w="http://test.de/h2w/bo/" xmlns:xpdl="http://www.wfmc.org/2002/XPDL1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.wfmc.org/2002/XPDL1.0 http://wfmc.org/standards/docs/TC-1025_schema_10_xpdl.xsd"> <PackageHeader> <XPDLVersion>1.0</XPDLVersion> <Vendor>Together</Vendor> <Created>2005-08-23 17:23:04</Created> </PackageHeader> </Package> And Output.xml without xmlns:bo="http://test.de/bo/" xmlns:h2w="http://test.de/h2w/bo/": <?xml version="1.0" encoding="UTF-8"?> <definitions xmlns="http://test.de/schemas/wfdl/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xpdl="http://www.wfmc.org/2002/XPDL1.0"> <FlowModel/> </definitions> Regards, Siva David Carlisle wrote: and this command copied all the attributes except the attributes starts with "xmlns:". This is okay.
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|