以文本方式查看主题

-  中文XML论坛 - 专业的XML技术讨论区  (http://bbs.xml.org.cn/index.asp)
--  『 XSL/XSLT/XSL-FO/CSS 』  (http://bbs.xml.org.cn/list.asp?boardid=8)
----  定义名称空间的xml文件用xsl怎么转换  (http://bbs.xml.org.cn/dispbbs.asp?boardid=8&rootid=&id=55105)


--  作者:phoenixyy
--  发布时间:11/9/2007 12:48:00 PM

--  定义名称空间的xml文件用xsl怎么转换
例如下面xml代码

<?xml version="1.0"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:prf="http://www.openmobilealliance.org/tech/profiles/UAPROF/ccppschema-20021212#"
xmlns:mms="http://www.openmobilealliance.org/tech/profiles/MMS/ccppschema-20050301-MMS1.2#"
xmlns:pss6="http://www.3gpp.org/profiles/PSS/ccppschema-PSS6#">
<!-- Start of uaprofile                                     -->
   <rdf:Description rdf:ID="Profile">
<!-- Start of Hardware component -->
      <prf:component>
         <rdf:Description rdf:ID="HardwarePlatform">
            <rdf:type rdf:resource="http://www.openmobilealliance.org/tech/profiles/UAPROF/ccppschema-20021212#HardwarePlatform"/>
            <prf:BluetoothProfile>
               <rdf:Bag>
                  <rdf:li>Advanced Audio Distribution Profile</rdf:li>
                  <rdf:li>Audio/Video Remote Control Profile</rdf:li>
                  <rdf:li>Basic Imaging Profile</rdf:li>
                  <rdf:li>Dial-up Networking Profile</rdf:li>

                  <rdf:li>File Transfer Profile</rdf:li>
                  <rdf:li>Generic Access Profile</rdf:li>
                  <rdf:li>Generic Object Exchange Profile</rdf:li>
                  <rdf:li>Handsfree Profile</rdf:li>
                  <rdf:li>Human Interface Device Profile</rdf:li>
                  <rdf:li>Headset Profile</rdf:li>
                  <rdf:li>Object Push Profile</rdf:li>
                  <rdf:li>Serial Port Profile</rdf:li>
                  <rdf:li>Service Discovery Profile</rdf:li>
                  <rdf:li>SIM Access Profile</rdf:li>
               </rdf:Bag>
            </prf:BluetoothProfile>
            <prf:BitsPerPixel>18</prf:BitsPerPixel>
            <prf:ColorCapable>Yes</prf:ColorCapable>
            <prf:CPU>ARM</prf:CPU>
            <prf:ImageCapable>Yes</prf:ImageCapable>
            <prf:InputCharSet>
               <rdf:Bag>
                  <rdf:li>ISO-8859-1</rdf:li>
                  <rdf:li>ISO-10646-UCS-2</rdf:li>
                  <rdf:li>US-ASCII</rdf:li>
                  <rdf:li>UTF-8</rdf:li>
               </rdf:Bag>
            </prf:InputCharSet>
            <prf:Keyboard>PhoneKeyPad</prf:Keyboard>
            <prf:Model>N82-1</prf:Model>
            <prf:NumberOfSoftKeys>2</prf:NumberOfSoftKeys>
            <prf:OutputCharSet>
               <rdf:Bag>
                  <rdf:li>ISO-8859-1</rdf:li>
                  <rdf:li>ISO-10646-UCS-2</rdf:li>
                  <rdf:li>US-ASCII</rdf:li>
                  <rdf:li>UTF-8</rdf:li>
               </rdf:Bag>
            </prf:OutputCharSet>
            <prf:PixelAspectRatio>1x1</prf:PixelAspectRatio>
            <prf:PointingResolution>Pixel</prf:PointingResolution>
            <prf:ScreenSize>240x320</prf:ScreenSize>
            <prf:ScreenSizeChar>15x6</prf:ScreenSizeChar>
            <prf:StandardFontProportional>Yes</prf:StandardFontProportional>
            <prf:SoundOutputCapable>Yes</prf:SoundOutputCapable>
            <prf:TextInputCapable>Yes</prf:TextInputCapable>
            <prf:Vendor>Nokia</prf:Vendor>
            <prf:VoiceInputCapable>Yes</prf:VoiceInputCapable>
         </rdf:Description>
<!-- End of Hardware component -->
      </prf:component>
   </rdf:Description>
<!-- End of Uaprofile-->
</rdf:RDF>

哪位高手知道?帮忙解答一下


W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
46.997ms