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

Re: Converting XML to HTML using a XSLT stylesheete??

Subject: Re: Converting XML to HTML using a XSLT stylesheete??
From: Mike Brown <mike@xxxxxxxx>
Date: Wed, 28 Aug 2002 19:51:38 -0600 (MDT)
xmldsig xslt html
tpchen wrote:
>      I have some problem with libxslt. I try to transform the xml file into another form with the following two files(one is an xml file, 
> and the other is the xslt file.) I hope to get ?SignatureValue? from the transform. But I don't know what's wrong. Would anyone be kind 
> enough to tell me how to solve it. Any suggestion is appreciated. Thanks a lot....
>   
>  tpchen
>  
> ======================== XSL FILE : Test.XSL=================================
> http://210.242.21.129/nbca-download/test.xsl
>  
> ======================== XML FILE : Test.XML=================================
> http://210.242.21.129/nbca-download/test.xml

1. The XPath expression

 Signature

means elements with *local* name Signature, in no namespace.

Your Signature elements are in the http://www.w3.org/2000/09/xmldsig#
namespace, so you have to specify that. You must use a prefix in order
to do this. Add an xmlns:dsig="http://www.w3.org/2000/09/xmldsig#" to
your xsl:stylesheet and then look for dsig:Signature, not Signature.

2.  "//" traverses the entire document looking for nodes.
You know where your dsig:Signature elements are -- they are all
at /IFX/dsig:Signature .. so use that instead of //dsig:Signature in
your xsl:apply-templates.

3.  match="//Signature" is also inefficient. Use match="dsig:Signature"

   - Mike
____________________________________________________________________________
  mike j. brown                   |  xml/xslt: http://skew.org/xml/
  denver/boulder, colorado, usa   |  resume: http://skew.org/~mike/resume/

 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.