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

Re: Building XML from XPATHS in XSLT 2.0

Subject: Re: Building XML from XPATHS in XSLT 2.0
From: Brian Chrisman <brian.chrisman@xxxxxx>
Date: Tue, 27 Apr 2004 00:50:21 +0200
brian chrisman
I'm going to take a blind stab at this..
Are you basically going to use this XML document (the one with the Xpath expressions) to basically select a bunch of pieces from another document (or set of documents) and include them into one XML document (the frame?)
If so, I'm thinking you really want this XML document to be an XSLt stylesheet itself using a combination 'document()', and <xsl:copy-of...>


-Brian

gary@xxxxxxxxxxx wrote:

Hi Guys,

I have just started working on a problem which is quite interesting. I have
some xml that can contain any valid XPATH as an attribute string and I would
like to go through all the XPATHS listed and build some XML based on them.
i.e.

<frame>
<block
XPATH="/ClinicalDocument/recordTarget/patientRole/patientPatient/name/family
"/>
<block
XPATH="/ClinicalDocument/recordTarget/patientRole/patientPatient/name/given"
/>
<block
XPATH="/ClinicalDocument/component/bodyChoice/StructuredBody/component/bodyC
hoice/StructuredBody/component/section/component/section/entry/entryChoice/O
bservation/value"/>
<block
XPATH="/ClinicalDocument/component/bodyChoice/StructuredBody/component/bodyC
hoice/StructuredBody/component/section[@title=$section-name]/component/secti
on[@title=$subsection-name]/entry/entryChoice/Observation/participant/partic
ipatingEntity/associatedPerson/name"/>
<block
XPATH="/ClinicalDocument/component/bodyChoice/StructuredBody/component/bodyC
hoice/StructuredBody/component/section/component/section/entry/entryChoice/O
bservation/value"/>
</frame>

If anyone has already done something similar to this and wants to share some
code it would be appreciated or if anyone is interstested in the solution
let me know and I will post the group back when I have found a solution to
the problem!

Many Thanks

Gary Cornelius

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.