[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: fetch value from processing instruction
rondeelvantrigt wrote:
In my XSLFO file I need a value from a processing instruction for retrieval by a marker. The processing instruction contains several values within quotes like: <?p="1" a="2" b="3"?> btw, it's ill-formed processing instruction, it should be something like <?pitarget p="1" a="2" b="3"?> I created variables to fetch the values but can't get rid of the quotes. What I need is just the numerical value without the quotes. Try <xsl:variable name="info1" select="substring-after(.,'p=')"/> <xsl:variable name="page.num" select="substring-before(substring-after($info1,'"'),'"')"/> PS. btw, which application generates such processing instruction? -- Oleg Tkachenko http://www.tkachenko.com/blog Multiconn Technologies, Israel XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
|