Document doc=builder.newDocument();
Node sheet = doc.createProcessingInstruction("xml-stylesheet","type=\"text/xsl\" href=\"name.xsl\"");
doc.appendChild(sheet);
很高兴帮助你

解决方案 »

  1.   

    <xsl:value-of select="content" disable-output-escaping="yes"/>
    给你提供个思路吧,我现在没装xmlspy  你看一看是否有这个属性,你可以看一看xsl方面的东西
      

  2.   

    Document doc=builder.newDocument();
    Node sheet = doc.createProcessingInstruction("xml-stylesheet","type=\"text/xsl\" href=\"name.xsl\"");
    doc.appendChild(sheet);
    回答你短信息问题<xsl:value-of select="content" disable-output-escaping="yes"/>
    给你提供个思路吧,我现在没装xmlspy  你看一看是否有这个属性,你可以看一看xsl方面的东西还有你问程序传参的时候可以.trim去一下空格